Commit fe08ef27 by Carwyn

1. 设置 Key 修改; 2. ScrollBar 平滑滚动; 3. 添加版权显示

parent d007d311
#ifndef FMP_SETTINGS_DEF_H
#define FMP_SETTINGS_DEF_H
//! 插件全局属性
#define FMP_PROPKEY_PLUGINPATH "FMPPath"
#define FMP_PROPKEY_CFG "FMPConfig"
......@@ -15,26 +16,6 @@
#define FMP_INIKEY_PLUGINPATH "Plugin/Path"
#define FMP_INIKEY_ANIMATION "Plugin/Animation"
#define FMP_INIKEY_EPAYTIMEOUT "Epay/Timeout"
#define FMP_INIKEY_EPAYURL "Epay/URL"
#define FMP_INIKEY_LOGPATH "Log/Path"
#define FMP_INIKEY_LOGSIZE "Log/Size"
#define FMP_INIKEY_LOGLEVEL "Log/Level"
#define FMP_INIKEY_LOGINSERVER "Home/Server"
#define FMP_INIKEY_LOGINPWD "Home/Pwd"
#define FMP_INIKEY_LOGINSTOREID "Home/StoreId"
#define FMP_INIKEY_LOGINPOSID "Home/PosId"
#define FMP_INIKEY_LOGINBUSINESS "Home/Business"
#define FMP_INIKEY_LOGINCASHIER "Home/CashierId"
#define FMP_INIKEY_LOGINPARTNERID "Home/PartnerId"
#define FMP_INIKEY_HOMEPOSITION "Home/Position"
#define FMP_INIKEY_HOMEAUTOLOGIN "Home/Autologin"
#define FMP_INIKEY_HOMEACCOUNT "Home/Account"
#define FMP_INIKEY_REMEMBERPWD "Home/RememberPwd"
#define FMP_INIKEY_VIPSERVER "Vip/Server"
......@@ -43,9 +24,5 @@
#define FMP_APPNAME "非码POS"
#define FMP_INIKEY_PRINTERNAME "Printer/Printname"
#define FMP_INIKEY_PRINTERSIZE "Printer/Printtype"
#define FMP_INIKEY_PRINTERSIZE "Printer/Printsize"
#endif // FMP_SETTINGS_DEF_H
#ifndef FMP_SETTINGS_I_H
#ifndef FMP_SETTINGS_I_H
#define FMP_SETTINGS_I_H
#include <QVariant>
#include <fmp_plugin_i.h>
#include "fmp_settings_def.h"
/**
......
#include "window.h"
#include "ui_window.h"
#include <QLineEdit>
#include <QLineEdit>
#include <QCheckBox>
#include <QComboBox>
#include "fmp_settings_def.h"
#include <qDebug>
#include <QScrollBar>
#include <QPropertyAnimation>
#include <fmp_home_i.h>
#include <fmp_logger_i.h>
#include <fmp_epay_i.h>
#include <fmp_takeout_i.h>
#include <fmp_printer_i.h>
#include "window.h"
#include "ui_window.h"
FMPSettingsWindow::FMPSettingsWindow(QWidget *parent) :
FMPWindow(parent),
ui(new Ui::FMPSettingsWindow)
......@@ -23,45 +34,47 @@ void FMPSettingsWindow::setsettings(QSettings* set)
{
m_set=set;
ui->edt_posid->setText(m_set->value(FMP_INIKEY_LOGINPOSID).toString());
ui->edt_pwd->setText(m_set->value(FMP_INIKEY_LOGINPWD).toString());
ui->edt_pwd_2->setText(m_set->value(FMP_INIKEY_LOGINPWD).toString());
// ui->edt_pwd->setText(m_set->value(FMP_INIKEY_LOGINPWD).toString());
// ui->edt_pwd_2->setText(m_set->value(FMP_INIKEY_LOGINPWD).toString());
ui->edt_partnerid->setText(m_set->value(FMP_INIKEY_LOGINPARTNERID).toString());
ui->edt_account->setText(m_set->value(FMP_INIKEY_HOMEACCOUNT).toString());
ui->edt_pluginpath->setText(m_set->value(FMP_INIKEY_PLUGINPATH).toString());
// ui->edt_account->setText(m_set->value(FMP_INIKEY_HOMEACCOUNT).toString());
// ui->edt_pluginpath->setText(m_set->value(FMP_INIKEY_PLUGINPATH).toString());
ui->edt_logpath->setText(m_set->value(FMP_INIKEY_LOGPATH).toString());
ui->edt_loginsvr->setText(m_set->value(FMP_INIKEY_LOGINSERVER).toString());
// ui->edt_loginsvr->setText(m_set->value(FMP_INIKEY_LOGINSERVER).toString());
ui->edt_storeid->setText(m_set->value(FMP_INIKEY_LOGINSTOREID).toString());
ui->edt_logsize->setText(m_set->value(FMP_INIKEY_LOGSIZE).toString());
ui->switch_animation->setChecked(m_set->value(FMP_INIKEY_ANIMATION).toBool());
ui->switch_autologin->setChecked(m_set->value(FMP_INIKEY_HOMEAUTOLOGIN).toBool());
// ui->switch_animation->setChecked(m_set->value(FMP_INIKEY_ANIMATION).toBool());
// ui->switch_autologin->setChecked(m_set->value(FMP_INIKEY_HOMEAUTOLOGIN).toBool());
ui->select_loglevel->setCurrentIndex(m_set->value(FMP_INIKEY_LOGLEVEL).toInt());
ui->select_printer->setCurrentText(m_set->value(FMP_INIKEY_PRINTERNAME).toString());
ui->select_printersize->setCurrentText(m_set->value(FMP_INIKEY_PRINTERSIZE).toString());
ui->check_autoconfirm->setChecked(m_set->value(fmp_INIKEY_TAKEOUTAUTO).toBool());
ui->check_customer->setCheckable(m_set->value(FMP_INIKEY_TAKEOUTCUSTOMER).toBool());
ui->check_deliver->setCheckable(m_set->value(fmp_INIKEY_TAKEOUTDELIVER).toBool());
ui->check_store->setCheckable(m_set->value(FMP_INIKEY_TAKEOUTSTORE).toBool());
ui->check_autoconfirm->setChecked(m_set->value(FMP_INIKEY_TAKEOUTAUTO).toBool());
// ui->check_customer->setCheckable(m_set->value(FMP_INIKEY_TAKEOUTCUSTOMER).toBool());
// ui->check_deliver->setCheckable(m_set->value(FMP_INIKEY_TAKEOUTDELIVER).toBool());
// ui->check_store->setCheckable(m_set->value(FMP_INIKEY_TAKEOUTSTORE).toBool());
ui->edt_orderurl->setText(m_set->value(FMP_INIKEY_TAKEOUTSERVER).toString());
ui->edt_entryport->setText(m_set->value(fmp_INIKEY_TAKEOUTENTRYPORT).toString());
ui->edt_entryurl->setText(m_set->value(FMP_INIKEY_TAKEOUTENTRYSERVER).toString());
ui->edt_storeid_2->setText(m_set->value(FMP_INIKEY_TAKEOUTSTOREID).toString());
// ui->edt_entryport->setText(m_set->value(FMP_INIKEY_TAKEOUTENTRYPORT).toString());
// ui->edt_entryurl->setText(m_set->value(FMP_INIKEY_TAKEOUTENTRYSERVER).toString());
// ui->edt_storeid_2->setText(m_set->value(FMP_INIKEY_TAKEOUTSTOREID).toString());
ui->edt_cashierid->setText(m_set->value(FMP_INIKEY_LOGINCASHIER).toString());
ui->edt_epayurl->setText(m_set->value(FMP_INIKEY_EPAYURL).toString());
ui->edt_epaytimeout->setText(m_set->value(FMP_INIKEY_EPAYTIMEOUT).toString());
/*--------------------------------------------------------------*/
ui->edt_posid->home(false);
ui->edt_pwd->home(false);
ui->edt_pwd_2->home(false);
// ui->edt_pwd->home(false);
// ui->edt_pwd_2->home(false);
ui->edt_partnerid->home(false);
ui->edt_account->home(false);
ui->edt_pluginpath->home(false);
// ui->edt_account->home(false);
// ui->edt_pluginpath->home(false);
ui->edt_logpath->home(false);
ui->edt_loginsvr->home(false);
// ui->edt_loginsvr->home(false);
ui->edt_storeid->home(false);
ui->edt_logsize->home(false);
ui->edt_orderurl->home(false);
ui->edt_entryport->home(false);
ui->edt_entryurl->home(false);
ui->edt_storeid_2->home(false);
// ui->edt_entryport->home(false);
// ui->edt_entryurl->home(false);
// ui->edt_storeid_2->home(false);
ui->edt_cashierid->home(false);
}
......@@ -73,11 +86,11 @@ QWidget *FMPSettingsWindow::getwidget(QString widgetname)
}
if(!widgetname.compare("pay"))
{
return ui->pay;
return ui->pay_group;
}
if(!widgetname.compare("takeout"))
{
return ui->takeout;
return ui->takeout_group;
}
}
......@@ -133,5 +146,10 @@ void FMPSettingsWindow::on_btn_showwidget_clicked()
{
QPushButton* btn=(QPushButton*)sender();
QWidget *presentwidget=getwidget(btn->property("widget").toString());
ui->scrollArea->verticalScrollBar()->setValue(presentwidget->y());
QScrollBar * scroll = ui->scrollArea->verticalScrollBar();
QPropertyAnimation *animation = new QPropertyAnimation(scroll, "value");
animation->setStartValue(scroll->value());
animation->setEndValue(scroll->maximum() * 1.0 / ui->scrollAreaWidgetContents->height() * presentwidget->y());
animation->start(QPropertyAnimation::DeleteWhenStopped);
}
......@@ -6,10 +6,22 @@
<rect>
<x>0</x>
<y>0</y>
<width>783</width>
<height>646</height>
<width>786</width>
<height>624</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>786</width>
<height>624</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>786</width>
<height>624</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
......@@ -17,12 +29,61 @@
<string>非码设置</string>
</property>
<property name="styleSheet">
<string notr="true">#Settings
<string notr="true">#FMPSettingsWindow
{
background-color: rgb(255, 255, 255);
border: 1 solid silver;
}
#label_copyright
{
font: normal 16px &quot;微软雅黑&quot;;
color: rgb(200,200,200);
}
/**************** 滚动条 ****************/
#scrollArea
{
background: white;
border: none;
padding-right: 2px;
}
#scrollArea
{
background-color: rgb(255, 255, 255);
}
#scrollAreaWidgetContents
{
background-color: rgb(255, 255, 255);
}
QScrollBar:vertical
{
background: transparent;
width: 10px;
margin: 4px 0 4px 0;
}
QScrollBar::handle:vertical
{
border-radius: 5px;
background: rgb(93,144,237);
min-height: 20px;
}
QScrollBar::add-line:vertical
{
border: none;
}
QScrollBar::sub-line:vertical
{
border: none;
}
QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical
{
background: transparent;
}
/**************** 标题栏 ****************/
#caption
{
min-height: 55px; max-height: 55px;
......@@ -120,6 +181,7 @@ QLineEdit:disabled
{
border: none;
color: rgb(60, 60, 60);
background: rgb(233, 239, 251);
}
QCheckBox
......@@ -186,16 +248,16 @@ QComboBox::down-arrow
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
<number>1</number>
</property>
<property name="topMargin">
<number>0</number>
<number>1</number>
</property>
<property name="rightMargin">
<number>0</number>
<number>1</number>
</property>
<property name="bottomMargin">
<number>0</number>
<number>1</number>
</property>
<item>
<widget class="QWidget" name="caption" native="true">
......@@ -374,31 +436,6 @@ QComboBox::down-arrow
</widget>
</item>
<item>
<widget class="QPushButton" name="tab_vip">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>会员</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoExclusive">
<bool>true</bool>
</property>
<property name="widget" stdset="0">
<string>vip</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
......@@ -416,9 +453,9 @@ QComboBox::down-arrow
</item>
<item>
<widget class="QWidget" name="content" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>0</number>
<number>6</number>
</property>
<property name="leftMargin">
<number>0</number>
......@@ -430,7 +467,7 @@ QComboBox::down-arrow
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
<number>6</number>
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
......@@ -447,15 +484,21 @@ QComboBox::down-arrow
<property name="geometry">
<rect>
<x>0</x>
<y>-666</y>
<width>625</width>
<height>1253</height>
<y>-259</y>
<width>630</width>
<height>790</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>1253</height>
<height>790</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>790</height>
</size>
</property>
<widget class="QWidget" name="general" native="true">
......@@ -464,14 +507,14 @@ QComboBox::down-arrow
<x>0</x>
<y>0</y>
<width>642</width>
<height>671</height>
<height>781</height>
</rect>
</property>
<widget class="QGroupBox" name="log_group">
<property name="geometry">
<rect>
<x>30</x>
<y>380</y>
<y>180</y>
<width>581</width>
<height>141</height>
</rect>
......@@ -483,9 +526,9 @@ QComboBox::down-arrow
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<y>80</y>
<width>91</width>
<height>28</height>
<height>52</height>
</rect>
</property>
<property name="text">
......@@ -559,9 +602,9 @@ QComboBox::down-arrow
<property name="geometry">
<rect>
<x>250</x>
<y>90</y>
<y>80</y>
<width>81</width>
<height>28</height>
<height>52</height>
</rect>
</property>
<property name="text">
......@@ -572,9 +615,9 @@ QComboBox::down-arrow
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<y>30</y>
<width>91</width>
<height>28</height>
<height>52</height>
</rect>
</property>
<property name="text">
......@@ -585,9 +628,9 @@ QComboBox::down-arrow
<property name="geometry">
<rect>
<x>450</x>
<y>90</y>
<y>80</y>
<width>31</width>
<height>28</height>
<height>52</height>
</rect>
</property>
<property name="text">
......@@ -630,123 +673,123 @@ QComboBox::down-arrow
</property>
</widget>
</widget>
<widget class="QGroupBox" name="plugin_group">
<widget class="QGroupBox" name="user_group">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>30</x>
<y>250</y>
<y>10</y>
<width>581</width>
<height>121</height>
<height>151</height>
</rect>
</property>
<property name="title">
<string>插件</string>
<string>用户</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="flat">
<bool>false</bool>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<widget class="QCheckBox" name="switch_animation">
<widget class="QLineEdit" name="edt_storeid">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<x>120</x>
<y>90</y>
<width>91</width>
<height>28</height>
<width>161</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string>启用动画</string>
</property>
<property name="tristate">
<bool>false</bool>
<string/>
</property>
<property name="key" stdset="0">
<string>Plugin/Animation</string>
<string>Home/StoreId</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_pluginpath">
<widget class="QLineEdit" name="edt_posid">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>120</x>
<x>400</x>
<y>40</y>
<width>321</width>
<width>161</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="readOnly">
<bool>true</bool>
<property name="text">
<string/>
</property>
<property name="key" stdset="0">
<string>Plugin/Path</string>
<string>Home/Posid</string>
</property>
</widget>
<widget class="QLabel" name="label_pluginpath">
<widget class="QLabel" name="label_posid">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<x>300</x>
<y>30</y>
<width>91</width>
<height>28</height>
<height>52</height>
</rect>
</property>
<property name="text">
<string>插件路径</string>
<string>机器编号</string>
</property>
</widget>
<widget class="QPushButton" name="btn_pluginpath">
<widget class="QLabel" name="label_storeid">
<property name="geometry">
<rect>
<x>460</x>
<y>40</y>
<width>88</width>
<height>30</height>
<x>20</x>
<y>80</y>
<width>81</width>
<height>52</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
<property name="text">
<string>门店编号:</string>
</property>
</widget>
<widget class="QLabel" name="label_partnerid">
<property name="geometry">
<rect>
<x>21</x>
<y>30</y>
<width>81</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>浏览</string>
<string>商户号:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="user_group">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>30</x>
<y>10</y>
<width>581</width>
<height>231</height>
</rect>
</property>
<property name="title">
<string>用户</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="flat">
<bool>false</bool>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<widget class="QLineEdit" name="edt_storeid">
<widget class="QLineEdit" name="edt_partnerid">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>400</x>
<x>120</x>
<y>40</y>
<width>161</width>
<height>32</height>
......@@ -756,13 +799,19 @@ QComboBox::down-arrow
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string/>
<string>1371</string>
</property>
<property name="echoMode">
<enum>QLineEdit::Normal</enum>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="key" stdset="0">
<string>Home/StoreId</string>
<string>Home/PartnerId</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_posid">
<widget class="QLineEdit" name="edt_cashierid">
<property name="enabled">
<bool>true</bool>
</property>
......@@ -781,318 +830,117 @@ QComboBox::down-arrow
<string/>
</property>
<property name="key" stdset="0">
<string>Home/Posid</string>
<string>Home/Cashierid</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_loginsvr">
<widget class="QLabel" name="label_cashier">
<property name="geometry">
<rect>
<x>120</x>
<y>190</y>
<width>321</width>
<height>32</height>
<x>300</x>
<y>80</y>
<width>91</width>
<height>52</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string/>
<string>收银员编号:</string>
</property>
<property name="key" stdset="0">
<string>Home/Server</string>
</widget>
</widget>
<widget class="QGroupBox" name="printer_group">
<property name="geometry">
<rect>
<x>30</x>
<y>340</y>
<width>581</width>
<height>141</height>
</rect>
</property>
<property name="title">
<string>打印机</string>
</property>
<widget class="QLabel" name="label_printersize">
<property name="geometry">
<rect>
<x>20</x>
<y>80</y>
<width>91</width>
<height>52</height>
</rect>
</property>
<property name="text">
<string>打印机尺寸:</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_pwd">
<widget class="QComboBox" name="select_printersize">
<property name="geometry">
<rect>
<x>120</x>
<y>90</y>
<width>161</width>
<width>111</width>
<height>32</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
<property name="key" stdset="0">
<string>Home/Pwd</string>
<string>Printer/PaperWidth</string>
</property>
<item>
<property name="text">
<string>80</string>
</property>
</item>
<item>
<property name="text">
<string>58</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label_loginsvr">
<widget class="QLabel" name="label_unit_2">
<property name="geometry">
<rect>
<x>20</x>
<y>190</y>
<width>91</width>
<height>28</height>
<x>240</x>
<y>80</y>
<width>31</width>
<height>52</height>
</rect>
</property>
<property name="text">
<string>登录服务器:</string>
<string>CM</string>
</property>
</widget>
<widget class="QLabel" name="label_account">
<widget class="QPushButton" name="btn_testprint">
<property name="geometry">
<rect>
<x>20</x>
<x>460</x>
<y>40</y>
<width>72</width>
<height>28</height>
<width>88</width>
<height>30</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>账 号:</string>
<string>打印测试</string>
</property>
</widget>
<widget class="QCheckBox" name="switch_autologin">
<widget class="QLabel" name="label_printer">
<property name="geometry">
<rect>
<x>460</x>
<y>190</y>
<x>20</x>
<y>30</y>
<width>91</width>
<height>28</height>
<height>52</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string>自动登录</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="key" stdset="0">
<string>Home/Autologin</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_account">
<property name="geometry">
<rect>
<x>120</x>
<y>40</y>
<width>161</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string/>
</property>
<property name="key" stdset="0">
<string>Home/Account</string>
</property>
</widget>
<widget class="QLabel" name="label_pwd">
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<width>72</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>密 码:</string>
</property>
</widget>
<widget class="QLabel" name="label_posid">
<property name="geometry">
<rect>
<x>300</x>
<y>90</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>机器编号:</string>
</property>
</widget>
<widget class="QLabel" name="label_storeid">
<property name="geometry">
<rect>
<x>300</x>
<y>40</y>
<width>81</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>门店编号:</string>
</property>
</widget>
<widget class="QLabel" name="label_partnerid">
<property name="geometry">
<rect>
<x>20</x>
<y>140</y>
<width>72</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>商户号:</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_partnerid">
<property name="geometry">
<rect>
<x>120</x>
<y>140</y>
<width>161</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="echoMode">
<enum>QLineEdit::Normal</enum>
</property>
<property name="key" stdset="0">
<string>Home/PartnerId</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_cashierid">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>400</x>
<y>140</y>
<width>161</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string/>
</property>
<property name="key" stdset="0">
<string>Home/Cashierid</string>
</property>
</widget>
<widget class="QLabel" name="label_cashier">
<property name="geometry">
<rect>
<x>300</x>
<y>140</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>收银员编号:</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="printer_group">
<property name="geometry">
<rect>
<x>30</x>
<y>530</y>
<width>581</width>
<height>141</height>
</rect>
</property>
<property name="title">
<string>打印机</string>
</property>
<widget class="QLabel" name="label_printersize">
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>打印机尺寸:</string>
</property>
</widget>
<widget class="QComboBox" name="select_printersize">
<property name="geometry">
<rect>
<x>120</x>
<y>90</y>
<width>111</width>
<height>32</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="key" stdset="0">
<string>Printer/Printsize</string>
</property>
<item>
<property name="text">
<string>80</string>
</property>
</item>
<item>
<property name="text">
<string>58</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label_unit_2">
<property name="geometry">
<rect>
<x>240</x>
<y>90</y>
<width>31</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>CM</string>
</property>
</widget>
<widget class="QPushButton" name="btn_testprint">
<property name="geometry">
<rect>
<x>460</x>
<y>40</y>
<width>88</width>
<height>30</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>打印测试</string>
</property>
</widget>
<widget class="QLabel" name="label_printer">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>打印机:</string>
<string>打印机:</string>
</property>
</widget>
<widget class="QComboBox" name="select_printer">
......@@ -1111,7 +959,7 @@ QComboBox::down-arrow
<enum>Qt::ClickFocus</enum>
</property>
<property name="key" stdset="0">
<string>Printer/Printame</string>
<string>Printer/Name</string>
</property>
<item>
<property name="text">
......@@ -1120,279 +968,27 @@ QComboBox::down-arrow
</item>
</widget>
</widget>
<zorder>user_group</zorder>
<zorder>log_group</zorder>
<zorder>plugin_group</zorder>
<zorder>printer_group</zorder>
</widget>
<widget class="QWidget" name="pay" native="true">
<property name="geometry">
<rect>
<x>0</x>
<y>671</y>
<width>642</width>
<height>151</height>
</rect>
</property>
<widget class="QGroupBox" name="pay_group">
<property name="geometry">
<rect>
<x>29</x>
<y>10</y>
<width>581</width>
<height>141</height>
</rect>
</property>
<property name="title">
<string>支付</string>
</property>
<widget class="QLineEdit" name="edt_epaytimeout">
<property name="geometry">
<rect>
<x>120</x>
<y>40</y>
<width>111</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string/>
</property>
<property name="key" stdset="0">
<string>Epay/Timeout</string>
</property>
</widget>
<widget class="QLabel" name="label_epaytimeout">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>超时(秒):</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_epayurl">
<property name="geometry">
<rect>
<x>120</x>
<y>90</y>
<width>321</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string/>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="key" stdset="0">
<string>Epay/URL</string>
</property>
</widget>
<widget class="QLabel" name="label_epayurl">
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>支付服务器:</string>
</property>
</widget>
</widget>
</widget>
<widget class="QWidget" name="takeout" native="true">
<property name="geometry">
<rect>
<x>0</x>
<y>822</y>
<width>642</width>
<height>431</height>
</rect>
</property>
<widget class="QGroupBox" name="takeoutusr_box">
<widget class="QGroupBox" name="takeout_group">
<property name="geometry">
<rect>
<x>30</x>
<y>10</y>
<y>500</y>
<width>581</width>
<height>141</height>
<height>91</height>
</rect>
</property>
<property name="title">
<string>外卖用户</string>
<string>外卖</string>
</property>
<widget class="QLineEdit" name="edt_orderurl">
<property name="geometry">
<rect>
<x>120</x>
<y>40</y>
<width>321</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="readOnly">
<property name="enabled">
<bool>true</bool>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/url</string>
</property>
</widget>
<widget class="QLabel" name="label_orderurl">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>订单服务器:</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_storeid_2">
<property name="geometry">
<rect>
<x>370</x>
<y>90</y>
<width>191</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/StoreId</string>
</property>
</widget>
<widget class="QLabel" name="label_storeid_2">
<property name="geometry">
<rect>
<x>270</x>
<y>90</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>门店号:</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_pwd_2">
<property name="geometry">
<rect>
<x>120</x>
<y>90</y>
<width>113</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/Passwd</string>
</property>
</widget>
<widget class="QLabel" name="label_pwd_2">
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>登录密码:</string>
</property>
</widget>
<widget class="QCheckBox" name="check_autoconfirm">
<property name="geometry">
<rect>
<x>470</x>
<y>40</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string>自动接单</string>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/Autoconfirm</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>30</x>
<y>160</y>
<width>581</width>
<height>81</height>
</rect>
</property>
<property name="title">
<string>入账</string>
</property>
<widget class="QLineEdit" name="edt_entryport">
<property name="geometry">
<rect>
<x>120</x>
<y>40</y>
<width>113</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/Entryport</string>
</property>
</widget>
<widget class="QLabel" name="label_entryport">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>入账端口:</string>
</property>
</widget>
<widget class="QLineEdit" name="edt_entryurl">
<property name="geometry">
<rect>
<x>370</x>
<y>40</y>
<width>191</width>
<width>321</width>
<height>32</height>
</rect>
</property>
......@@ -1403,93 +999,26 @@ QComboBox::down-arrow
<bool>true</bool>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/Entryurl</string>
</property>
</widget>
<widget class="QLabel" name="label_entryurl">
<property name="geometry">
<rect>
<x>270</x>
<y>40</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>入账服务器:</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="receipt_group">
<property name="geometry">
<rect>
<x>30</x>
<y>250</y>
<width>581</width>
<height>81</height>
</rect>
</property>
<property name="title">
<string>小票</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<widget class="QLabel" name="label_print">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>小票打印:</string>
</property>
</widget>
<widget class="QCheckBox" name="check_customer">
<property name="geometry">
<rect>
<x>120</x>
<y>40</y>
<width>91</width>
<height>28</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string>顾客留存</string>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/Customer</string>
<string>Takeout/Server</string>
</property>
</widget>
<widget class="QCheckBox" name="check_deliver">
<widget class="QLabel" name="label_orderurl">
<property name="geometry">
<rect>
<x>250</x>
<y>40</y>
<x>20</x>
<y>30</y>
<width>91</width>
<height>28</height>
<height>52</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string>骑士留存</string>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/Deliver</string>
<string>订单服务器:</string>
</property>
</widget>
<widget class="QCheckBox" name="check_store">
<widget class="QCheckBox" name="check_autoconfirm">
<property name="geometry">
<rect>
<x>380</x>
<x>470</x>
<y>40</y>
<width>91</width>
<height>28</height>
......@@ -1499,124 +1028,125 @@ QComboBox::down-arrow
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string>商家留存</string>
<string>自动接单</string>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/Store</string>
<string>Takeout/Autoconfirm</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_4">
<widget class="QGroupBox" name="pay_group">
<property name="geometry">
<rect>
<x>30</x>
<y>340</y>
<y>610</y>
<width>581</width>
<height>81</height>
<height>141</height>
</rect>
</property>
<property name="title">
<string>声音提醒</string>
<string>支付</string>
</property>
<widget class="QPushButton" name="btn_testsound">
<widget class="QLineEdit" name="edt_epaytimeout">
<property name="geometry">
<rect>
<x>420</x>
<y>40</y>
<width>88</width>
<height>30</height>
<x>120</x>
<y>100</y>
<width>111</width>
<height>32</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string>声音测试</string>
<string/>
</property>
<property name="key" stdset="0">
<string>Pay/Timeout</string>
</property>
</widget>
<widget class="QLabel" name="label_remind">
<widget class="QLabel" name="label_epaytimeout">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>111</width>
<height>28</height>
<y>90</y>
<width>91</width>
<height>52</height>
</rect>
</property>
<property name="text">
<string>订单提醒时长</string>
<string>支付超时</string>
</property>
</widget>
<widget class="QComboBox" name="combo_remind">
<widget class="QLineEdit" name="edt_epayurl">
<property name="geometry">
<rect>
<x>130</x>
<x>120</x>
<y>40</y>
<width>201</width>
<width>321</width>
<height>32</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="text">
<string/>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="key" stdset="0">
<string>FMTAKEOOUT/Remind</string>
<string>Pay/Server</string>
</property>
<item>
<property name="text">
<string>0.5</string>
</property>
</item>
<item>
<property name="text">
<string>1</string>
</property>
</item>
<item>
<property name="text">
<string>2</string>
</property>
</item>
<item>
<property name="text">
<string>3</string>
</property>
</item>
<item>
<property name="text">
<string>4</string>
</property>
</item>
<item>
<property name="text">
<string>5</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label_remind_2">
<widget class="QLabel" name="label_epayurl">
<property name="geometry">
<rect>
<x>340</x>
<y>40</y>
<width>51</width>
<height>28</height>
<x>20</x>
<y>30</y>
<width>91</width>
<height>52</height>
</rect>
</property>
<property name="text">
<string>支付服务器:</string>
</property>
</widget>
<widget class="QLabel" name="label_unit_3">
<property name="geometry">
<rect>
<x>240</x>
<y>90</y>
<width>31</width>
<height>52</height>
</rect>
</property>
<property name="text">
<string>分钟</string>
<string></string>
</property>
</widget>
</widget>
<zorder>user_group</zorder>
<zorder>log_group</zorder>
<zorder>printer_group</zorder>
<zorder>takeout_group</zorder>
<zorder>pay_group</zorder>
</widget>
<zorder>pay</zorder>
<zorder>takeout</zorder>
<zorder>general</zorder>
</widget>
</widget>
</item>
<item>
<widget class="QLabel" name="label_copyright">
<property name="text">
<string>由 非码© 提供技术支持</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
......@@ -1625,7 +1155,6 @@ QComboBox::down-arrow
</layout>
</widget>
<tabstops>
<tabstop>tab_vip</tabstop>
<tabstop>tab_takeout</tabstop>
<tabstop>tab_general</tabstop>
<tabstop>btn_close</tabstop>
......@@ -1681,38 +1210,6 @@ QComboBox::down-arrow
</hints>
</connection>
<connection>
<sender>edt_account</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingeditingFinished()</slot>
<hints>
<hint type="sourcelabel">
<x>446</x>
<y>107</y>
</hint>
<hint type="destinationlabel">
<x>39</x>
<y>607</y>
</hint>
</hints>
</connection>
<connection>
<sender>switch_autologin</sender>
<signal>toggled(bool)</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingcheck_clicked(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>722</x>
<y>207</y>
</hint>
<hint type="destinationlabel">
<x>72</x>
<y>609</y>
</hint>
</hints>
</connection>
<connection>
<sender>select_loglevel</sender>
<signal>currentIndexChanged(int)</signal>
<receiver>FMPSettingsWindow</receiver>
......@@ -1745,54 +1242,6 @@ QComboBox::down-arrow
</hints>
</connection>
<connection>
<sender>edt_entryport</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingeditingFinished()</slot>
<hints>
<hint type="sourcelabel">
<x>348</x>
<y>952</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>312</y>
</hint>
</hints>
</connection>
<connection>
<sender>edt_entryurl</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingeditingFinished()</slot>
<hints>
<hint type="sourcelabel">
<x>628</x>
<y>952</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>312</y>
</hint>
</hints>
</connection>
<connection>
<sender>edt_loginsvr</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingeditingFinished()</slot>
<hints>
<hint type="sourcelabel">
<x>452</x>
<y>222</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>312</y>
</hint>
</hints>
</connection>
<connection>
<sender>edt_logsize</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
......@@ -1841,22 +1290,6 @@ QComboBox::down-arrow
</hints>
</connection>
<connection>
<sender>edt_pwd</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingeditingFinished()</slot>
<hints>
<hint type="sourcelabel">
<x>387</x>
<y>172</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>312</y>
</hint>
</hints>
</connection>
<connection>
<sender>edt_storeid</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
......@@ -1873,38 +1306,6 @@ QComboBox::down-arrow
</hints>
</connection>
<connection>
<sender>edt_pwd_2</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingeditingFinished()</slot>
<hints>
<hint type="sourcelabel">
<x>348</x>
<y>802</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>312</y>
</hint>
</hints>
</connection>
<connection>
<sender>edt_storeid_2</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingeditingFinished()</slot>
<hints>
<hint type="sourcelabel">
<x>618</x>
<y>752</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>312</y>
</hint>
</hints>
</connection>
<connection>
<sender>select_printersize</sender>
<signal>currentTextChanged(QString)</signal>
<receiver>FMPSettingsWindow</receiver>
......@@ -1921,22 +1322,6 @@ QComboBox::down-arrow
</hints>
</connection>
<connection>
<sender>switch_animation</sender>
<signal>toggled(bool)</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingcheck_clicked(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>237</x>
<y>370</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>312</y>
</hint>
</hints>
</connection>
<connection>
<sender>edt_partnerid</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
......@@ -1985,54 +1370,6 @@ QComboBox::down-arrow
</hints>
</connection>
<connection>
<sender>check_customer</sender>
<signal>toggled(bool)</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingcheck_clicked(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>337</x>
<y>1030</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>322</y>
</hint>
</hints>
</connection>
<connection>
<sender>check_deliver</sender>
<signal>toggled(bool)</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingcheck_clicked(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>467</x>
<y>1030</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>322</y>
</hint>
</hints>
</connection>
<connection>
<sender>check_store</sender>
<signal>toggled(bool)</signal>
<receiver>FMPSettingsWindow</receiver>
<slot>onSettingcheck_clicked(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>597</x>
<y>1030</y>
</hint>
<hint type="destinationlabel">
<x>391</x>
<y>322</y>
</hint>
</hints>
</connection>
<connection>
<sender>edt_partnerid</sender>
<signal>editingFinished()</signal>
<receiver>FMPSettingsWindow</receiver>
......
......@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD 6
#define VER_BUILD 10
//! 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