#include <Entwicklung/moneypenny/src/guiprinterdrivertoxml.h>
Collaboration diagram for GuiPrinterDriverToXml:
Definition at line 53 of file guiprinterdrivertoxml.h.
|
ORable bitmasks for en-/disabling widgets. You can use
Definition at line 222 of file guiprinterdrivertoxml.h. |
|
Constructs a new printer driver 2 xml gui
Definition at line 63 of file guiprinterdrivertoxml.cpp. References BuildFlag, enableWidgets(), LPS_CUPS_MODEL_DIR_DEFAULT, m_CupsModelDir, m_domDoc, and NoneFlag. Here is the call graph for this function: |
|
This destructor takes care of manually allocated memory. Definition at line 77 of file guiprinterdrivertoxml.cpp. References m_domDoc. |
|
Adds a driver to the internal XML DOM database.
Definition at line 504 of file guiprinterdrivertoxml.cpp. References PrinterSetupDb::getDriverByModel(), PrinterSetupDb::getManufacturer(), PrinterSetupDb::getModel(), LinuxPrinterSetup::ppd_info::languageVersion, m_domDoc, LinuxPrinterSetup::ppd_info::manufacturer, LinuxPrinterSetup::ppd_info::modelName, LinuxPrinterSetup::ppd_info::nickName, LinuxPrinterSetup::ppd_info::ppdFilePath, and LinuxPrinterSetup::ppd_info::product. Referenced by parseFile(). Here is the call graph for this function: |
|
This signal is fired, when the user clicks on the "Back" button. It is handled by the sourrounding UI and shall bring the user back to the page that she/he visited before. Referenced by on_pushButton_back_clicked(). |
|
This slot method is called when the widget recieves a close signal. Eventually running build processes are aborted! Definition at line 108 of file guiprinterdrivertoxml.cpp. References on_pushButton_abort_clicked(). |
|
This method enables widgets according to the appropriate bitmask.
Definition at line 557 of file guiprinterdrivertoxml.cpp. References BuildFlag, ProgressFlag, and SaveFlag. Referenced by GuiPrinterDriverToXml(), on_pushButton_abort_clicked(), and on_pushButton_build_clicked(). |
|
This method is called when at some state some program part wants to report something. It appends the message to the log widget.
Definition at line 262 of file guiprinterdrivertoxml.cpp. Referenced by on_pushButton_build_clicked(), on_pushButton_save_clicked(), parseFile(), show(), and traverseDir(). |
|
This slot method is called, when the user clicks on the abort button to abort the building of the XML db and it does what says. Definition at line 215 of file guiprinterdrivertoxml.cpp. References BuildFlag, enableWidgets(), m_buildCanceled, and NoneFlag. Referenced by closeEvent(), and on_pushButton_back_clicked(). |
|
This slot method is called, when the user clicks on the back button to return to the main program. (This is MoneyPenny specific) Definition at line 225 of file guiprinterdrivertoxml.cpp. References back(), and on_pushButton_abort_clicked(). |
|
This slot method pops up a file dialog for setting the CUPS model directory. You should select a directory that contains folders of printer manufacturers (e.g. Alps, HP, ...). One of the most common folders on Debian/Ubuntu is: /usr/share/cups/model/ Until we haven't found a mechanism to determine a this path automatically, you must find it yourself if you have other distributions.
Definition at line 195 of file guiprinterdrivertoxml.cpp. References LPS_CUPS_MODEL_DIR_DEFAULT. |
|
This slot method pops up a file dialog for setting the save path of the XML db. If the file you select or enter does not exist, it will be created on-the-fly. Definition at line 170 of file guiprinterdrivertoxml.cpp. |
|
This slot method is called, when the user clicks on the "Build" button. It initiates the parsing of all PPD files located under the previously set CUPS model directory. Definition at line 120 of file guiprinterdrivertoxml.cpp. References AllFlag, BuildFlag, enableWidgets(), logMessage(), LPS_DB_DOCUMENT_NAME, m_buildCanceled, m_CupsModelDir, m_domDoc, NoneFlag, ProgressFlag, and traverseDir(). |
|
This slot method is called when the user clicks on the "Save" button. It saves the DOM datastructure to a XML file previously selected by the user. If the file specified does not exists, it will be created on-the-fly. Definition at line 236 of file guiprinterdrivertoxml.cpp. References logMessage(), and m_domDoc. |
|
Trys to figure out if it is a Postscript Printer Description (PPD). If it is a PPD-file, it is decompressed and read for further processing with addDriver().
Definition at line 377 of file guiprinterdrivertoxml.cpp. References addDriver(), LinuxPrinterSetup::ppd_info::languageVersion, logMessage(), m_CupsModelDir, LinuxPrinterSetup::ppd_info::manufacturer, LinuxPrinterSetup::ppd_info::modelName, LinuxPrinterSetup::ppd_info::nickName, LinuxPrinterSetup::ppd_info::ppdFilePath, and LinuxPrinterSetup::ppd_info::product. Referenced by traverseDir(). Here is the call graph for this function: |
|
This slot method is called when this dialog is shown. In initializes all widgets located in this dialog with sensable state (e.g. Saving is diabled). Definition at line 91 of file guiprinterdrivertoxml.cpp. References logMessage(), LPS_DB_FILE, and m_CupsModelDir. |
|
Runs recursively through all subdirectories in "dir" and parses every file it founds.
Definition at line 287 of file guiprinterdrivertoxml.cpp. References logMessage(), m_buildCanceled, and parseFile(). Referenced by on_pushButton_build_clicked(). Here is the call graph for this function: |
|
Useful for influencing the build process.
Definition at line 230 of file guiprinterdrivertoxml.h. Referenced by on_pushButton_abort_clicked(), on_pushButton_build_clicked(), and traverseDir(). |
|
The directory containing the PPD files. This may have subdirectories.
Definition at line 232 of file guiprinterdrivertoxml.h. Referenced by GuiPrinterDriverToXml(), on_pushButton_build_clicked(), parseFile(), and show(). |
|
The DOM document used for XML db building/saving.
Definition at line 234 of file guiprinterdrivertoxml.h. Referenced by addDriver(), GuiPrinterDriverToXml(), on_pushButton_build_clicked(), on_pushButton_save_clicked(), and ~GuiPrinterDriverToXml(). |
To get more information, please visit our project site hosted at | |
To support this project, please click on this image: |
Copyright © 2005-2006 Linux Printer Setup | Documentation generated by Doxygen 1.4.4 | LPS 1.0 (Disclaimer) |