summaryrefslogtreecommitdiff
path: root/noncore/net/opierdesktop/qtwin.h
authormickeyl <mickeyl>2003-08-10 15:17:24 (UTC)
committer mickeyl <mickeyl>2003-08-10 15:17:24 (UTC)
commit1fb2f4ef9788b51c67b9c0f89ac3c3ce85e45e8f (patch) (unidiff)
tree73b54db5d3aa3e40f4159079c14c8fca90a76c1e /noncore/net/opierdesktop/qtwin.h
parentdf6337abb65463b466435a526bf62108e72a60f7 (diff)
downloadopie-1fb2f4ef9788b51c67b9c0f89ac3c3ce85e45e8f.zip
opie-1fb2f4ef9788b51c67b9c0f89ac3c3ce85e45e8f.tar.gz
opie-1fb2f4ef9788b51c67b9c0f89ac3c3ce85e45e8f.tar.bz2
initial import of qtrdesktop - not yet opiefied but working
Diffstat (limited to 'noncore/net/opierdesktop/qtwin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opierdesktop/qtwin.h105
1 files changed, 105 insertions, 0 deletions
diff --git a/noncore/net/opierdesktop/qtwin.h b/noncore/net/opierdesktop/qtwin.h
new file mode 100644
index 0000000..38ad190
--- a/dev/null
+++ b/noncore/net/opierdesktop/qtwin.h
@@ -0,0 +1,105 @@
1
2#include <qwidget.h>
3#include <qscrollview.h>
4#include <qdialog.h>
5#include <qlistbox.h>
6#include <qlineedit.h>
7#include <qcombobox.h>
8#include <qlabel.h>
9#include <qcheckbox.h>
10#include <qpopupmenu.h>
11
12class QMyConnectionItem
13{
14 public:
15 QString ServerName;
16 QString UserName;
17 QString ServerIP;
18 int Width;
19 int Height;
20 int FullScreen;
21};
22
23class QMyDialog: public QDialog
24{
25 Q_OBJECT
26 public:
27 QMyDialog(QWidget*);
28 ~QMyDialog();
29 public:
30 QListBox* ListBox;
31 QPushButton* OKButton;
32 QPushButton* CancelButton;
33 QLabel* Label1;
34 QLineEdit* ServerNameEdit;
35 QLabel* Label2;
36 QLineEdit* UserNameEdit;
37 QLabel* Label3;
38 QLineEdit* IPEdit;
39 QLineEdit* WidthEdit;
40 QLineEdit* HeightEdit;
41 QComboBox* WidthHeightBox;
42 QPushButton* AddButton;
43 QPushButton* EditButton;
44 QPushButton* SaveButton;
45 QPushButton* RemoveButton;
46 QCheckBox* FullScreenCheckBox;
47 public slots:
48 void ComboChanged(int);
49 void OKClicked();
50 void CancelClicked();
51 void AddClicked();
52 void EditClicked();
53 void SaveClicked();
54 void RemoveClicked();
55 void ListBoxChanged();
56 void ListBoxSelected(int);
57 public:
58 QString ServerName;
59 QString UserName;
60 QString ServerIP;
61 int Width;
62 int Height;
63 int FullScreen;
64 QMyConnectionItem* ConnectionList[10];
65};
66
67class QMyScrollView: public QScrollView
68{
69 Q_OBJECT
70 public:
71 QMyScrollView();
72 ~QMyScrollView();
73 void keyPressEvent(QKeyEvent*);
74 void keyReleaseEvent(QKeyEvent*);
75 void showEvent(QShowEvent*);
76 void show();
77 void polish();
78 void timerEvent(QTimerEvent*);
79 public:
80 int timer_id;
81};
82
83class QMyMainWindow: public QWidget
84{
85 Q_OBJECT
86 public:
87 QMyMainWindow();
88 ~QMyMainWindow();
89 void paintEvent(QPaintEvent*);
90 void mouseMoveEvent(QMouseEvent*);
91 void mousePressEvent(QMouseEvent*);
92 void mouseReleaseEvent(QMouseEvent*);
93 void wheelEvent(QWheelEvent*);
94 void closeEvent(QCloseEvent*);
95 void timerEvent(QTimerEvent*);
96 public slots:
97 void dataReceived();
98 void MemuClicked(int);
99 public:
100 QPopupMenu* PopupMenu;
101 int timer_id;
102 int mx;
103 int my;
104};
105