summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CommandDialog.hh10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/CommandDialog.hh b/src/CommandDialog.hh
index 2bc0678..84ed01c 100644
--- a/src/CommandDialog.hh
+++ b/src/CommandDialog.hh
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: CommandDialog.hh,v 1.1 2003/12/19 03:53:21 fluxgen Exp $ 23// $Id: CommandDialog.hh,v 1.2 2003/12/19 18:15:19 fluxgen Exp $
24 24
25#ifndef RUNCOMMANDDIALOG_HH 25#ifndef RUNCOMMANDDIALOG_HH
26#define RUNCOMMANDDIALOG_HH 26#define RUNCOMMANDDIALOG_HH
@@ -29,6 +29,8 @@
29#include "FbTk/TextButton.hh" 29#include "FbTk/TextButton.hh"
30#include "FbTk/Font.hh" 30#include "FbTk/Font.hh"
31#include "FbTk/GContext.hh" 31#include "FbTk/GContext.hh"
32#include "FbTk/Command.hh"
33#include "FbTk/RefCount.hh"
32 34
33class BScreen; 35class BScreen;
34 36
@@ -40,10 +42,11 @@ public:
40 virtual ~CommandDialog(); 42 virtual ~CommandDialog();
41 43
42 void setText(const std::string &text); 44 void setText(const std::string &text);
43 45 void setPostCommand(FbTk::RefCount<FbTk::Command> &postcommand) { m_postcommand = postcommand; }
44 void show(); 46 void show();
45 void hide(); 47 void hide();
46 48
49 void exposeEvent(XExposeEvent &event);
47 void motionNotifyEvent(XMotionEvent &event); 50 void motionNotifyEvent(XMotionEvent &event);
48 void buttonPressEvent(XButtonEvent &event); 51 void buttonPressEvent(XButtonEvent &event);
49 void handleEvent(XEvent &event); 52 void handleEvent(XEvent &event);
@@ -51,13 +54,14 @@ public:
51 54
52private: 55private:
53 void init(); 56 void init();
54
55 void render(); 57 void render();
58 void updateSizes();
56 59
57 FbTk::Font m_font; 60 FbTk::Font m_font;
58 FbTk::TextBox m_textbox; 61 FbTk::TextBox m_textbox;
59 FbTk::TextButton m_label; 62 FbTk::TextButton m_label;
60 FbTk::GContext m_gc; 63 FbTk::GContext m_gc;
64 FbTk::RefCount<FbTk::Command> m_postcommand; ///< command to do after the first command was issued (like reconfigure)
61 BScreen &m_screen; 65 BScreen &m_screen;
62 int m_move_x, m_move_y; 66 int m_move_x, m_move_y;
63 Pixmap m_pixmap; 67 Pixmap m_pixmap;