Planeshift
eeditselecteditanchorkeyframe.h
Go to the documentation of this file.
1 /*
2  * Author: Andrew Robberts
3  *
4  * Copyright (C) 2003 PlaneShift Team (info@planeshift.it,
5  * http://www.planeshift.it)
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef EEDIT_SELECT_EDIT_ANCHOR_KEYFRAME_HEADER
21 #define EEDIT_SELECT_EDIT_ANCHOR_KEYFRAME_HEADER
22 
23 #include "eeditinputboxmanager.h"
24 #include "paws/pawswidget.h"
25 
26 class pawsButton;
27 class pawsSpinBox;
28 class pawsCheckBox;
29 
36 class EEditSelectEditAnchorKeyFrame : public pawsWidget, public scfImplementation0<EEditSelectEditAnchorKeyFrame>
37 {
38 public:
41 
49  void Select(float time, EEditInputboxManager::iSelectEditAnchorKeyFrame * callback, const csVector2 & pos);
50 
51  // inheritted from pawsWidget
52  virtual bool PostSetup();
53  virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget* widget);
54 
55 private:
56  pawsSpinBox * newTime;
57  pawsCheckBox * hasPosX;
58  pawsCheckBox * hasPosY;
59  pawsCheckBox * hasPosZ;
60  pawsCheckBox * hasToTarget;
61  pawsButton * ok;
62 
64 };
65 
67 
70 #endif
71 
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
A combination widget that has up and down arrows and a text label.
Definition: pawsspinbox.h:56
A combination widget that has a check box and a text label.
Definition: pawscheckbox.h:48
CREATE_PAWS_FACTORY(EEditSelectEditAnchorKeyFrame)
virtual bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
A dialog window to edit an anchor keyframe.
A simple button widget.
Definition: pawsbutton.h:43
void Select(float time, EEditInputboxManager::iSelectEditAnchorKeyFrame *callback, const csVector2 &pos)
Pops up the select dialog.
virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.