author | ibotty <ibotty> | 2002-10-09 13:33:13 (UTC) |
---|---|---|
committer | ibotty <ibotty> | 2002-10-09 13:33:13 (UTC) |
commit | ff0caad7ea46d19f7a7916047fd0914f6f100dde (patch) (unidiff) | |
tree | 36c13de1622bfb5df3085c00d22afb9e819ae5d4 | |
parent | bf6623541f63060366a88f56d7b05360fcaa5875 (diff) | |
download | opie-ff0caad7ea46d19f7a7916047fd0914f6f100dde.zip opie-ff0caad7ea46d19f7a7916047fd0914f6f100dde.tar.gz opie-ff0caad7ea46d19f7a7916047fd0914f6f100dde.tar.bz2 |
added method, to reload configuration, without having to restart it...
-rw-r--r-- | noncore/apps/opie-console/widget_layer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/widget_layer.h b/noncore/apps/opie-console/widget_layer.h index 0056061..c91a957 100644 --- a/noncore/apps/opie-console/widget_layer.h +++ b/noncore/apps/opie-console/widget_layer.h | |||
@@ -39,128 +39,134 @@ class WidgetLayer : public QFrame | |||
39 | { Q_OBJECT | 39 | { Q_OBJECT |
40 | 40 | ||
41 | public: | 41 | public: |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * constructor | 44 | * constructor |
45 | * @param const Profile &config, the configuration for this widget | 45 | * @param const Profile &config, the configuration for this widget |
46 | * @param QWidget *parent, the parent widget | 46 | * @param QWidget *parent, the parent widget |
47 | * @param const char *name, the name of the widget, defaults to "" | 47 | * @param const char *name, the name of the widget, defaults to "" |
48 | */ | 48 | */ |
49 | WidgetLayer( const Profile& config, QWidget *parent=0, const char *name=0 ); | 49 | WidgetLayer( const Profile& config, QWidget *parent=0, const char *name=0 ); |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * destructor | 52 | * destructor |
53 | */ | 53 | */ |
54 | virtual ~WidgetLayer(); | 54 | virtual ~WidgetLayer(); |
55 | 55 | ||
56 | public: | 56 | public: |
57 | /** | 57 | /** |
58 | * sets the image | 58 | * sets the image |
59 | * @param QArray<Character> const newimg, the new image | 59 | * @param QArray<Character> const newimg, the new image |
60 | * @param int lines, lines count of newimg | 60 | * @param int lines, lines count of newimg |
61 | * @param int columns, columns count of newimg | 61 | * @param int columns, columns count of newimg |
62 | */ | 62 | */ |
63 | virtual void setImage( QArray<Character> const newimg, int lines, int colums ) = 0; | 63 | virtual void setImage( QArray<Character> const newimg, int lines, int colums ) = 0; |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * annoy the user | 66 | * annoy the user |
67 | */ | 67 | */ |
68 | void bell(); | 68 | void bell(); |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * @return int m_lines, the lines count | 71 | * @return int m_lines, the lines count |
72 | */ | 72 | */ |
73 | int lines(){ return m_lines; } | 73 | int lines(){ return m_lines; } |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * @return int m_columns, the columns count | 76 | * @return int m_columns, the columns count |
77 | */ | 77 | */ |
78 | int columns(){ return m_columns; } | 78 | int columns(){ return m_columns; } |
79 | 79 | ||
80 | /** | 80 | /** |
81 | * insert current selection (currently this is only the clipboard) | 81 | * insert current selection (currently this is only the clipboard) |
82 | */ | 82 | */ |
83 | void insertSelection(); | 83 | void insertSelection(); |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * insert text | 86 | * insert text |
87 | * @param QString text, the text to be inserted | 87 | * @param QString text, the text to be inserted |
88 | */ | 88 | */ |
89 | void insertText( QString text ); | 89 | void insertText( QString text ); |
90 | 90 | ||
91 | /** | 91 | /** |
92 | * set selection (clipboard) to text | 92 | * set selection (clipboard) to text |
93 | * @param const QString &text, the text to be selected | 93 | * @param const QString &text, the text to be selected |
94 | */ | 94 | */ |
95 | void setSelection( const QString &text ); | 95 | void setSelection( const QString &text ); |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * paste content of clipboard | 98 | * paste content of clipboard |
99 | */ | 99 | */ |
100 | void pasteClipboard(); | 100 | void pasteClipboard(); |
101 | 101 | ||
102 | 102 | ||
103 | /** | ||
104 | * reload configuration | ||
105 | */ | ||
106 | virtual void reloadConfig(); | ||
107 | |||
108 | |||
103 | signals: | 109 | signals: |
104 | 110 | ||
105 | /** | 111 | /** |
106 | * key was pressed | 112 | * key was pressed |
107 | */ | 113 | */ |
108 | void keyPressed( QKeyEvent *e ); | 114 | void keyPressed( QKeyEvent *e ); |
109 | 115 | ||
110 | /** | 116 | /** |
111 | * whenever Mouse selects something | 117 | * whenever Mouse selects something |
112 | * @param int button, the button that us pressed : | 118 | * @param int button, the button that us pressed : |
113 | * 0left Button | 119 | * 0left Button |
114 | * 3Button released | 120 | * 3Button released |
115 | * @param int x, x position | 121 | * @param int x, x position |
116 | * @param int y, y position | 122 | * @param int y, y position |
117 | * | 123 | * |
118 | * // numbering due to layout in old TEWidget | 124 | * // numbering due to layout in old TEWidget |
119 | */ | 125 | */ |
120 | void mousePressed( int button, int x, int y ); | 126 | void mousePressed( int button, int x, int y ); |
121 | 127 | ||
122 | /** | 128 | /** |
123 | * size of image changed | 129 | * size of image changed |
124 | * @param int lines, line count of new size | 130 | * @param int lines, line count of new size |
125 | * @param int columns, column count of new size | 131 | * @param int columns, column count of new size |
126 | */ | 132 | */ |
127 | void imageSizeChanged( int lines, int columns ); | 133 | void imageSizeChanged( int lines, int columns ); |
128 | 134 | ||
129 | /** | 135 | /** |
130 | * cursor in history changed | 136 | * cursor in history changed |
131 | * @param int value, value of history cursor | 137 | * @param int value, value of history cursor |
132 | */ | 138 | */ |
133 | void historyCursorChanged( int value ); | 139 | void historyCursorChanged( int value ); |
134 | 140 | ||
135 | /** | 141 | /** |
136 | * selection should be cleared | 142 | * selection should be cleared |
137 | */ | 143 | */ |
138 | void selectionCleared(); | 144 | void selectionCleared(); |
139 | 145 | ||
140 | /** | 146 | /** |
141 | * selection begin | 147 | * selection begin |
142 | * @param const int x, x position | 148 | * @param const int x, x position |
143 | * @param const int y, y position | 149 | * @param const int y, y position |
144 | */ | 150 | */ |
145 | void selectionBegin( const int x, const int y ); | 151 | void selectionBegin( const int x, const int y ); |
146 | 152 | ||
147 | /** | 153 | /** |
148 | * selection extended | 154 | * selection extended |
149 | * (from begin (s.a.) to x, y) | 155 | * (from begin (s.a.) to x, y) |
150 | * @param const int x, x position | 156 | * @param const int x, x position |
151 | * @param const int y, y position | 157 | * @param const int y, y position |
152 | */ | 158 | */ |
153 | void selectionExtended( const int x, const int y ); | 159 | void selectionExtended( const int x, const int y ); |
154 | 160 | ||
155 | /** | 161 | /** |
156 | * selection end | 162 | * selection end |
157 | * @param const bool lineBreakPreserve, preserve line breaks in selection | 163 | * @param const bool lineBreakPreserve, preserve line breaks in selection |
158 | */ | 164 | */ |
159 | void selectionEnd( const bool lineBreakPreserve ); | 165 | void selectionEnd( const bool lineBreakPreserve ); |
160 | 166 | ||
161 | 167 | ||
162 | 168 | ||
163 | // protected methods | 169 | // protected methods |
164 | protected: | 170 | protected: |
165 | 171 | ||
166 | // image operations | 172 | // image operations |