summaryrefslogtreecommitdiff
authoribotty <ibotty>2002-10-06 12:40:48 (UTC)
committer ibotty <ibotty>2002-10-06 12:40:48 (UTC)
commitfb0027ea0649aa5bf4c3880dc84df459425c0642 (patch) (unidiff)
treed8fd30a024db5788ab5618557cd141f529a28ad2
parent13ed195192154a82fd07dde602f27d478007a27f (diff)
downloadopie-fb0027ea0649aa5bf4c3880dc84df459425c0642.zip
opie-fb0027ea0649aa5bf4c3880dc84df459425c0642.tar.gz
opie-fb0027ea0649aa5bf4c3880dc84df459425c0642.tar.bz2
made setImage virual
// setImage should be the only virtual public method. // feel free to flame... ;) added first protected var, more will follow
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/widget_layer.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/widget_layer.h b/noncore/apps/opie-console/widget_layer.h
index 5474c64..cf2a1e5 100644
--- a/noncore/apps/opie-console/widget_layer.h
+++ b/noncore/apps/opie-console/widget_layer.h
@@ -1,4 +1,4 @@
1/* -------------------------------------------------------------------------- */ 1
2/* */ 2/* */
3/* [widget_layer.h] Widget Layer */ 3/* [widget_layer.h] Widget Layer */
4/* */ 4/* */
@@ -11,7 +11,6 @@
11// (or say in chat) 11// (or say in chat)
12 12
13 13
14
15class WidgetLayer : public QObject 14class WidgetLayer : public QObject
16{ QObject 15{ QObject
17 16
@@ -29,7 +28,7 @@ public:
29 /** 28 /**
30 * sets the image 29 * sets the image
31 */ 30 */
32 void setImage( const Character* const newimg, int lines, int colums ); 31 virtual void setImage( const Character* const newimg, int lines, int colums );
33 32
34 /** 33 /**
35 * annoy the user 34 * annoy the user
@@ -39,12 +38,12 @@ public:
39 /** 38 /**
40 * return the lines count 39 * return the lines count
41 */ 40 */
42 int lines(){ return _lines; } 41 int lines(){ return m_lines; }
43 42
44 /** 43 /**
45 * return the columns count 44 * return the columns count
46 */ 45 */
47 int columns(){ return _columns } 46 int columns(){ return m_columns }
48 47
49 /** 48 /**
50 * copy selection into clipboard, etc 49 * copy selection into clipboard, etc
@@ -116,6 +115,16 @@ slots:
116 */ 115 */
117 onClearSelection(); 116 onClearSelection();
118 117
119}; 118// protected vars
119protected:
120
121 /**
122 * current Session
123 */
124 Session m_session;
120 125
126 /**
127 * other misc vars
128 */
121 129
130};