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
05c27906
Commit
05c27906
authored
May 04, 2017
by
Carwyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 配置文件 Key 修改
parent
fc953250
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
fmp_printer.pro
+2
-1
fmp_printer_def.h
+8
-0
fmp_printer_i.h
+3
-0
fmp_printer_p.cpp
+2
-2
No files found.
fmp_printer.pro
View file @
05c27906
...
@@ -33,7 +33,8 @@ HEADERS +=fmp_printer_i.h \
...
@@ -33,7 +33,8 @@ HEADERS +=fmp_printer_i.h \
QsLog
/
QsLogDestFile
.
h
\
QsLog
/
QsLogDestFile
.
h
\
QsLog
/
QsLogDestFunctor
.
h
\
QsLog
/
QsLogDestFunctor
.
h
\
QsLog
/
QsLogDisableForThisFile
.
h
\
QsLog
/
QsLogDisableForThisFile
.
h
\
QsLog
/
QsLogLevel
.
h
QsLog
/
QsLogLevel
.
h
\
fmp_printer_def
.
h
...
...
fmp_printer_def.h
0 → 100644
View file @
05c27906
#ifndef FMP_PRINTER_DEF_H
#define FMP_PRINTER_DEF_H
#define FMP_INIKEY_PRINTERNAME "Printer/Name"
#define FMP_INIKEY_PRINTERTYPE "Printer/Mode"
#define FMP_INIKEY_PRINTERSIZE "Printer/PaperWidth"
#endif // FMP_PRINTER_DEF_H
fmp_printer_i.h
View file @
05c27906
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
#define FMPPRINTERINTERFACE_H
#define FMPPRINTERINTERFACE_H
#include <fmp_plugin_i.h>
#include <fmp_plugin_i.h>
#include "fmp_printer_def.h"
/**
/**
* 业务插件接口,必须继承自 FMPluginInterface
* 业务插件接口,必须继承自 FMPluginInterface
* @brief The FMPPrinterInterface class
* @brief The FMPPrinterInterface class
...
...
fmp_printer_p.cpp
View file @
05c27906
...
@@ -106,8 +106,8 @@ QString FMPPrinterPrivate::_GetPrintName()
...
@@ -106,8 +106,8 @@ QString FMPPrinterPrivate::_GetPrintName()
{
{
Q_Q
(
FMPPrinter
);
Q_Q
(
FMPPrinter
);
_settings
=
q
->
GetService
<
FMPSettingsInterface
>
(
q
->
_ctx
);
_settings
=
q
->
GetService
<
FMPSettingsInterface
>
(
q
->
_ctx
);
m_print
.
printname
=
_settings
->
GetString
(
FMP_INIKEY_PRINTER
);
m_print
.
printname
=
_settings
->
GetString
(
FMP_INIKEY_PRINTER
NAME
);
m_print
.
m_PrintType
=
_settings
->
GetInt
(
FMP_INIKEY_TYPE
);
m_print
.
m_PrintType
=
_settings
->
GetInt
(
FMP_INIKEY_
PRINTER
TYPE
);
m_print
.
m_PrintSize
=
_settings
->
GetInt
(
FMP_INIKEY_PRINTERSIZE
);
m_print
.
m_PrintSize
=
_settings
->
GetInt
(
FMP_INIKEY_PRINTERSIZE
);
return
m_print
.
printname
;
return
m_print
.
printname
;
}
}
...
...
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