aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun/FbRun.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-06-24 10:22:42 (GMT)
committerfluxgen <fluxgen>2003-06-24 10:22:42 (GMT)
commit489af9787c89c1ee390deb39b280fcc7df727f93 (patch)
tree181829f163cdae9216ada83761fc8cb235a687dc /util/fbrun/FbRun.hh
parentfc5de0455e1d99b6b89168ab3c9b973360791d68 (diff)
downloadfluxbox-489af9787c89c1ee390deb39b280fcc7df727f93.zip
fluxbox-489af9787c89c1ee390deb39b280fcc7df727f93.tar.bz2
emacs keybindings and tab completion, thanks David J Burger
Diffstat (limited to 'util/fbrun/FbRun.hh')
-rw-r--r--util/fbrun/FbRun.hh26
1 files changed, 21 insertions, 5 deletions
diff --git a/util/fbrun/FbRun.hh b/util/fbrun/FbRun.hh
index 29a9afd..a92ca90 100644
--- a/util/fbrun/FbRun.hh
+++ b/util/fbrun/FbRun.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbRun.hh,v 1.9 2003/03/22 11:31:43 fluxgen Exp $ 22// $Id: FbRun.hh,v 1.10 2003/06/24 10:22:42 fluxgen Exp $
23 23
24#ifndef FBRUN_HH 24#ifndef FBRUN_HH
25#define FBRUN_HH 25#define FBRUN_HH
@@ -71,7 +71,7 @@ public:
71 void exposeEvent(XExposeEvent &ev); 71 void exposeEvent(XExposeEvent &ev);
72 void keyPressEvent(XKeyEvent &ev); 72 void keyPressEvent(XKeyEvent &ev);
73 ///@} 73 ///@}
74 74
75private: 75private:
76 void nextHistoryItem(); 76 void nextHistoryItem();
77 void prevHistoryItem(); 77 void prevHistoryItem();
@@ -79,11 +79,23 @@ private:
79 void cursorRight(); 79 void cursorRight();
80 void drawString(int x, int y, const char *text, size_t len); 80 void drawString(int x, int y, const char *text, size_t len);
81 void getSize(size_t &width, size_t &height); 81 void getSize(size_t &width, size_t &height);
82 void createWindow(int x, int y, size_t width, size_t height); 82 void createWindow(int x, int y, size_t width, size_t height);
83 void redrawLabel(); 83 void redrawLabel();
84 /// set no maximizable for this window 84 /// set no maximizable for this window
85 void setNoMaximize(); 85 void setNoMaximize();
86 86
87 void cursorHome();
88 void cursorEnd();
89 void backspace();
90 void deleteForward();
91 void killToEnd();
92 void insertCharacter(KeySym ks, char *keychar);
93 void adjustStartPos();
94 void adjustEndPos();
95 void firstHistoryItem();
96 void lastHistoryItem();
97 void tabCompleteHistory();
98
87 FbTk::Font m_font; ///< font used to draw command text 99 FbTk::Font m_font; ///< font used to draw command text
88 FbTk::FbWindow m_win; ///< toplevel window 100 FbTk::FbWindow m_win; ///< toplevel window
89 Display *m_display; ///< display connection 101 Display *m_display; ///< display connection
@@ -95,7 +107,11 @@ private:
95 size_t m_current_history_item; ///< holds current position in command history 107 size_t m_current_history_item; ///< holds current position in command history
96 std::string m_history_file; ///< holds filename for command history file 108 std::string m_history_file; ///< holds filename for command history file
97 Cursor m_cursor; 109 Cursor m_cursor;
98 int m_cursor_pos; 110
111 int m_start_pos; ///< start position of portion of text to display
112 int m_cursor_pos; ///< relative to m_start_pos
113 int m_end_pos; ///< end postition of portion of text to display
114
99}; 115};
100 116
101#endif // FBRUN_HH 117#endif // FBRUN_HH