?? qtewin.h
字號:
#include <qwidget.h>#include <qscrollview.h>#include <qdialog.h>#include <qlistbox.h>#include <qlineedit.h>#include <qcombobox.h>#include <qlabel.h>#include <qevent.h>#include <qcheckbox.h>#include <qpopupmenu.h>#include <qwsevent_qws.h>#include <qpe/qpeapplication.h>class QTabWidget;class QMyConnectionItem{ public: QString ServerName; QString UserName; QString Password; QString ServerIP; int PortNo; int WidthHeight; int FullScreen; int Color; int RDP5Exp; int RDP5Exp1; int RDP5Exp2; int RDP5Exp3; int RDP5Exp4; int KBD; int Ctrl; int OK; int Left; int Enc; int Comp; int Sound; int Disk; QString DiskArg; int Console; int Cache;};class QMyDialog: public QDialog{ Q_OBJECT public: QMyDialog(QWidget*); ~QMyDialog(); public: QListBox* ListBox; QPushButton* AddButton; QPushButton* EditButton; QPushButton* SaveButton; QPushButton* RemoveButton; QTabWidget* TabWidget; QWidget* Tab1; QWidget* Tab2; QWidget* Tab3; QWidget* Tab4; QLabel* Label1; QLineEdit* ServerNameEdit; QLabel* Label2; QLineEdit* UserNameEdit; QLabel* Label3; QLineEdit* PWDEdit; QLabel* Label4; QLineEdit* IPEdit; QLabel* Label5; QLineEdit* PortNoEdit; QLabel* Label6; QComboBox* ColorBox; QLabel* Label7; QComboBox* KBDBox; QLabel* Label12; QComboBox* SoundBox; QLabel* Label13; QComboBox* DiskBox; QLineEdit* DiskEdit; QLabel* Label8; QComboBox* RDP5ExpBox; QCheckBox* RDP5ExpCheckBox1; QCheckBox* RDP5ExpCheckBox2; QCheckBox* RDP5ExpCheckBox3; QCheckBox* RDP5ExpCheckBox4; QLabel* Label9; QComboBox* CacheBox; QLabel* Label10; QLabel* Label11; QPushButton* DelCache1Button; QPushButton* DelCache2Button; QCheckBox* FullScreenCheckBox; QCheckBox* CtrlCheck; QCheckBox* OKCheck; QCheckBox* LeftCheck; QCheckBox* EncCheck; QCheckBox* CompCheck; QCheckBox* ConsoleCheck; QComboBox* WidthHeightBox; QPushButton* OKButton; QPushButton* CancelButton; public slots: void RDP5ExpComboChanged(int); void CacheChanged(int); void DelCache1(); void DelCache2(); void OKClicked(); void CancelClicked(); void AddClicked(); void SaveClicked(); void RemoveClicked(); void ListBoxChanged(); void ListBoxSelected(int); public: QString ServerName; QString UserName; QString Password; QString ServerIP; int PortNo; int WidthHeight; int FullScreen; int Color; int RDP5Exp; int RDP5Exp1; int RDP5Exp2; int RDP5Exp3; int RDP5Exp4; int KBD; int Ctrl; int OK; int Left; int ForceUp; int Enc; int Comp; int Sound; int Disk; QString DiskArg; int Console; int Cache; int CacheSize11; int CacheSize12; int CacheSize21; int CacheSize22; int CacheSize31; int CacheSize32; void CacheSizeSet(int,int); QMyConnectionItem* ConnectionList[10];};class QMyScrollView: public QScrollView{ Q_OBJECT public: QMyScrollView(); ~QMyScrollView(); void focusInEvent(QFocusEvent*); void focusOutEvent(QFocusEvent*); void keyPressEvent(QKeyEvent *); void keyReleaseEvent(QKeyEvent *); void showEvent(QShowEvent *); void show(); void polish(); void timerEvent(QTimerEvent *); int timer_id; int sound_timer_id;};class QMyMainWindow: public QWidget{ Q_OBJECT private: QPainter* Painter; public: QMyMainWindow(); ~QMyMainWindow(); void paintEvent(QPaintEvent*); void mouseMoveEvent(QMouseEvent*); void mousePressEvent(QMouseEvent*); void mouseReleaseEvent(QMouseEvent*); void wheelEvent(QWheelEvent*); void closeEvent(QCloseEvent*); void timerEvent(QTimerEvent*); void QMyMainWindow::SetScreen(void); public slots: void dataReceived(); void soundSend(); void MemuClicked(int); public: QPopupMenu* PopupMenu; int timer_id; int mx; int my; int gmx; int gmy; bool bAddressPressed; bool bOKPressed; bool bAddressCheck; bool bClickCheck;};class MyApp : public QPEApplication{ Q_OBJECTpublic: MyApp( int & argc, char ** argv ); ~MyApp(); bool qwsEventFilter(QWSEvent *e);};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -