| 1 | #cxx . . $ `<file>/HercPrinter/PrinterDialog.cpp`/include "PrinterDialog.h"cxx . . $ `<file>/HercPrinter/PrinterDialog.h`/ |
| 2 | #include "ui_PrinterDialog.h"cxx . . $ `<file>/ui/ui_PrinterDialog.h`/ |
| 3 | #include "PrinterItem.h"cxx . . $ `<file>/HercPrinter/PrinterItem.h`/ |
| 4 | #include "PrinterController.h"cxx . . $ `<file>/HercPrinter/PrinterController.h`/ |
| 5 | #include "PagePrinter.h"cxx . . $ `<file>/HercPrinter/PagePrinter.h`/ |
| 6 | #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/ |
| 7 | #include "FieldTip.h"cxx . . $ `<file>/HercStudio/FieldTip.h`/ |
| 8 | #include "Stationery.h"cxx . . $ `<file>/HercPrinter/Stationery.h`/ |
| 9 | #include "Environment.h"cxx . . $ `<file>/HercStudio/Environment.h`/ |
| 10 | |
| 11 | #include <QMessageBox> |
| 12 | #include <QFileDialog> |
| 13 | #include <QCloseEvent> |
| 14 | #include <QMenu> |
| 15 | #include <QMovie> |
| 16 | #include <QDir> |
| 17 | #include <QFileInfo> |
| 18 | |
| 19 | |
| 20 | PrinterDialogcxx . . $ PrinterDialog#::PrinterDialogcxx . . $ PrinterDialog#PrinterDialog(d71cd35ae558283).(QWidgetcxx . . $ QWidget# *parent, const QStringcxx . . $ QString# &item) : |
| 21 | IpValidatorcxx . . $ IpValidator#(parent), |
| 22 | uicxx . . $ PrinterDialog#ui.(new Uicxx . . $ Ui/::PrinterDialogcxx . . $ Ui/PrinterDialog#), |
| 23 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!), |
| 24 | mListeningcxx . . $ PrinterDialog#mListening.(false) |
| 25 | { |
| 26 | uicxx . . $ PrinterDialog#ui.->setupUicxx . . $ Ui_PrinterDialog#setupUi(d194de0c0f68c28b).(this); |
| 27 | this->setWindowFlagscxx . . $ QWidget#setWindowFlags(f800b5e9bc59e42e).(Qtcxx . . $ QFlags#QFlags(9b289cee16747614).::Windowcxx . . $ Qt/Window.); |
| 28 | |
| 29 | QStringListcxx . . $ QStringList# stationeries = Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().stationeryListcxx . . $ Preferences#stationeryList(669a05bc42dd57cc).(); |
| 30 | for (int i=0; i<stationeries.sizecxx . . $ QList#size(455f465bc33b4cdf).(); i++) |
| 31 | uicxx . . $ PrinterDialog#ui.->stationeryComboBoxcxx . . $ Ui_PrinterDialog#stationeryComboBox.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(stationeries[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]); |
| 32 | |
| 33 | QStringListcxx . . $ QStringList# decolations = Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().decolationListcxx . . $ Preferences#decolationList(669a05bc42dd57cc).(); |
| 34 | for (int i=0; i<decolations.sizecxx . . $ QList#size(455f465bc33b4cdf).() ; i++) |
| 35 | uicxx . . $ PrinterDialog#ui.->decolationComboBoxcxx . . $ Ui_PrinterDialog#decolationComboBox.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(decolations[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]); |
| 36 | |
| 37 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->insertItemscxx . . $ QComboBox#insertItems(c6059507b8fd4559).(0,Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().printerListcxx . . $ Preferences#printerList(669a05bc42dd57cc).()); |
| 38 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 39 | |
| 40 | if (item.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) |
| 41 | { |
| 42 | populatecxx . . $ PrinterDialog#populate(7df51288a9ebd664).(itemcxx . . $ QString#QString(3520e46b33348bf6).); |
| 43 | } |
| 44 | else |
| 45 | { |
| 46 | QStringcxx . . $ QString# lastPrintercxx . . $ QString#QString(e1217c004a86c950). = Preferencescxx . . $ QString#QString(85c52e162fed56f9).::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().lastPrinterNamecxx . . $ Preferences#lastPrinterName(219584694fe2b248).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 47 | if (lastPrinter.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) |
| 48 | { |
| 49 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->setCurrentTextcxx . . $ QComboBox#setCurrentText(3520e46b33348bf6).(lastPrinter); |
| 50 | populatecxx . . $ PrinterDialog#populate(7df51288a9ebd664).(lastPrintercxx . . $ QString#QString(3520e46b33348bf6).); |
| 51 | } |
| 52 | else |
| 53 | { |
| 54 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 55 | populatecxx . . $ PrinterDialog#populate(7df51288a9ebd664).(uicxx . . $ QString#QString(e1217c004a86c950).->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).()); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ PrinterDialog#ui.->DirButtoncxx . . $ Ui_PrinterDialog#DirButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dirClicked())); |
| 60 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ PrinterDialog#ui.->cancelButtoncxx . . $ Ui_PrinterDialog#cancelButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(cancelClicked())); |
| 61 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ PrinterDialog#ui.->deleteButtoncxx . . $ Ui_PrinterDialog#deleteButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(deleteClicked())); |
| 62 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ PrinterDialog#ui.->connectButtoncxx . . $ Ui_PrinterDialog#connectButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(connectClicked())); |
| 63 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(currentTextChanged(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(adjustPrinter(QString))); |
| 64 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(editTextChanged(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(printerNameChanged(QString))); |
| 65 | |
| 66 | QStringcxx . . $ QString# pathcxx . . $ QString#QString(e1217c004a86c950). = Environmentcxx . . $ QString#QString(85c52e162fed56f9).::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 67 | QIconcxx . . $ QIcon# trayIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(path +cxx . . $ operator+(3d22f08efddf8107). "/printerw.png"); |
| 68 | mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon. = new QSystemTrayIconcxx . . $ QSystemTrayIcon#(trayIcon, this); |
| 69 | mSystrayHintEjectedcxx . . $ PrinterDialog#mSystrayHintEjected. = false; |
| 70 | |
| 71 | QMenucxx . . $ QMenu# *trayIconMenu = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 72 | QActioncxx . . $ QAction# *restoreAction = new QActioncxx . . $ QAction#QAction(6b24f83d17022bd9).(trcxx . . $ PrinterDialog#tr(75d9f1c324b4579d).("&Hide"), this); |
| 73 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(restoreAction, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(triggered()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(hideRestore())); |
| 74 | trayIconMenu->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(restoreAction); |
| 75 | mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon.->setContextMenucxx . . $ QSystemTrayIcon#setContextMenu(cb52c12b49e9b51b).(trayIconMenu); |
| 76 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(activated(QSystemTrayIcon::ActivationReason)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(systrayClick(QSystemTrayIcon::ActivationReason))); |
| 77 | mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon.->setToolTipcxx . . $ QSystemTrayIcon#setToolTip(3520e46b33348bf6).("Printer is connected"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 78 | |
| 79 | mMoviecxx . . $ PrinterDialog#mMovie. =cxx . . $ QSharedPointer#`operator=`(392ad4e272af0338). QSharedPointercxx . . $ QSharedPointer#<QMoviecxx . . $ QMovie#>(new QMoviecxx . . $ QMovie#QMovie(d456944f9b07ef8f).(QStringcxx . . $ QString#QString(85c52e162fed56f9).(Environmentcxx . . $ Environment#::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()) +cxx . . $ operator+(3d22f08efddf8107). "/connecting.gif")); |
| 80 | uicxx . . $ PrinterDialog#ui.->animatedGifcxx . . $ Ui_PrinterDialog#animatedGif.->setMoviecxx . . $ QLabel#setMovie(6774a9a322b07ced).(mMoviecxx . . $ PrinterDialog#mMovie..datacxx . . $ QSharedPointer#data(5a2a78a048fb49a8).()); |
| 81 | uicxx . . $ PrinterDialog#ui.->animatedGifcxx . . $ Ui_PrinterDialog#animatedGif.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 82 | uicxx . . $ PrinterDialog#ui.->connectedImagecxx . . $ Ui_PrinterDialog#connectedImage.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 83 | } |
| 84 | |
| 85 | PrinterDialogcxx . . $ PrinterDialog#::~cxx . . $ PrinterDialog#`~PrinterDialog`(49f6e7a06ebc5aa8).PrinterDialogcxx . . $ PrinterDialog#() |
| 86 | { |
| 87 | delete uicxx . . $ PrinterDialog#ui.; |
| 88 | if (!mControllercxx . . $ PrinterDialog#mController..isNullcxx . . $ QSharedPointer#isNull(50ce9a9e25b4a850).()) |
| 89 | { |
| 90 | mControllercxx . . $ PrinterDialog#mController.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).stopcxx . . $ PrinterController#stop(49f6e7a06ebc5aa8).(); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | void PrinterDialogcxx . . $ PrinterDialog#::populatecxx . . $ PrinterDialog#populate(7df51288a9ebd664).(QStringcxx . . $ QString# printerName) |
| 95 | { |
| 96 | PrinterItemPtrcxx . . $ PrinterItemPtr# printercxx . . $ QSharedPointer#QSharedPointer(21100a343a80bccd).(Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().printercxx . . $ Preferences#printer(11102a99e20612d2).(printerNamecxx . . $ QString#QString(3520e46b33348bf6).)); |
| 97 | |
| 98 | uicxx . . $ PrinterDialog#ui.->IPcxx . . $ Ui_PrinterDialog#IP.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(printer->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mIpcxx . . $ PrinterItem#mIp.); |
| 99 | uicxx . . $ PrinterDialog#ui.->PortNumbercxx . . $ Ui_PrinterDialog#PortNumber.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(printer->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mPortcxx . . $ PrinterItem#mPort.)); |
| 100 | uicxx . . $ PrinterDialog#ui.->stationeryComboBoxcxx . . $ Ui_PrinterDialog#stationeryComboBox.->setCurrentTextcxx . . $ QComboBox#setCurrentText(3520e46b33348bf6).(printer->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mStationerycxx . . $ PrinterItem#mStationery.); |
| 101 | uicxx . . $ PrinterDialog#ui.->lpiSpinBoxcxx . . $ Ui_PrinterDialog#lpiSpinBox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(printer->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mLinesPerInchcxx . . $ PrinterItem#mLinesPerInch.); |
| 102 | uicxx . . $ PrinterDialog#ui.->fontSizeSpinBoxcxx . . $ Ui_PrinterDialog#fontSizeSpinBox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(printer->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mFontSizecxx . . $ PrinterItem#mFontSize.); |
| 103 | uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(printer->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mSpoolDircxx . . $ PrinterItem#mSpoolDir.); |
| 104 | uicxx . . $ PrinterDialog#ui.->decolationComboBoxcxx . . $ Ui_PrinterDialog#decolationComboBox.->setCurrentTextcxx . . $ QComboBox#setCurrentText(3520e46b33348bf6).(printer->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mDecolationNamecxx . . $ PrinterItem#mDecolationName.); |
| 105 | } |
| 106 | |
| 107 | void PrinterDialogcxx . . $ PrinterDialog#::dirClickedcxx . . $ PrinterDialog#dirClicked(49f6e7a06ebc5aa8).() |
| 108 | { |
| 109 | QStringcxx . . $ QString# dir = uicxx . . $ QString#QString(e1217c004a86c950).->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 110 | if (dir.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) dir =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). QDircxx . . $ QDir#::homePathcxx . . $ QDir#homePath(4365c3963150523e).()+cxx . . $ operator+(3d22f08efddf8107)."/Desktop"; |
| 111 | dir =cxx . . $ QString#`operator=`(7b76e6691bca1027). QFileDialogcxx . . $ QFileDialog#::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a).(this, |
| 112 | trcxx . . $ PrinterDialog#tr(75d9f1c324b4579d).("Spool directory"), |
| 113 | dir, |
| 114 | QFileDialogcxx . . $ QFileDialog#::ShowDirsOnlycxx . . $ QFileDialog#ShowDirsOnly. |cxx . . $ `operator|`(111e3d57d9caabd5). QFileDialogcxx . . $ QFileDialog#::DontResolveSymlinkscxx . . $ QFileDialog#DontResolveSymlinks.); |
| 115 | if (dir.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(dir); |
| 116 | } |
| 117 | |
| 118 | bool PrinterDialogcxx . . $ PrinterDialog#::savecxx . . $ PrinterDialog#save(efaadfb7dc14930a).(bool quiet) |
| 119 | { |
| 120 | if (validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ PrinterDialog#ui.->IPcxx . . $ Ui_PrinterDialog#IP., false, false) == false) return false; |
| 121 | |
| 122 | if ((uicxx . . $ PrinterDialog#ui.->PortNumbercxx . . $ Ui_PrinterDialog#PortNumber.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toUIntcxx . . $ QString#toUInt(a0efe6e2edfc86a0).() > 0xffff) || |
| 123 | (uicxx . . $ PrinterDialog#ui.->PortNumbercxx . . $ Ui_PrinterDialog#PortNumber.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toUIntcxx . . $ QString#toUInt(a0efe6e2edfc86a0).() == 0)) |
| 124 | { |
| 125 | if (!quiet) |
| 126 | { |
| 127 | QStringcxx . . $ QString# msgcxx . . $ QString#QString(e1217c004a86c950).(uicxx . . $ PrinterDialog#ui.->PortNumbercxx . . $ Ui_PrinterDialog#PortNumber.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 128 | msg +=cxx . . $ QString#`operator+=`(d02845eef0c33901). " is an ilegal port number"; |
| 129 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, "Illegal port number"cxx . . $ QString#QString(85c52e162fed56f9)., msg , QMessageBoxcxx . . $ QFlags#QFlags(9b289cee16747614).::Okcxx . . $ QMessageBox#Ok.); |
| 130 | } |
| 131 | return false; |
| 132 | } |
| 133 | |
| 134 | if (uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 0) |
| 135 | { |
| 136 | if (!quiet) |
| 137 | { |
| 138 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "printer"cxx . . $ QString#QString(85c52e162fed56f9)., "Please enter printer name"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 139 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 140 | FieldTipcxx . . $ FieldTip# *balloon = new FieldTipcxx . . $ FieldTip#(this, true); |
| 141 | balloon->setOwnercxx . . $ FieldTip#setOwner(108f35f7aa7f3cf9).(uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.); |
| 142 | balloon->showMessagecxx . . $ FieldTip#showMessage(29ed8fcd127906b1).("Give a name to this printer"cxx . . $ QString#QString(85c52e162fed56f9).,2000); |
| 143 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 144 | } |
| 145 | return false; |
| 146 | } |
| 147 | if (uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().indexOfcxx . . $ QString#indexOf(a1e52806cd31c200).("\""cxx . . $ QString#QString(85c52e162fed56f9).) >= 0) |
| 148 | { |
| 149 | if (!quiet) |
| 150 | { |
| 151 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "printer"cxx . . $ QString#QString(85c52e162fed56f9)., "Printer name cannot contain quotes"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 152 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 153 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 154 | } |
| 155 | return false; |
| 156 | } |
| 157 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem. =cxx . . $ QSharedPointer#`operator=`(392ad4e272af0338). PrinterItemPtrcxx . . $ PrinterItemPtr#(new PrinterItemcxx . . $ PrinterItem#PrinterItem(49f6e7a06ebc5aa8).()); |
| 158 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mNamecxx . . $ PrinterItem#mName. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 159 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mIpcxx . . $ PrinterItem#mIp. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->IPcxx . . $ Ui_PrinterDialog#IP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 160 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mPortcxx . . $ PrinterItem#mPort. = uicxx . . $ PrinterDialog#ui.->PortNumbercxx . . $ Ui_PrinterDialog#PortNumber.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toIntcxx . . $ QString#toInt(d7972accae11ee1f).(); |
| 161 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mStationerycxx . . $ PrinterItem#mStationery. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->stationeryComboBoxcxx . . $ Ui_PrinterDialog#stationeryComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 162 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mLinesPerInchcxx . . $ PrinterItem#mLinesPerInch. = uicxx . . $ PrinterDialog#ui.->lpiSpinBoxcxx . . $ Ui_PrinterDialog#lpiSpinBox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).(); |
| 163 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mFontSizecxx . . $ PrinterItem#mFontSize. = uicxx . . $ PrinterDialog#ui.->fontSizeSpinBoxcxx . . $ Ui_PrinterDialog#fontSizeSpinBox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).(); |
| 164 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mSpoolDircxx . . $ PrinterItem#mSpoolDir. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 165 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mDecolationNamecxx . . $ PrinterItem#mDecolationName. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->decolationComboBoxcxx . . $ Ui_PrinterDialog#decolationComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 166 | Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().setPrintercxx . . $ Preferences#setPrinter(8d5b8e0bf48908cd).(uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(), *cxx . . $ QSharedPointer#`operator*`(c93303b41ac66b6d).mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.); |
| 167 | return true; |
| 168 | } |
| 169 | |
| 170 | void PrinterDialogcxx . . $ PrinterDialog#::deleteClickedcxx . . $ PrinterDialog#deleteClicked(49f6e7a06ebc5aa8).() |
| 171 | { |
| 172 | Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().deletePrintercxx . . $ Preferences#deletePrinter(3520e46b33348bf6).(uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).()); |
| 173 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).(); |
| 174 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->insertItemscxx . . $ QComboBox#insertItems(c6059507b8fd4559).(0,Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().printerListcxx . . $ Preferences#printerList(669a05bc42dd57cc).()); |
| 175 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 176 | } |
| 177 | |
| 178 | void PrinterDialogcxx . . $ PrinterDialog#::cancelClickedcxx . . $ PrinterDialog#cancelClicked(49f6e7a06ebc5aa8).() |
| 179 | { |
| 180 | stopcxx . . $ PrinterDialog#stop(49f6e7a06ebc5aa8).(); |
| 181 | if (savecxx . . $ PrinterDialog#save(efaadfb7dc14930a).(true)) |
| 182 | { |
| 183 | Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().setLastPrinterNamecxx . . $ Preferences#setLastPrinterName(9c546c94e5fcce4e).(uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).()); |
| 184 | } |
| 185 | deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 186 | } |
| 187 | |
| 188 | void PrinterDialogcxx . . $ PrinterDialog#::stopcxx . . $ PrinterDialog#stop(49f6e7a06ebc5aa8).() |
| 189 | { |
| 190 | if (mControllercxx . . $ PrinterDialog#mController. !=cxx . . $ `operator!=`(cd85585c6cc70cdd). NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 191 | mControllercxx . . $ PrinterDialog#mController.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).stopcxx . . $ PrinterController#stop(49f6e7a06ebc5aa8).(); |
| 192 | |
| 193 | } |
| 194 | |
| 195 | void PrinterDialogcxx . . $ PrinterDialog#::adjustPrintercxx . . $ PrinterDialog#adjustPrinter(7df51288a9ebd664).(QStringcxx . . $ QString# name) |
| 196 | { |
| 197 | if (Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().printerListcxx . . $ Preferences#printerList(669a05bc42dd57cc).().indexOfcxx . . $ QList#indexOf(fc79640c865a6596).(name) >= 0) |
| 198 | { |
| 199 | populatecxx . . $ PrinterDialog#populate(7df51288a9ebd664).(namecxx . . $ QString#QString(3520e46b33348bf6).); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | void PrinterDialogcxx . . $ PrinterDialog#::printerNameChangedcxx . . $ PrinterDialog#printerNameChanged(7df51288a9ebd664).(QStringcxx . . $ QString#) |
| 204 | { |
| 205 | |
| 206 | } |
| 207 | |
| 208 | void PrinterDialogcxx . . $ PrinterDialog#::connectClickedcxx . . $ PrinterDialog#connectClicked(49f6e7a06ebc5aa8).() |
| 209 | { |
| 210 | if (mListeningcxx . . $ PrinterDialog#mListening.) // disconnect |
| 211 | { |
| 212 | if (!mControllercxx . . $ PrinterDialog#mController..isNullcxx . . $ QSharedPointer#isNull(50ce9a9e25b4a850).()) |
| 213 | { |
| 214 | mControllercxx . . $ PrinterDialog#mController.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).stopcxx . . $ PrinterController#stop(49f6e7a06ebc5aa8).(); |
| 215 | } |
| 216 | } |
| 217 | else |
| 218 | { |
| 219 | if (!testDirectorycxx . . $ PrinterDialog#testDirectory(7dc6c9a0b6a7270f).(uicxx . . $ QString#QString(e1217c004a86c950).->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).())) return; |
| 220 | if (!savecxx . . $ PrinterDialog#save(efaadfb7dc14930a).(false)) return ; |
| 221 | if (mPrinterItemcxx . . $ PrinterDialog#mPrinterItem. ==cxx . . $ `operator==`(cd85585c6cc70cdd). NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 222 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem. =cxx . . $ QSharedPointer#`operator=`(392ad4e272af0338). PrinterItemPtrcxx . . $ PrinterItemPtr#(new PrinterItemcxx . . $ PrinterItem#PrinterItem(49f6e7a06ebc5aa8).()); |
| 223 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mNamecxx . . $ PrinterItem#mName. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 224 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mIpcxx . . $ PrinterItem#mIp. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->IPcxx . . $ Ui_PrinterDialog#IP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 225 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mPortcxx . . $ PrinterItem#mPort. = uicxx . . $ PrinterDialog#ui.->PortNumbercxx . . $ Ui_PrinterDialog#PortNumber.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toIntcxx . . $ QString#toInt(d7972accae11ee1f).(); |
| 226 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mStationerycxx . . $ PrinterItem#mStationery. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->stationeryComboBoxcxx . . $ Ui_PrinterDialog#stationeryComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 227 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mLinesPerInchcxx . . $ PrinterItem#mLinesPerInch. = uicxx . . $ PrinterDialog#ui.->lpiSpinBoxcxx . . $ Ui_PrinterDialog#lpiSpinBox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).(); |
| 228 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mFontSizecxx . . $ PrinterItem#mFontSize. = uicxx . . $ PrinterDialog#ui.->fontSizeSpinBoxcxx . . $ Ui_PrinterDialog#fontSizeSpinBox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).(); |
| 229 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mSpoolDircxx . . $ PrinterItem#mSpoolDir. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 230 | mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mDecolationNamecxx . . $ PrinterItem#mDecolationName. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ PrinterDialog#ui.->decolationComboBoxcxx . . $ Ui_PrinterDialog#decolationComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 231 | |
| 232 | StationeryPtrcxx . . $ StationeryPtr# stationerycxx . . $ QSharedPointer#QSharedPointer(21100a343a80bccd).(Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().stationerycxx . . $ Preferences#stationery(67fc5f67fc2935ed).(mPrinterItemcxx . . $ QString#QString(3520e46b33348bf6).->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mStationerycxx . . $ PrinterItem#mStationery.)); |
| 233 | DecolationRulesPtrcxx . . $ DecolationRulesPtr# decolationcxx . . $ QSharedPointer#QSharedPointer(7e6e718d4f0ca9be).(Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().decolationcxx . . $ Preferences#decolation(e36804b59b1617fb).(mPrinterItemcxx . . $ QString#QString(3520e46b33348bf6).->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mDecolationNamecxx . . $ PrinterItem#mDecolationName.)); |
| 234 | |
| 235 | mPrintercxx . . $ PrinterDialog#mPrinter. =cxx . . $ QSharedPointer#`operator=`(392ad4e272af0338). PdfPrinterPtrcxx . . $ PdfPrinterPtr#(new PdfPrintercxx . . $ PdfPrinter#PdfPrinter(51a2c7cb5fe6dd8d).(uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(), stationery, decolation, mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mLinesPerInchcxx . . $ PrinterItem#mLinesPerInch., mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).mFontSizecxx . . $ PrinterItem#mFontSize.)); |
| 236 | if (!mControllercxx . . $ PrinterDialog#mController..isNullcxx . . $ QSharedPointer#isNull(50ce9a9e25b4a850).()) |
| 237 | { |
| 238 | mControllercxx . . $ PrinterDialog#mController.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).stopcxx . . $ PrinterController#stop(49f6e7a06ebc5aa8).(); |
| 239 | } |
| 240 | else |
| 241 | { |
| 242 | mControllercxx . . $ PrinterDialog#mController. =cxx . . $ QSharedPointer#`operator=`(392ad4e272af0338). PrinterControllerPtrcxx . . $ PrinterControllerPtr#(new PrinterControllercxx . . $ PrinterController#PrinterController(d8b84d04890d5595).(mPrinterItemcxx . . $ QSharedPointer#QSharedPointer(21100a343a80bccd)., mPrintercxx . . $ QSharedPointer#QSharedPointer(d0dd6979d8f70741).)); |
| 243 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mControllercxx . . $ PrinterDialog#mController..datacxx . . $ QSharedPointer#data(5a2a78a048fb49a8).(), SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(connected()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(connected())); |
| 244 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mControllercxx . . $ PrinterDialog#mController..datacxx . . $ QSharedPointer#data(5a2a78a048fb49a8).(), SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(waiting()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(waiting())); |
| 245 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mControllercxx . . $ PrinterDialog#mController..datacxx . . $ QSharedPointer#data(5a2a78a048fb49a8).(), SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(stoppedWaiting()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(stoppedWaiting())); |
| 246 | } |
| 247 | mControllercxx . . $ PrinterDialog#mController.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).execcxx . . $ PrinterController#exec(49f6e7a06ebc5aa8).(); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | void PrinterDialogcxx . . $ PrinterDialog#::connectedcxx . . $ PrinterDialog#connected(49f6e7a06ebc5aa8).() |
| 252 | { |
| 253 | uicxx . . $ PrinterDialog#ui.->connectedLabelcxx . . $ Ui_PrinterDialog#connectedLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("Connected"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 254 | uicxx . . $ PrinterDialog#ui.->animatedGifcxx . . $ Ui_PrinterDialog#animatedGif.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 255 | uicxx . . $ PrinterDialog#ui.->connectedImagecxx . . $ Ui_PrinterDialog#connectedImage.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 256 | mMoviecxx . . $ PrinterDialog#mMovie.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).stopcxx . . $ QMovie#stop(49f6e7a06ebc5aa8).(); |
| 257 | mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon.->setVisiblecxx . . $ QSystemTrayIcon#setVisible(b45ddcbc8423892c).(true); |
| 258 | setProtectedcxx . . $ PrinterDialog#setProtected(b45ddcbc8423892c).(true); |
| 259 | } |
| 260 | |
| 261 | void PrinterDialogcxx . . $ PrinterDialog#::waitingcxx . . $ PrinterDialog#waiting(49f6e7a06ebc5aa8).() |
| 262 | { |
| 263 | uicxx . . $ PrinterDialog#ui.->connectButtoncxx . . $ Ui_PrinterDialog#connectButton.->setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).("Disconnect"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 264 | uicxx . . $ PrinterDialog#ui.->connectedLabelcxx . . $ Ui_PrinterDialog#connectedLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("Waiting..."cxx . . $ QString#QString(85c52e162fed56f9).); |
| 265 | mListeningcxx . . $ PrinterDialog#mListening. = true; |
| 266 | uicxx . . $ PrinterDialog#ui.->connectedImagecxx . . $ Ui_PrinterDialog#connectedImage.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 267 | mMoviecxx . . $ PrinterDialog#mMovie.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).startcxx . . $ QMovie#start(49f6e7a06ebc5aa8).(); |
| 268 | uicxx . . $ PrinterDialog#ui.->animatedGifcxx . . $ Ui_PrinterDialog#animatedGif.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 269 | setProtectedcxx . . $ PrinterDialog#setProtected(b45ddcbc8423892c).(true); |
| 270 | } |
| 271 | |
| 272 | void PrinterDialogcxx . . $ PrinterDialog#::stoppedWaitingcxx . . $ PrinterDialog#stoppedWaiting(49f6e7a06ebc5aa8).() |
| 273 | { |
| 274 | uicxx . . $ PrinterDialog#ui.->connectButtoncxx . . $ Ui_PrinterDialog#connectButton.->setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).("Connect"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 275 | uicxx . . $ PrinterDialog#ui.->connectedLabelcxx . . $ Ui_PrinterDialog#connectedLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("Disconnected"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 276 | mListeningcxx . . $ PrinterDialog#mListening. = false; |
| 277 | uicxx . . $ PrinterDialog#ui.->connectedImagecxx . . $ Ui_PrinterDialog#connectedImage.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 278 | uicxx . . $ PrinterDialog#ui.->animatedGifcxx . . $ Ui_PrinterDialog#animatedGif.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 279 | mMoviecxx . . $ PrinterDialog#mMovie.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).stopcxx . . $ QMovie#stop(49f6e7a06ebc5aa8).(); |
| 280 | setProtectedcxx . . $ PrinterDialog#setProtected(b45ddcbc8423892c).(false); |
| 281 | } |
| 282 | |
| 283 | bool PrinterDialogcxx . . $ PrinterDialog#::isConnectedcxx . . $ PrinterDialog#isConnected(c9857a73d68e59ba).() |
| 284 | { |
| 285 | return (uicxx . . $ PrinterDialog#ui.->connectedLabelcxx . . $ Ui_PrinterDialog#connectedLabel.->textcxx . . $ QLabel#text(6ef7b6c27b00b43d).().comparecxx . . $ QString#compare(38964227c2ffb4ec).("Connected"cxx . . $ QString#QString(85c52e162fed56f9).) == 0); |
| 286 | } |
| 287 | |
| 288 | void PrinterDialogcxx . . $ PrinterDialog#::closeEventcxx . . $ PrinterDialog#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *event) |
| 289 | { |
| 290 | if (isConnectedcxx . . $ PrinterDialog#isConnected(c9857a73d68e59ba).()) |
| 291 | { |
| 292 | hideRestorecxx . . $ PrinterDialog#hideRestore(49f6e7a06ebc5aa8).(); |
| 293 | event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).(); |
| 294 | return; |
| 295 | } |
| 296 | if (!savecxx . . $ PrinterDialog#save(efaadfb7dc14930a).(false)) |
| 297 | { |
| 298 | event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).(); |
| 299 | return; |
| 300 | } |
| 301 | deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 302 | } |
| 303 | |
| 304 | void PrinterDialogcxx . . $ PrinterDialog#::hideRestorecxx . . $ PrinterDialog#hideRestore(49f6e7a06ebc5aa8).() |
| 305 | { |
| 306 | if (isVisiblecxx . . $ QWidget#isVisible(50ce9a9e25b4a850).()) |
| 307 | { |
| 308 | setVisiblecxx . . $ QDialog#setVisible(b45ddcbc8423892c).(false); |
| 309 | systrayHintcxx . . $ PrinterDialog#systrayHint(49f6e7a06ebc5aa8).(); |
| 310 | mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon.->contextMenucxx . . $ QSystemTrayIcon#contextMenu(ed4378587ff805df).()->actionscxx . . $ QWidget#actions(6326ecb0baf05155).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0)->setTextcxx . . $ QAction#setText(3520e46b33348bf6).("Restore"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 311 | |
| 312 | } |
| 313 | else |
| 314 | { |
| 315 | setVisiblecxx . . $ QDialog#setVisible(b45ddcbc8423892c).(true); |
| 316 | mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon.->contextMenucxx . . $ QSystemTrayIcon#contextMenu(ed4378587ff805df).()->actionscxx . . $ QWidget#actions(6326ecb0baf05155).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0)->setTextcxx . . $ QAction#setText(3520e46b33348bf6).("Hide"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | void PrinterDialogcxx . . $ PrinterDialog#::systrayClickcxx . . $ PrinterDialog#systrayClick(dc7279b31293a212).(QSystemTrayIconcxx . . $ QSystemTrayIcon#::ActivationReasoncxx . . $ QSystemTrayIcon#ActivationReason#) |
| 321 | { |
| 322 | hideRestorecxx . . $ PrinterDialog#hideRestore(49f6e7a06ebc5aa8).(); |
| 323 | } |
| 324 | |
| 325 | void PrinterDialogcxx . . $ PrinterDialog#::systrayHintcxx . . $ PrinterDialog#systrayHint(49f6e7a06ebc5aa8).() |
| 326 | { |
| 327 | if (!mSystrayHintEjectedcxx . . $ PrinterDialog#mSystrayHintEjected.) |
| 328 | { |
| 329 | mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon.->showMessagecxx . . $ QSystemTrayIcon#showMessage(d234e6c04c1013f3).("The printer is still connected and operational"cxx . . $ QString#QString(85c52e162fed56f9).,"Click the Printer icon to restore its dialog"cxx . . $ QString#QString(85c52e162fed56f9).,QSystemTrayIconcxx . . $ QSystemTrayIcon#::Informationcxx . . $ QSystemTrayIcon#Information.,5000); |
| 330 | mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon.->setToolTipcxx . . $ QSystemTrayIcon#setToolTip(3520e46b33348bf6).("Click on this icon to restore the dialog"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 331 | mSystrayHintEjectedcxx . . $ PrinterDialog#mSystrayHintEjected. = true; |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | void PrinterDialogcxx . . $ PrinterDialog#::setProtectedcxx . . $ PrinterDialog#setProtected(b45ddcbc8423892c).(bool protect) |
| 336 | { |
| 337 | uicxx . . $ PrinterDialog#ui.->printerNameComboBoxcxx . . $ Ui_PrinterDialog#printerNameComboBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 338 | uicxx . . $ PrinterDialog#ui.->IPcxx . . $ Ui_PrinterDialog#IP.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 339 | uicxx . . $ PrinterDialog#ui.->PortNumbercxx . . $ Ui_PrinterDialog#PortNumber.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 340 | uicxx . . $ PrinterDialog#ui.->stationeryComboBoxcxx . . $ Ui_PrinterDialog#stationeryComboBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 341 | uicxx . . $ PrinterDialog#ui.->lpiSpinBoxcxx . . $ Ui_PrinterDialog#lpiSpinBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 342 | uicxx . . $ PrinterDialog#ui.->fontSizeSpinBoxcxx . . $ Ui_PrinterDialog#fontSizeSpinBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 343 | uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 344 | uicxx . . $ PrinterDialog#ui.->decolationComboBoxcxx . . $ Ui_PrinterDialog#decolationComboBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 345 | uicxx . . $ PrinterDialog#ui.->deleteButtoncxx . . $ Ui_PrinterDialog#deleteButton.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 346 | } |
| 347 | |
| 348 | bool PrinterDialogcxx . . $ PrinterDialog#::testDirectorycxx . . $ PrinterDialog#testDirectory(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# dirName) |
| 349 | { |
| 350 | QDircxx . . $ QDir# dircxx . . $ QDir#QDir(3520e46b33348bf6).(dirName); |
| 351 | if (!dir.existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) |
| 352 | { |
| 353 | QStringcxx . . $ QString# msgcxx . . $ QString#QString(3520e46b33348bf6).("Directory \"" +cxx . . $ operator+(c75c3ae4eb9af1a8). dirName); |
| 354 | msg +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "\" does not exist"; |
| 355 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, "non-existing directory"cxx . . $ QString#QString(85c52e162fed56f9)., msg , QMessageBoxcxx . . $ QFlags#QFlags(9b289cee16747614).::Okcxx . . $ QMessageBox#Ok.); |
| 356 | uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 357 | return false; |
| 358 | } |
| 359 | QFileInfocxx . . $ QFileInfo# fileInfocxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(dirName); |
| 360 | if (!fileInfo.isDircxx . . $ QFileInfo#isDir(50ce9a9e25b4a850).()) |
| 361 | { |
| 362 | QStringcxx . . $ QString# msgcxx . . $ QString#QString(3520e46b33348bf6).("\"" +cxx . . $ operator+(c75c3ae4eb9af1a8). dirName); |
| 363 | msg +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "\" is not a directory"; |
| 364 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, "invalid directory"cxx . . $ QString#QString(85c52e162fed56f9)., msg , QMessageBoxcxx . . $ QFlags#QFlags(9b289cee16747614).::Okcxx . . $ QMessageBox#Ok.); |
| 365 | uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 366 | return false; |
| 367 | |
| 368 | } |
| 369 | if (!fileInfo.isWritablecxx . . $ QFileInfo#isWritable(50ce9a9e25b4a850).()) |
| 370 | { |
| 371 | QStringcxx . . $ QString# msgcxx . . $ QString#QString(3520e46b33348bf6).("You do not have permission to write into directory \"" +cxx . . $ operator+(c75c3ae4eb9af1a8). dirName); |
| 372 | msg +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "\""; |
| 373 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, "invalid directory"cxx . . $ QString#QString(85c52e162fed56f9)., msg , QMessageBoxcxx . . $ QFlags#QFlags(9b289cee16747614).::Okcxx . . $ QMessageBox#Ok.); |
| 374 | uicxx . . $ PrinterDialog#ui.->spoolDirectorycxx . . $ Ui_PrinterDialog#spoolDirectory.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 375 | return false; |
| 376 | |
| 377 | } |
| 378 | return true; |
| 379 | } |