hlp:桂林国际齿轮泵代码
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
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,53 @@
|
||||
#include "TimeSettingDialog.h"
|
||||
#include "ui_timesettingdialog.h"
|
||||
|
||||
TimeSettingDialog::TimeSettingDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::TimeSettingDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowTitle(tr("设置时间"));
|
||||
this->setFixedSize(this->geometry().width(),this->geometry().height());
|
||||
}
|
||||
|
||||
TimeSettingDialog::~TimeSettingDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
int TimeSettingDialog::getYear(){
|
||||
return ui->spinBoxYear->value();
|
||||
}
|
||||
int TimeSettingDialog::getMonth(){
|
||||
return ui->spinBoxMonth->value();
|
||||
}
|
||||
int TimeSettingDialog::getDay(){
|
||||
return ui->spinBoxDay->value();
|
||||
}
|
||||
int TimeSettingDialog::getHour(){
|
||||
return ui->spinBoxHour->value();
|
||||
}
|
||||
int TimeSettingDialog::getMinute(){
|
||||
return ui->spinBoxMinute->value();
|
||||
}
|
||||
int TimeSettingDialog::getSecond(){
|
||||
return ui->spinBoxSecond->value();
|
||||
}
|
||||
void TimeSettingDialog::setYear(int value){
|
||||
ui->spinBoxYear->setValue(value);
|
||||
}
|
||||
void TimeSettingDialog::setMonth(int value){
|
||||
ui->spinBoxMonth->setValue(value);
|
||||
}
|
||||
void TimeSettingDialog::setDay(int value){
|
||||
ui->spinBoxDay->setValue(value);
|
||||
}
|
||||
void TimeSettingDialog::setHour(int value){
|
||||
ui->spinBoxHour->setValue(value);
|
||||
}
|
||||
void TimeSettingDialog::setMinute(int value){
|
||||
ui->spinBoxMinute->setValue(value);
|
||||
}
|
||||
void TimeSettingDialog::setSecond(int value){
|
||||
ui->spinBoxSecond->setValue(value);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user