⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qtewin.h

📁 ReactOS是一些高手根据Windows XP的内核编写出的类XP。内核实现机理和API函数调用几乎相同。甚至可以兼容XP的程序。喜欢研究系统内核的人可以看一看。
💻 H
字号:

#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;
    int sound_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 soundSend();
    void MemuClicked(int);
  public:
    QPopupMenu* PopupMenu;
    int timer_id;
    int mx;
    int my;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -