author | mickeyl <mickeyl> | 2003-08-10 15:17:24 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-08-10 15:17:24 (UTC) |
commit | 1fb2f4ef9788b51c67b9c0f89ac3c3ce85e45e8f (patch) (side-by-side diff) | |
tree | 73b54db5d3aa3e40f4159079c14c8fca90a76c1e /noncore/net/opierdesktop/qtwin.h | |
parent | df6337abb65463b466435a526bf62108e72a60f7 (diff) | |
download | opie-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.h | 105 |
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 @@ + +#include <qwidget.h> +#include <qscrollview.h> +#include <qdialog.h> +#include <qlistbox.h> +#include <qlineedit.h> +#include <qcombobox.h> +#include <qlabel.h> +#include <qcheckbox.h> +#include <qpopupmenu.h> + +class QMyConnectionItem +{ + public: + QString ServerName; + QString UserName; + QString ServerIP; + int Width; + int Height; + int FullScreen; +}; + +class QMyDialog: public QDialog +{ + Q_OBJECT + public: + QMyDialog(QWidget*); + ~QMyDialog(); + public: + QListBox* ListBox; + QPushButton* OKButton; + QPushButton* CancelButton; + QLabel* Label1; + QLineEdit* ServerNameEdit; + QLabel* Label2; + QLineEdit* UserNameEdit; + QLabel* Label3; + QLineEdit* IPEdit; + QLineEdit* WidthEdit; + QLineEdit* HeightEdit; + QComboBox* WidthHeightBox; + QPushButton* AddButton; + QPushButton* EditButton; + QPushButton* SaveButton; + QPushButton* RemoveButton; + QCheckBox* FullScreenCheckBox; + public slots: + void ComboChanged(int); + void OKClicked(); + void CancelClicked(); + void AddClicked(); + void EditClicked(); + void SaveClicked(); + void RemoveClicked(); + void ListBoxChanged(); + void ListBoxSelected(int); + public: + QString ServerName; + QString UserName; + QString ServerIP; + int Width; + int Height; + int FullScreen; + QMyConnectionItem* ConnectionList[10]; +}; + +class QMyScrollView: public QScrollView +{ + Q_OBJECT + public: + QMyScrollView(); + ~QMyScrollView(); + void keyPressEvent(QKeyEvent*); + void keyReleaseEvent(QKeyEvent*); + void showEvent(QShowEvent*); + void show(); + void polish(); + void timerEvent(QTimerEvent*); + public: + int timer_id; +}; + +class QMyMainWindow: public QWidget +{ + Q_OBJECT + public: + QMyMainWindow(); + ~QMyMainWindow(); + void paintEvent(QPaintEvent*); + void mouseMoveEvent(QMouseEvent*); + void mousePressEvent(QMouseEvent*); + void mouseReleaseEvent(QMouseEvent*); + void wheelEvent(QWheelEvent*); + void closeEvent(QCloseEvent*); + void timerEvent(QTimerEvent*); + public slots: + void dataReceived(); + void MemuClicked(int); + public: + QPopupMenu* PopupMenu; + int timer_id; + int mx; + int my; +}; + |