summaryrefslogtreecommitdiff
authoribotty <ibotty>2002-10-06 00:48:38 (UTC)
committer ibotty <ibotty>2002-10-06 00:48:38 (UTC)
commit9d081a8b393b8291d3d1b8cd064d9d928c2b0efc (patch) (side-by-side diff)
tree697f583cc85c4408e219e1ee3bfeac877b08ff8d
parent48b16b3a3557e70abf90e83b84396258b92b652e (diff)
downloadopie-9d081a8b393b8291d3d1b8cd064d9d928c2b0efc.zip
opie-9d081a8b393b8291d3d1b8cd064d9d928c2b0efc.tar.gz
opie-9d081a8b393b8291d3d1b8cd064d9d928c2b0efc.tar.bz2
initial proposal
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 @@
+/* -------------------------------------------------------------------------- */
+/* */
+/* [widget_layer.h] Widget Layer */
+/* */
+/* -------------------------------------------------------------------------- */
+
+// proposal of a widget Layer in opie-console
+//
+// fellow devels:
+// just mail me (ibotty@web.de), what you additionally need from the main widget
+// (or say in chat)
+
+
+
+class WidgetLayer : public QObject
+{ QObject
+
+public:
+ /**
+ * constructor
+ */
+ WidgetLayer();
+
+ /**
+ * destructor
+ */
+ virtual ~WidgetLayer();
+
+ /**
+ * sets the image
+ */
+ void setImage( const Character* const newimg, int lines, int colums );
+
+ /**
+ * annoy the user
+ */
+ void bell();
+
+ /**
+ * return the lines count
+ */
+ int lines() { return _lines; }
+
+ /**
+ * return the columns count
+ */
+ int columns() { return _columns }
+
+ /**
+ * copy selection into clipboard, etc
+ */
+ void emitSelection();
+
+ /**
+ * set selection (clipboard) to text
+ */
+ void setSelection( QString &text )
+
+ /**
+ * paste content of clipboard
+ */
+ void pasteClipboard();
+
+
+signals:
+
+ /**
+ * key was pressed
+ */
+ keyPressed( QKeyEvent *e );
+
+ /**
+ * whenever Mouse selects something
+ * 0 left Button
+ * 3 Button released
+ * // numbering due to layout in old TEWidget
+ */
+ mousePressed( int button, int x, int y );
+
+ /**
+ * size of image changed
+ */
+ imageSizeChanged( int lines, int columns );
+
+ /**
+ * cursor in history changed
+ */
+ historyCursorChanged( int value );
+
+ /**
+ * selection should be cleared
+ */
+ void selectionCleared();
+
+ /**
+ * selection begin
+ */
+ void selectionBegin( const int x, const int y )
+
+ /**
+ * selection extended
+ * (from begin s.a. to x, y)
+ */
+ void selectionExtended( const int x, const int y );
+
+ /**
+ * selection end
+ * bool: preserve line breaks in selection
+ */
+ void selectionEnd( const bool lineBreakPreserve );
+
+};
+
+