hlp:640x480-小屏vx4齿轮泵代码提交
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
#ifndef ZKEDIT_H
|
||||
#define ZKEDIT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QPainter>
|
||||
#include <QPen>
|
||||
#include <QBrush>
|
||||
#include "MyFileDialog.h"
|
||||
#include "DialogSaveFile.h"
|
||||
#include "myinclude.h"
|
||||
namespace Ui {
|
||||
class ZkEdit;
|
||||
}
|
||||
|
||||
#define MAX_PIC_HEIGHT 40
|
||||
#define MAX_PIC_WIDTH 100
|
||||
class ZkEdit : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ZkEdit(QWidget *parent = 0);
|
||||
~ZkEdit();
|
||||
|
||||
protected slots:
|
||||
void onSaveASFile(QString fileName, bool Flag);
|
||||
private slots:
|
||||
void on_pushButtonNew_pressed();
|
||||
|
||||
void on_pushButtonEnlarge_pressed();
|
||||
|
||||
void on_pushButtonReduce_pressed();
|
||||
|
||||
void on_pushButtonUp_pressed();
|
||||
|
||||
void on_pushButtonLeft_pressed();
|
||||
|
||||
void on_pushButtonEnsure_pressed();
|
||||
|
||||
void on_pushButtonRight_pressed();
|
||||
|
||||
void on_pushButtonDown_pressed();
|
||||
|
||||
void on_pushButtonSaveAs_clicked();
|
||||
void onSaveAS_FIle_select();
|
||||
void onSave_File_reject();
|
||||
void on_pushButtonOpen_clicked();
|
||||
void onOpenFIle_select();
|
||||
void on_pushButtonSave_clicked();
|
||||
|
||||
void enableSaveButton(int w,int h);
|
||||
|
||||
void on_pushButtonImport_clicked();
|
||||
void oncheckboxExpandClicked(bool);
|
||||
void oncheckboxTrimPicClicked(bool);
|
||||
|
||||
private:
|
||||
Ui::ZkEdit *ui;
|
||||
MyFileDialog *fileDialog;
|
||||
QString openedFileName;
|
||||
bool newFileAppending;
|
||||
void checkNewFileAppending();
|
||||
bool maybeSave();
|
||||
bool forcePicWidgetSize;
|
||||
void keyPressEvent(QKeyEvent *e);
|
||||
#ifdef MYSAVEFILEDLG
|
||||
DialogSaveFile *dialogSaveFile;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
// ZKEDIT_H
|
||||
|
||||
Reference in New Issue
Block a user