|
DtkWidget
DTK Widget module
|
Public 类型 | |
| enum | TipsNum { NullTip , MaxTip , CommaTip , FormatTip } |
| enum | WaterMarkType { Type_None , Type_Text , Type_Image } |
Public 成员函数 | |
| DPrintPreviewDialogPrivate (DPrintPreviewDialog *qq) | |
| void | startup () |
| void | initui () |
| void | initleft (QVBoxLayout *layout) |
| void | initright (QVBoxLayout *layout) |
| void | initbasicui () |
| void | initadvanceui () |
| void | initWaterMarkui () |
| void | initWaterSettings () |
| void | marginsLayout (bool adapted) |
| void | initdata () |
| void | initconnections () |
| void | setfrmaeback (DFrame *frame) |
| void | showadvancesetting () |
| void | setupPrinter () |
| void | setScaling (int index) |
| void | judgeSupportedAttributes (const QString &lastPaperSize) |
| void | setMininumMargins () |
| void | marginsUpdate (bool isPrinterChanged) |
| DPrintPreviewDialogPrivate::marginsUpdate 切换打印机和纸张切换对于边距的刷新和预览页面的刷新 isPrinterchanged 判断是打印机切换或者是纸张切换 | |
| void | adjustMargins () |
| DPrintPreviewDialogPrivate::adjustMargins 根据输入的边距数据调整边距 | |
| void | themeTypeChange (DGuiApplicationHelper::ColorType themeType) |
| void | setPageIsLegal (bool islegal) |
| void | tipSelected (TipsNum tipNum) |
| QVector< int > | checkDuplication (QVector< int > data) |
| void | updateSubControlSettings (DPrintPreviewSettingInfo::SettingType setting) |
| void | updateAllControlSettings () |
| void | updateAllContentSettings_impl () |
| void | updateAllControlStatus () |
| void | setEnable (const int &value, DComboBox *combox) |
| DPrintPreviewDialogPrivate::setEnable 设置纸张范围自定义可输入状态 value 判断选择的范围类型 combox 选择的具体的combox | |
| void | setTurnPageBtnStatus () |
| DPrintPreviewDialogPrivate::setEnable 设置翻页按钮状态 | |
| void | watermarkTypeChoosed (int index) |
| DPrintPreviewDialogPrivate::watermarkTypeChoosed 选取水印类型 index 判断选取的水印类型 | |
| void | customPictureWatermarkChoosed (const QString &filename) |
| DPrintPreviewDialogPrivate::customPictureWatermarkChoosed 图片水印 state 图片水印路径 | |
| void | waterMarkBtnClicked (bool checked) |
| DPrintPreviewDialogPrivate::waterMarkBtnClicked 是否开启水印 state 水印开启 | |
| void | disablePrintSettings () |
| DPrintPreviewDialogPrivate::disablePrintSettings 如果按照路径打印文件,则禁用部分不能使用的功能 | |
| void | setPageLayoutEnable (const bool &checked) |
| DPrintPreviewDialogPrivate::setPageLayoutEnable 并列打印控件是否可用 checked 并列打印功能是否选中 | |
| void | matchFitablePageSize () |
| bool | isActualPrinter (const QString &name) |
| void | _q_printerChanged (int index) |
| DPrintPreviewDialogPrivate::_q_printerChanged 根据选取不同的打印设备刷新界面和属性 index 判断选取的打印设备 | |
| void | _q_pageRangeChanged (int index) |
| DPrintPreviewDialogPrivate::slotPageRangeCombox 根据选取的不同纸张范围类型设置纸张范围 index 判断不同的范围类型 | |
| void | _q_pageMarginChanged (int index) |
| DPrintPreviewDialogPrivate::_q_pageMarginChanged 根据选择不同的设置边距类型设置边距 index 判断选取的不同的设置边距的类型 | |
| void | _q_ColorModeChange (int index) |
| DPrintPreviewDialogPrivate::_q_ColorModeChange 根据色彩选项,调整预览图中的色彩为黑白或者彩色 index 当前选择彩色预览还是黑白预览 | |
| void | _q_startPrint (bool clicked) |
| DPrintPreviewDialogPrivate::_q_startPrint 点击开始打印,设置属性 clicked 判断按钮点击状态 | |
| void | _q_orientationChanged (int index) |
| DPrintPreviewDialogPrivate::_q_orientationChanged 根据按钮索引切换打印方向为横向或者纵向 index 当前按钮是横向按钮还是纵向按钮 | |
| void | _q_customPagesFinished () |
| DPrintPreviewDialogPrivate::_q_customPagesFinished 自定义页面时,页码处理 index | |
| void | _q_marginspinChanged (double) |
| DPrintPreviewDialogPrivate::_q_marginspinChanged 自定义页边距spinbox值改变 marginValue 改变的值的大小 | |
| void | _q_marginEditFinished () |
| DPrintPreviewDialogPrivate::_q_marginspinChanged 自定义页边距spinbox焦点改变输入结束 | |
| void | _q_currentPageSpinChanged (int value) |
| DPrintPreviewDialogPrivate::_q_currentPageSpinChanged 根据当前页的页码的变化,变化翻页按钮的状态 value 当前页码 | |
| void | _q_checkStateChanged (int state) |
| DPrintPreviewDialogPrivate::_q_checkStateChanged 点击双面打印按钮 state 判断是否选中双面打印按钮 | |
| void | _q_textWaterMarkModeChanged (int index) |
| DPrintPreviewDialogPrivate::_q_textWaterMarkModeChanged 文本水印的内容选择 state 判断文本水印内容选择 | |
| void | _q_customTextWatermarkFinished () |
| DPrintPreviewDialogPrivate::_q_customTextWatermarkFinished 文本水印的自定义输入 state 判断文本水印自定义 | |
| void | _q_colorButtonCliked (bool cliked) |
| DPrintPreviewDialogPrivate::_q_colorButtonCliked 点击取色按钮显示取色窗口位置 | |
| void | _q_selectColorButton (QColor color) |
| DPrintPreviewDialogPrivate::_q_selectColorButton 获取水印取色框获取到的颜色 color 水印的颜色 | |
| void | _q_pagePersheetComboIndexChanged (int index) |
| DPrintPreviewDialogPrivate::_q_pagePersheetComboIndexChanged 并列打印选择 index 并列打印选择 | |
| void | _q_printOrderComboIndexChanged (int index) |
| DPrintPreviewDialogPrivate::_q_printOrderComboIndexChanged 打印顺序 index 打印顺序选择 | |
| void | _q_spinboxValueEmptyChecked (const QString &) |
| void | pageRangeError (TipsNum tipNum) |
Public 属性 | |
| DPrinter * | printer = nullptr |
| int | totalPages = 0 |
| bool | fontSizeMore = false |
| QString | lastPageRange = "" |
| bool | supportedDuplexFlag = false |
| bool | supportedColorMode = false |
| bool | isInited = false |
| int | strLengths = 0 |
| bool | isOnFocus = false |
| QString | lastCusWatermarkText = "" |
| bool | isChecked = false |
| bool | isEventHide = false |
| bool | isInitBtnColor = false |
| QColor | waterColor |
| int | typeChoice = 0 |
| int | directChoice = 0 |
| DPrintPreviewWidget * | pview = nullptr |
| DBackgroundGroup * | back = nullptr |
| DWidget * | basicsettingwdg = nullptr |
| DWidget * | advancesettingwdg = nullptr |
| DWidget * | watermarksettingwdg = nullptr |
| DWidget * | textWatermarkWdg = nullptr |
| DWidget * | picWatermarkWdg = nullptr |
| DIconButton * | firstBtn = nullptr |
| DIconButton * | prevPageBtn = nullptr |
| DSpinBox * | jumpPageEdit = nullptr |
| DLabel * | totalPageLabel = nullptr |
| DLabel * | originTotalPageLabel = nullptr |
| DIconButton * | nextPageBtn = nullptr |
| DIconButton * | lastBtn = nullptr |
| DPushButton * | cancelBtn = nullptr |
| DSuggestButton * | printBtn = nullptr |
| DPushButton * | advanceBtn = nullptr |
| DScrollArea * | scrollarea = nullptr |
| DComboBox * | printDeviceCombo = nullptr |
| DSpinBox * | copycountspinbox = nullptr |
| DComboBox * | pageRangeCombo = nullptr |
| DLineEdit * | pageRangeEdit = nullptr |
| QButtonGroup * | orientationgroup = nullptr |
| DComboBox * | colorModeCombo = nullptr |
| DComboBox * | marginsCombo = nullptr |
| DDoubleSpinBox * | marginTopSpin = nullptr |
| DDoubleSpinBox * | marginBottomSpin = nullptr |
| DDoubleSpinBox * | marginLeftSpin = nullptr |
| DDoubleSpinBox * | marginRightSpin = nullptr |
| QButtonGroup * | scaleGroup = nullptr |
| DSpinBox * | scaleRateEdit = nullptr |
| DComboBox * | duplexCombo = nullptr |
| DCheckBox * | duplexCheckBox = nullptr |
| DComboBox * | paperSizeCombo = nullptr |
| DComboBox * | pagePerSheetCombo = nullptr |
| DCheckBox * | sidebysideCheckBox = nullptr |
| QButtonGroup * | directGroup = nullptr |
| QButtonGroup * | printOrderGroup = nullptr |
| DComboBox * | inorderCombo = nullptr |
| DComboBox * | waterTextCombo = nullptr |
| DIconButton * | waterColorBtn = nullptr |
| DLineEdit * | waterTextEdit = nullptr |
| DComboBox * | fontCombo = nullptr |
| DSwitchButton * | waterMarkBtn = nullptr |
| DFileChooserEdit * | picPathEdit = nullptr |
| QButtonGroup * | waterTypeGroup = nullptr |
| DComboBox * | waterPosCombox = nullptr |
| DSpinBox * | inclinatBox = nullptr |
| DSlider * | waterSizeSlider = nullptr |
| DSpinBox * | sizeBox = nullptr |
| DSlider * | wmOpaSlider = nullptr |
| DSpinBox * | opaBox = nullptr |
| QVector< qreal > | marginOldValue |
| QList< qreal > | minnumMargins |
| QSpacerItem * | spacer = nullptr |
| QSpacerItem * | wmSpacer = nullptr |
| DFloatingWidget * | colorWidget = nullptr |
| DRadioButton * | printInOrderRadio = nullptr |
| DWidget * | inorderwdg = nullptr |
| DPrintPickColorWidget * | pickColorWidget = nullptr |
| QHash< QWidget *, QString > | spinboxTextCaches |
| PreviewSettingsPluginHelper * | settingHelper |
| QBasicTimer | settingUpdateTimer |
额外继承的成员函数 | |
Protected 成员函数 继承自 Dtk::Widget::DDialogPrivate | |
| DDialogPrivate (DDialog *qq) | |
| QBoxLayout * | getContentLayout () |
Protected 成员函数 继承自 Dtk::Widget::DAbstractDialogPrivate | |
| DAbstractDialogPrivate (DAbstractDialog *qq) | |
| QRect | getParentGeometry () const |
| void Dtk::Widget::DPrintPreviewDialogPrivate::initWaterSettings | ( | ) |
| void Dtk::Widget::DPrintPreviewDialogPrivate::setMininumMargins | ( | ) |
DPrintPreviewDialogPrivate::setMininumMargins 如果边距小于最小边距,设置成最小边距
| void Dtk::Widget::DPrintPreviewDialogPrivate::setPageIsLegal | ( | bool | islegal | ) |
DPrintPreviewDialogPrivate::setPageIsLegal 检查自定义页码是否合法,不合法的话设置警告颜色,打印保存按钮置灰
| void Dtk::Widget::DPrintPreviewDialogPrivate::setupPrinter | ( | ) |
DPrintPreviewDialogPrivate::setupPrinter 设置打印的相关基础属性和高级属性