3 #include <qscrollview.h>
10 #include <qpopupmenu.h>
12 class QMyConnectionItem
23 class QMyDialog
: public QDialog
31 QPushButton
* OKButton
;
32 QPushButton
* CancelButton
;
34 QLineEdit
* ServerNameEdit
;
36 QLineEdit
* UserNameEdit
;
40 QLineEdit
* HeightEdit
;
41 QComboBox
* WidthHeightBox
;
42 QPushButton
* AddButton
;
43 QPushButton
* EditButton
;
44 QPushButton
* SaveButton
;
45 QPushButton
* RemoveButton
;
46 QCheckBox
* FullScreenCheckBox
;
48 void ComboChanged(int);
55 void ListBoxChanged();
56 void ListBoxSelected(int);
64 QMyConnectionItem
* ConnectionList
[10];
67 class QMyScrollView
: public QScrollView
73 void keyPressEvent(QKeyEvent
*);
74 void keyReleaseEvent(QKeyEvent
*);
75 void showEvent(QShowEvent
*);
78 void timerEvent(QTimerEvent
*);
84 class QMyMainWindow
: public QWidget
90 void paintEvent(QPaintEvent
*);
91 void mouseMoveEvent(QMouseEvent
*);
92 void mousePressEvent(QMouseEvent
*);
93 void mouseReleaseEvent(QMouseEvent
*);
94 void wheelEvent(QWheelEvent
*);
95 void closeEvent(QCloseEvent
*);
96 void timerEvent(QTimerEvent
*);
100 void MemuClicked(int);
102 QPopupMenu
* PopupMenu
;