Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_printer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
fmp_printer
Commits
e37e6d3a
Commit
e37e6d3a
authored
Aug 11, 2017
by
樊马硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印模块添加支持多台打印机打印
parent
4594503a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
fmp_printer_def.h
+1
-12
fmp_printer_p.cpp
+0
-0
fmp_printer_p.h
+5
-5
No files found.
fmp_printer_def.h
View file @
e37e6d3a
...
@@ -12,17 +12,6 @@
...
@@ -12,17 +12,6 @@
#define FMP_INIKEY_PRINTERNET "Printer/ip"
#define FMP_INIKEY_PRINTERNET "Printer/ip"
#define FMP_INIKEY_PRINTERLABEL "Printer/PrintLabel"
#define FMP_INIKEY_PRINTERLABEL "Printer/PrintLabel"
#define FMP_INIKEY_LOGDAYS "Printer/LogDays"
#define FMP_INIKEY_LOGDAYS "Printer/LogDays"
#define FMP_INIKEY_PRINTERTIME "Printer/printerTime"
#define FMP_INIKEY_PRINTERNAME_TIME "Printertime/Name"
#define FMP_INIKEY_PRINTERTYPE_TIME "Printertime/Mode"
#define FMP_INIKEY_PRINTERTYPET_TIME "Printertime/PrintType"
#define FMP_INIKEY_PRINTERSIZE_TIME "Printertime/PaperWidth"
#define FMP_INIKEY_PRINTERLEVLEL_TIME "Printertime/Levlel"
#define FMP_INIKEY_PRINTERTYPE2_TIME "Printertime/Type"
#define FMP_INIKEY_PRINTERUSB_TIME "Printertime/usb"
#define FMP_INIKEY_PRINTERPARALL_TIME "Printertime/parallel"
#define FMP_INIKEY_PRINTERNET_TIME "Printertime/ip"
#define FMP_INIKEY_PRINTERLABEL_TIME "Printertime/PrintLabel"
#define FMP_INIKEY_LOGDAYS_TIME "Printertime/LogDays"
#endif // FMP_PRINTER_DEF_H
#endif // FMP_PRINTER_DEF_H
fmp_printer_p.cpp
View file @
e37e6d3a
This diff is collapsed.
Click to expand it.
fmp_printer_p.h
View file @
e37e6d3a
...
@@ -12,13 +12,13 @@ typedef struct
...
@@ -12,13 +12,13 @@ typedef struct
QString
m_parall
;
//并口名字
QString
m_parall
;
//并口名字
QString
m_Usb
;
// usb的名字
QString
m_Usb
;
// usb的名字
QString
m_level
;
//日志的级别设定 默认
QString
m_level
;
//日志的级别设定 默认
QString
m_Ip
;
QString
m_Ip
[
8
]
;
QString
m_printerLabel
;
QString
m_printerLabel
;
int
m_PrintType
;
//打印的某种样式
int
m_PrintType
;
//打印的某种样式
int
m_PrintSize
;
//打印的纸张设定
int
m_PrintSize
;
//打印的纸张设定
int
type
;
int
type
[
8
];
//打印端口类型
int
m_nDays
;
//删除日志的天数
int
m_nDays
;
//删除日志的天数
int
m_printerTime
;
//几台设备打印
}
PrintClass
,
*
pPrintclass
;
}
PrintClass
,
*
pPrintclass
;
class
FMPPrinterPrivate
:
public
QObject
class
FMPPrinterPrivate
:
public
QObject
...
@@ -34,11 +34,11 @@ private:
...
@@ -34,11 +34,11 @@ private:
bool
_DoPrint
(
QString
data
,
QString
strLabel
);
bool
_DoPrint
(
QString
data
,
QString
strLabel
);
QString
_GetPrintName
();
QString
_GetPrintName
();
bool
GetInfo
(
QString
&
printername
,
QString
data
);
bool
GetInfo
(
QString
&
printername
,
QString
data
);
QString
SendIniData
();
QString
SendIniData
(
int
times
);
QString
SendIniDataTime
();
QString
SendIniDataTime
();
public
:
public
:
FMPPrinter
*
q_ptr
;
FMPPrinter
*
q_ptr
;
PrintClass
m_print
,
m_print_time
;
PrintClass
m_print
;
private
:
private
:
FMPSettingsInterface
*
settings
;
FMPSettingsInterface
*
settings
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment