加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.h 3.94 KB
一键复制 编辑 原始数据 按行查看 历史
詹向向 提交于 2021-05-09 15:20 . 信息
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QRect>
#include <QMenu>
#include <QToolBar>
#include <QMenuBar>
#include <QLabel>
#include <QWidget>
#include <QFileDialog>
#include <QColorDialog>
#include <QtPrintSupport/QPrintDialog>
#include <QProgressBar>
#include <QRgb>
#include <QColor>
#include <QList>
#include <QPicture>
#include <QThread>
#include <QGraphicsScene>
#include <QTableWidget>
#include "showimage.h"
#include "corewidgwt.h"
#include "aboutversiondia.h"
#include "dataprocess.h"
#include "readfilethread.h"
#include "prt.h"
#include "viewpicture.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
QMenu *file;
QMenu *tool;
QMenu *display;
QMenu *path;
QMenu *image;
QMenu *level;
QMenu *help;
//file
QAction *openAction;
QAction *previewAction;
QAction *saveAction;
QAction *printAction;
QAction *doc_Action;
QAction *doc_propertyAction;
QAction *doc_DirAction;
QAction *doc_refrushAction;
QAction *doc_exportAction;
QAction *edit_modeAction;
QAction *color_configAction;
QAction *edit_configAction;
QAction *exitAction;
//tool
QAction *zoomInAction;//放大
QAction *zoomOutAction;//缩小
QAction *handToolAction;//手型工具
//display
QAction *biggerAction;
QAction *smallerAction;
QAction *zoomAction;
QAction *toolBarAction;
QAction *statusBarAction;
//path
QAction *pathK_Action;
QAction *pathC_Action;
QAction *pathM_Action;
QAction *pathY_Action;
QAction *path5_Action;
QAction *path6_Action;
QAction *path7_Action;
QAction *path8_Action;
QAction *path9_Action;
QAction *path10_Action;
QAction *path11_Action;
QAction *path12_Action;
QAction *allPath_Action;
//image
QAction *allSel_Action;
QAction *cutAction;
QAction *copyAction;
QAction *pasteAction;
QAction *colorSel_Action;
QAction *toolSel_Action;
QAction *cancle_Action;
QAction *eraserAction;
QAction *dotTool_Action;
QAction *lineTool_Action;
QAction *circleTool_Action;
QAction *curveTool_Action;
//level
QAction *levelK_Action;
QAction *levelC_Action;
QAction *levelM_Action;
QAction *levelY_Action;
QAction *level5_Action ;
QAction *level6_Action;
QAction *level7_Action;
QAction *level8_Action;
QAction *level9_Action;
QAction *level10_Action;
QAction *level11_Action;
QAction *level12_Action;
//help
QAction *aboutAction;
CoreWidgwt *coreWidgwt;//背景显示页面
QLabel *label;
QProgressBar *proBar;//进度条
QFile *fileName;
QImage *other_image;
RipHEADER *ripPix;
ReadFileThread *readFileThread;//创建读文件的线程
DataProcess *dataProcess;//创建数据处理进程
ShowImage *showImage;
QGraphicsScene *scene;//场景
ViewPicture *viewPicture;//场景显示窗口
signals:
//void shoot_LINE_SIGNAL(DWORD BytePerLine);
//void shoot_PIX_POINT_LIST(QList<PixPoint > list,DWORD bytesLine,DWORD height );//发射读取到的每一行数据
public slots:
void showVersionInfo();//显示版本信息的窗口
void openFile();//打开文件
void printFile();//打印文件
void exitWin();//退出主窗口
//void showImage();//显示图片
void colorSelect();//选择颜色
void showRipHead();//显示文件的头信息
public:
void onLoadMenu();//加载菜单栏
void onLoadToolBar();//加载工具栏
void initSlot();//初始化槽函数
void onLoadView();//加载Main窗口的中间窗口
private slots:
void on_action_11_triggered();
};
#endif // MAINWINDOW_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化