/[rdesktop]/sourceforge.net/trunk/rdesktop/uiports/qtewin.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /sourceforge.net/trunk/rdesktop/uiports/qtewin.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 749 - (show annotations)
Thu Aug 12 02:35:46 2004 UTC (19 years, 9 months ago) by jsorg71
File MIME type: text/plain
File size: 2184 byte(s)
added qtewin.h

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
12 class QMyConnectionItem
13 {
14 public:
15 QString ServerName;
16 QString UserName;
17 QString ServerIP;
18 int Width;
19 int Height;
20 int FullScreen;
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;
63 int FullScreen;
64 QMyConnectionItem* ConnectionList[10];
65 };
66
67 class 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
83 class 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

  ViewVC Help
Powered by ViewVC 1.1.26