From 7287a0f11e4fe4fe95dbc063dc3a8524463bfa06 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 19 Dec 2003 18:15:19 +0000 Subject: added post command --- src/CommandDialog.hh | 10 +++++++--- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: CommandDialog.hh,v 1.1 2003/12/19 03:53:21 fluxgen Exp $ +// $Id: CommandDialog.hh,v 1.2 2003/12/19 18:15:19 fluxgen Exp $ #ifndef RUNCOMMANDDIALOG_HH #define RUNCOMMANDDIALOG_HH @@ -29,6 +29,8 @@ #include "FbTk/TextButton.hh" #include "FbTk/Font.hh" #include "FbTk/GContext.hh" +#include "FbTk/Command.hh" +#include "FbTk/RefCount.hh" class BScreen; @@ -40,10 +42,11 @@ public: virtual ~CommandDialog(); void setText(const std::string &text); - + void setPostCommand(FbTk::RefCount &postcommand) { m_postcommand = postcommand; } void show(); void hide(); + void exposeEvent(XExposeEvent &event); void motionNotifyEvent(XMotionEvent &event); void buttonPressEvent(XButtonEvent &event); void handleEvent(XEvent &event); @@ -51,13 +54,14 @@ public: private: void init(); - void render(); + void updateSizes(); FbTk::Font m_font; FbTk::TextBox m_textbox; FbTk::TextButton m_label; FbTk::GContext m_gc; + FbTk::RefCount m_postcommand; ///< command to do after the first command was issued (like reconfigure) BScreen &m_screen; int m_move_x, m_move_y; Pixmap m_pixmap; -- cgit v0.11.2