账单记录器迁移。
This commit is contained in:
50
mainwidget.h
Normal file
50
mainwidget.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#ifndef MAINWIDGET_H
|
||||
#define MAINWIDGET_H
|
||||
|
||||
#include "SqlOpr.h"
|
||||
#include "util.h"
|
||||
#include "statistic.h"
|
||||
#include <QDialog>
|
||||
#include <memory>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
class MainWidget;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWidget : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWidget(QWidget* parent = nullptr);
|
||||
~MainWidget();
|
||||
|
||||
public:
|
||||
void Init();
|
||||
|
||||
private:
|
||||
bool RefreshData();
|
||||
bool Calculate();
|
||||
void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
private:
|
||||
void BaseInit();
|
||||
bool RefreshClassify();
|
||||
void SelectImg();
|
||||
|
||||
private:
|
||||
bool AddClassify();
|
||||
bool DelClassify();
|
||||
void Record();
|
||||
void Search();
|
||||
|
||||
private:
|
||||
std::shared_ptr<Statistic> statistic_;
|
||||
std::unique_ptr<ACTSqlOpr> sqlOpr_;
|
||||
std::unique_ptr<ComSqlOpr> comSqlOpr_;
|
||||
std::unique_ptr<RepaySqlOpr> repaySqlOpr_;
|
||||
Ui::MainWidget* ui;
|
||||
};
|
||||
#endif // MAINWIDGET_H
|
||||
Reference in New Issue
Block a user