hlp:640x480-小屏vx4齿轮泵代码提交
This commit is contained in:
@@ -0,0 +1,137 @@
|
||||
#ifndef PICEDIT_H
|
||||
#define PICEDIT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QPainter>
|
||||
#include <QPen>
|
||||
#include <QBrush>
|
||||
#include "MyFileDialog.h"
|
||||
#include "DialogInsertVari.h"
|
||||
#include "MyInputMethod.h"
|
||||
#include "DialogFileOperation.h"
|
||||
#include "DialogLineSpace.h"
|
||||
#include "SysPara.h"
|
||||
#include "string.h"
|
||||
#include "dlgdrawinit.h"
|
||||
#include "DialogSaveFile.h"
|
||||
#define MYDLG
|
||||
|
||||
namespace Ui {
|
||||
class PicEdit;
|
||||
}
|
||||
|
||||
#define MAX_PIC_HEIGHT 40
|
||||
#define MAX_PIC_WIDTH 100
|
||||
class PicEdit : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PicEdit(QWidget *parent = 0);
|
||||
~PicEdit();
|
||||
|
||||
void bindSysPara(SysPara *sysPara);
|
||||
|
||||
void setEnterKey(int n);
|
||||
|
||||
void DrawInit(bool mode);
|
||||
|
||||
|
||||
private slots:
|
||||
void ondlgDrawOK();
|
||||
#if 0 /* no use */
|
||||
void on_pushButtonDrawPIC_clicked();
|
||||
#endif
|
||||
void updateAuthorization(int auth);
|
||||
void cursorFlash();
|
||||
void on_pushButtonEnd_pressed();
|
||||
void on_pushButtonHome_pressed();
|
||||
|
||||
void on_pushButtonNew_pressed();
|
||||
void EditCurrFile(QString fileName);
|
||||
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_checkBoxDrawGridEn_clicked();
|
||||
|
||||
void on_spinBoxHeightPoint_valueChanged (int i);
|
||||
//void on_spinBoxWidthPoint_valueChanged (int i);
|
||||
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();
|
||||
|
||||
void on_pushButtonImport_clicked();
|
||||
void on_lineEditInputTxt_textEdited(QString txt);
|
||||
void on_comboBoxLattice_currentIndexChanged(int index);
|
||||
void on_pushButtonStartInput_clicked();
|
||||
void on_pushButtonDeleteChar_clicked();
|
||||
void on_radioButtonCharCurrent_clicked();
|
||||
void on_radioButtonDotCurrent_clicked();
|
||||
void showKeybord( );
|
||||
void on_pushButtonInsertVari_pressed();
|
||||
void on_pushButtonCharSpace_pressed();
|
||||
void on_pushButtonZKEdit_pressed();
|
||||
//void
|
||||
void ChinaProview(QString txt);
|
||||
void onFileOpen(QString txt,bool m);
|
||||
void printThisFileNow(QString s);
|
||||
void onChangeFont(int n);
|
||||
void on_pushButtonInsertMode_pressed();
|
||||
void on_checkBoxControlChar_clicked();
|
||||
Q_SIGNALS:
|
||||
void openCurrentFile(QString ,bool);
|
||||
void zkEditEnStatus(QString);
|
||||
void setMainTabNow(int);
|
||||
void setMainTabEdit(int);
|
||||
protected slots:
|
||||
void onSaveASFile(QString fileName, bool Flag);
|
||||
private:
|
||||
Ui::PicEdit *ui;
|
||||
MyFileDialog *fileDialog;
|
||||
dlgDrawInit * dlgdraw;
|
||||
QString openedFileName;
|
||||
//MyInputMethod *myInputMethod;
|
||||
DialogFileOperation *dialogFileOperation;
|
||||
DialogInsertVari *dialogInsertVari;
|
||||
DialogLineSpace *dialogLineSpace;
|
||||
SysPara *sysPara;
|
||||
QTextEdit *textEdit;
|
||||
QTimer *timer;
|
||||
bool isInput;
|
||||
bool zkEditEn;
|
||||
bool newFileAppending;
|
||||
bool inserPicFile;
|
||||
void checkNewFileAppending();
|
||||
bool maybeSave();
|
||||
bool forcePicWidgetSize;
|
||||
void keyPressEvent(QKeyEvent *e);
|
||||
int lineSpace,charSpace;
|
||||
int var[41];
|
||||
vars_t *p_avr;
|
||||
vars_t mVar[10];
|
||||
int VarNum;
|
||||
#ifdef MYSAVEFILEDLG
|
||||
DialogSaveFile *dialogSaveFile;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // PICEDIT_H
|
||||
Reference in New Issue
Block a user