summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/widget_layer.h114
1 files changed, 114 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/widget_layer.h b/noncore/apps/opie-console/widget_layer.h
new file mode 100644
index 0000000..a1f3f30
--- a/dev/null
+++ b/noncore/apps/opie-console/widget_layer.h
@@ -0,0 +1,114 @@
1/* -------------------------------------------------------------------------- */
2/* */
3/* [widget_layer.h] Widget Layer */
4/* */
5/* -------------------------------------------------------------------------- */
6
7// proposal of a widget Layer in opie-console
8//
9// fellow devels:
10// just mail me (ibotty@web.de), what you additionally need from the main widget
11// (or say in chat)
12
13
14
15class WidgetLayer : public QObject
16{ QObject
17
18public:
19 /**
20 * constructor
21 */
22 WidgetLayer();
23
24 /**
25 * destructor
26 */
27 virtual ~WidgetLayer();
28
29 /**
30 * sets the image
31 */
32 void setImage( const Character* const newimg, int lines, int colums );
33
34 /**
35 * annoy the user
36 */
37 void bell();
38
39 /**
40 * return the lines count
41 */
42 int lines(){ return _lines; }
43
44 /**
45 * return the columns count
46 */
47 int columns(){ return _columns }
48
49 /**
50 * copy selection into clipboard, etc
51 */
52 void emitSelection();
53
54 /**
55 * set selection (clipboard) to text
56 */
57 void setSelection( QString &text )
58
59 /**
60 * paste content of clipboard
61 */
62 void pasteClipboard();
63
64
65signals:
66
67 /**
68 * key was pressed
69 */
70 keyPressed( QKeyEvent *e );
71
72 /**
73 * whenever Mouse selects something
74 * 0left Button
75 * 3Button released
76 * // numbering due to layout in old TEWidget
77 */
78 mousePressed( int button, int x, int y );
79
80 /**
81 * size of image changed
82 */
83 imageSizeChanged( int lines, int columns );
84
85 /**
86 * cursor in history changed
87 */
88 historyCursorChanged( int value );
89
90 /**
91 * selection should be cleared
92 */
93 void selectionCleared();
94
95 /**
96 * selection begin
97 */
98 void selectionBegin( const int x, const int y )
99
100 /**
101 * selection extended
102 * (from begin s.a. to x, y)
103 */
104 void selectionExtended( const int x, const int y );
105
106 /**
107 * selection end
108 * bool: preserve line breaks in selection
109 */
110 void selectionEnd( const bool lineBreakPreserve );
111
112};
113
114