ReactOS  0.4.13-dev-563-g0561610
qtewin.h
Go to the documentation of this file.
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 
13 {
14  public:
15  QString ServerName;
16  QString UserName;
17  QString ServerIP;
18  int Width;
19  int Height;
21 };
22 
23 class 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;
65 };
66 
67 class QMyScrollView: public QScrollView
68 {
69  Q_OBJECT
70  public:
71  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;
82 };
83 
84 class QMyMainWindow: public QWidget
85 {
86  Q_OBJECT
87  public:
88  QMyMainWindow();
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*);
97  public slots:
98  void dataReceived();
99  void soundSend();
100  void MemuClicked(int);
101  public:
102  QPopupMenu* PopupMenu;
103  int timer_id;
104  int mx;
105  int my;
106 };
107 
void SaveClicked()
Definition: qtewin.cpp:407
QLineEdit * UserNameEdit
Definition: qtewin.h:36
void ComboChanged(int)
Definition: qtewin.cpp:323
void AddClicked()
Definition: qtewin.cpp:361
QPushButton * OKButton
Definition: qtewin.h:31
QString ServerIP
Definition: qtewin.h:17
int timer_id
Definition: qtewin.h:80
int FullScreen
Definition: qtewin.h:63
void keyPressEvent(QKeyEvent *)
Definition: qtewin.cpp:696
void OKClicked()
Definition: qtewin.cpp:343
void timerEvent(QTimerEvent *)
Definition: qtewin.cpp:750
void show()
Definition: qtewin.cpp:738
QLabel * Label3
Definition: qtewin.h:37
QLineEdit * HeightEdit
Definition: qtewin.h:40
void polish()
Definition: qtewin.cpp:744
QMyConnectionItem * ConnectionList[10]
Definition: qtewin.h:64
QString ServerIP
Definition: qtewin.h:60
QComboBox * WidthHeightBox
Definition: qtewin.h:41
void keyReleaseEvent(QKeyEvent *)
Definition: qtewin.cpp:714
QPushButton * EditButton
Definition: qtewin.h:43
QString UserName
Definition: qtewin.h:59
QString ServerName
Definition: qtewin.h:15
QLineEdit * ServerNameEdit
Definition: qtewin.h:34
QListBox * ListBox
Definition: qtewin.h:30
void closeEvent(QCloseEvent *)
Definition: qtewin.cpp:1205
void timerEvent(QTimerEvent *)
Definition: qtewin.cpp:865
int Width
Definition: qtewin.h:61
void paintEvent(QPaintEvent *)
Definition: qtewin.cpp:1123
int timer_id
Definition: qtewin.h:103
void dataReceived()
Definition: qtewin.cpp:1211
QString ServerName
Definition: qtewin.h:58
QLabel * Label1
Definition: qtewin.h:33
void mouseMoveEvent(QMouseEvent *)
Definition: qtewin.cpp:939
void CancelClicked()
Definition: qtewin.cpp:355
void ListBoxChanged()
Definition: qtewin.cpp:491
int sound_timer_id
Definition: qtewin.h:81
QPushButton * AddButton
Definition: qtewin.h:42
void MemuClicked(int)
Definition: qtewin.cpp:887
void wheelEvent(QWheelEvent *)
Definition: qtewin.cpp:993
void EditClicked()
Definition: qtewin.cpp:381
void RemoveClicked()
Definition: qtewin.cpp:465
QLineEdit * IPEdit
Definition: qtewin.h:38
void ListBoxSelected(int)
Definition: qtewin.cpp:513
int Height
Definition: qtewin.h:62
void mouseReleaseEvent(QMouseEvent *)
Definition: qtewin.cpp:977
QPushButton * SaveButton
Definition: qtewin.h:44
void showEvent(QShowEvent *)
Definition: qtewin.cpp:732
void mousePressEvent(QMouseEvent *)
Definition: qtewin.cpp:960
QMyDialog(QWidget *)
Definition: qtewin.cpp:159
QCheckBox * FullScreenCheckBox
Definition: qtewin.h:46
QPushButton * CancelButton
Definition: qtewin.h:32
QPopupMenu * PopupMenu
Definition: qtewin.h:102
void soundSend()
Definition: qtewin.cpp:1235
QString UserName
Definition: qtewin.h:16
~QMyDialog()
Definition: qtewin.cpp:310
QPushButton * RemoveButton
Definition: qtewin.h:45
QLineEdit * WidthEdit
Definition: qtewin.h:39
QLabel * Label2
Definition: qtewin.h:35