Commit ac842cff by yunpeng.song

初始化二

parent c3655595
/********************
/********************
* 流程控制
* *****************/
......
#include "ClickedLineEdit.h"
#include "ClickedLineEdit.h"
#ifndef CLICKEDLINEEDIT_H
#ifndef CLICKEDLINEEDIT_H
#define CLICKEDLINEEDIT_H
#include <QMouseEvent>
......
#ifndef DATAMANGER_H
#ifndef DATAMANGER_H
#define DATAMANGER_H
#include <QJsonObject>
......
#include "headframe.h"
#include "headframe.h"
void HeadFrame::mouseMoveEvent(QMouseEvent *event)
{
......
#ifndef HEADFRAME_H
#ifndef HEADFRAME_H
#define HEADFRAME_H
#include <QMouseEvent>
#include <QFrame>
......
#include "orderstatus.h"
#include "orderstatus.h"
#include "QsLog.h"
#include <QCoreApplication>
......
#ifndef ORDERSTATUS_H
#ifndef ORDERSTATUS_H
#define ORDERSTATUS_H
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
......
#ifndef SYSTRAY_H
#ifndef SYSTRAY_H
#define SYSTRAY_H
#include <QSystemTrayIcon>
......
#include "util.h"
#include "util.h"
#include "preDefine.h"
QString Penny2Dollar(int penny)
......
#ifndef UTIL_H
#ifndef UTIL_H
#define UTIL_H
#include <QString>
......
#include "baseObject.h"
#include "baseObject.h"
#include <QStringList>
#include <QVariant>
#include "preDefine.h"
......
#ifndef BASEOBJECT_H
#ifndef BASEOBJECT_H
#define BASEOBJECT_H
#include <QObject>
......
#include "cashierObject.h"
#include "cashierObject.h"
#ifndef CASHIEROBJECT_H
#ifndef CASHIEROBJECT_H
#define CASHIEROBJECT_H
#include <QString>
......
#include "deliverObject.h"
#include "deliverObject.h"
QString DeliverObject::getId() const
{
......
#ifndef DELIVEROBJECT_H
#ifndef DELIVEROBJECT_H
#define DELIVEROBJECT_H
#include "baseObject.h"
......
#include "orderObject.h"
#include "orderObject.h"
#include "preDefine.h"
#include <QJsonArray>
......
#ifndef ORDEROBJECT_H
#ifndef ORDEROBJECT_H
#define ORDEROBJECT_H
#include "productObject.h"
......
#include "productObject.h"
#include "productObject.h"
QString ProductObject::getPid() const
{
......
#ifndef PRODUCTOBJECT_H
#ifndef PRODUCTOBJECT_H
#define PRODUCTOBJECT_H
#include "baseObject.h"
......
#include "billSocket.h"
#include "billSocket.h"
#include <QtNetwork/QNetworkReply>
#include "DTools/configManger.h"
......
#ifndef BILLSOCKET_H
#ifndef BILLSOCKET_H
#define BILLSOCKET_H
#include <QJsonObject>
......
#include "RejectForm.h"
#include "RejectForm.h"
#include "ui_RejectForm.h"
RejectForm::RejectForm(QWidget *parent) :
......
#ifndef REJECTFORM_H
#ifndef REJECTFORM_H
#define REJECTFORM_H
#include <QDialog>
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>RejectForm</class>
<widget class="QDialog" name="RejectForm">
......
#include "alertForm.h"
#include "alertForm.h"
#include "ui_alertForm.h"
AlertForm::AlertForm(QWidget *parent) :
......
#ifndef ALERTFORM_H
#ifndef ALERTFORM_H
#define ALERTFORM_H
// 通知窗口
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AlertForm</class>
<widget class="QDialog" name="AlertForm">
......
#ifndef DETAILFORM_H
#ifndef DETAILFORM_H
#define DETAILFORM_H
#include <QDialog>
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DetailForm</class>
<widget class="QDialog" name="DetailForm">
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FloatForm</class>
<widget class="QDialog" name="FloatForm">
......
#include "fmp_takeout_p.h"
#include "fmp_takeout_p.h"
#include "fmp_te_handlers.h"
FMPTakeout::FMPTakeout(ctkPluginContext *context)
: FMPTakeoutInterface(context),
......
......@@ -39,11 +39,6 @@ SOURCES +=fmp_takeout.cpp \
Model/orderObject.cpp \
Model/productObject.cpp \
Network/billSocket.cpp \
QsLog/QsLog.cpp \
QsLog/QsLogDest.cpp \
QsLog/QsLogDestConsole.cpp \
QsLog/QsLogDestFile.cpp \
QsLog/QsLogDestFunctor.cpp \
DTools/fmPlugin.cpp
......
#ifndef FMPTAKEOUTINTERFACE_H
#ifndef FMPTAKEOUTINTERFACE_H
#define FMPTAKEOUTINTERFACE_H
#include <fmp_plugin_i.h>
......
......@@ -65,6 +65,8 @@ int FMPTakeoutPrivate::Uninit()
void FMPTakeoutPrivate::InitTakeout()
{
Q_Q(FMPTakeout);
_settings=q->GetService<FMPSettingsInterface>(q->_ctx);
ConfigManger::GetInstance().InitConfigManger(_settings);
inittask=new FMPInitTask();
inittask->Init();
......
#ifndef FMP_TAKEOUT_P_H
#ifndef FMP_TAKEOUT_P_H
#define FMP_TAKEOUT_P_H
#include "fmp_takeout.h"
......
/*=============================================================================
/*=============================================================================
Library: CTK
......@@ -47,8 +47,6 @@ void FMPTakeoutPlugin::stop(ctkPluginContext* context)
delete _takeout_service;
_takeout_service = 0;
}
int a = 0;
}
#if (QT_VERSION < QT_VERSION_CHECK(5,0,0))
......
#ifndef FMP_EPAY_PLUGIN_P_H
#ifndef FMP_EPAY_PLUGIN_P_H
#define FMP_EPAY_PLUGIN_P_H
#include <ctkPluginActivator.h>
......
......@@ -6,6 +6,7 @@ FMPStartEventHandler::FMPStartEventHandler(ctkPluginContext *ctx, FMPTakeout *Ta
Takeout),
_ctx(ctx)
{
qDebug()<<"Plugin number"<<QString::number(ctx->getPlugin()->getPluginId());
FMPProps props;
props[ctkEventConstants::EVENT_TOPIC] = _topic;
_ctx->registerService<ctkEventHandler>(this, props);
......
#ifndef FMPTAKEOUTEVENTHANDLER_H
#ifndef FMPTAKEOUTEVENTHANDLER_H
#define FMPTAKEOUTEVENTHANDLER_H
#include <QObject>
......
......@@ -24,7 +24,7 @@ void FMPInitTask::LoadLogger()
Logger& logger = Logger::instance();
logger.setLoggingLevel(TraceLevel);
QDir().mkdir(logDir);
QString logPath = QString("%1/%2").arg(logDir).arg("log");
QString logPath = QString("%1/%2").arg(logDir).arg("takeout_log.txt");
DestinationPtr fileDst(DestinationFactory::MakeFileDestination(
logPath, EnableLogRotation, MaxSizeBytes(2*1024*1024), MaxOldLogCount(50)));
logger.addDestination(fileDst);
......@@ -34,7 +34,8 @@ void FMPInitTask::LoadLogger()
void FMPInitTask::LoadTheme(const QString &theme)
{
QString rccPath = QString("%1/skin/%2.rcc").arg(g_appDir).arg(theme);
QString rccPath = QString("%1/skin/%2.rcc").arg(g_appDir.replace("bins","rcc")).arg(theme);
qDebug()<<rccPath;
if(!QFile(rccPath).exists())
{
......
#include "mainForm.h"
#include "QsLog.h"
#include "mainForm.h"
#include "ui_mainForm.h"
#include "preDefine.h"
#include "Control/flowControl.h"
......
#ifndef MAINFORM_H
#ifndef MAINFORM_H
#define MAINFORM_H
#include <QDialog>
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainForm</class>
<widget class="QWidget" name="MainForm">
......
#include "padForm.h"
#include "padForm.h"
#include "ui_padForm.h"
PadForm::PadForm(QWidget *parent) :
......
#ifndef PADFORM_H
#ifndef PADFORM_H
#define PADFORM_H
#include <QDialog>
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PadForm</class>
<widget class="QDialog" name="PadForm">
......
#include "pickForm.h"
#include "pickForm.h"
#include "ui_pickForm.h"
#include "preDefine.h"
#include "Control/flowControl.h"
......
#ifndef PICKFORM_H
#ifndef PICKFORM_H
#define PICKFORM_H
#include <QDialog>
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PickForm</class>
<widget class="QDialog" name="PickForm">
......
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SettingForm</class>
<widget class="QDialog" name="SettingForm">
......
......@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD 1
#define VER_BUILD 2
//! Convert version numbers to string
#define _STR(S) #S
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment