aboutsummaryrefslogtreecommitdiff
path: root/src/CommandDialog.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
commit9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch)
tree4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/CommandDialog.hh
parent1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff)
downloadfluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip
fluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/CommandDialog.hh')
-rw-r--r--src/CommandDialog.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/CommandDialog.hh b/src/CommandDialog.hh
index 9f102b9..bd0a6df 100644
--- a/src/CommandDialog.hh
+++ b/src/CommandDialog.hh
@@ -44,10 +44,10 @@ public:
44 /// Sets the entry text. 44 /// Sets the entry text.
45 void setText(const std::string &text); 45 void setText(const std::string &text);
46 /** 46 /**
47 * Sets the command to be execute after the command is done. 47 * Sets the command to be executed after the command is done.
48 * @param postcommand the command. 48 * @param postcommand the command.
49 */ 49 */
50 void setPostCommand(FbTk::RefCount<FbTk::Command> &postcommand) { 50 void setPostCommand(FbTk::RefCount<FbTk::Command<void> > &postcommand) {
51 m_postcommand = postcommand; 51 m_postcommand = postcommand;
52 } 52 }
53 void show(); 53 void show();
@@ -71,11 +71,13 @@ private:
71 FbTk::TextBox m_textbox; //< entry field 71 FbTk::TextBox m_textbox; //< entry field
72 FbTk::TextButton m_label; //< text in the titlebar 72 FbTk::TextButton m_label; //< text in the titlebar
73 FbTk::GContext m_gc; 73 FbTk::GContext m_gc;
74 FbTk::RefCount<FbTk::Command> m_postcommand; ///< command to do after the first command was issued (like reconfigure) 74 /// command to do after the first command was issued (like reconfigure)
75 FbTk::RefCount<FbTk::Command<void> > m_postcommand;
75 BScreen &m_screen; 76 BScreen &m_screen;
76 int m_move_x, m_move_y; 77 int m_move_x, m_move_y;
77 Pixmap m_pixmap; 78 Pixmap m_pixmap;
78 const std::string m_precommand; ///< command to be used before the text (usefull for setting workspace name) 79 /// command to be used before the text (usefull for setting workspace name)
80 const std::string m_precommand;
79}; 81};
80 82
81 83