diff options
author | Manuel Schneider | 2013-10-01 16:44:47 +0200 |
---|---|---|
committer | Manuel Schneider | 2013-10-01 16:44:47 +0200 |
commit | 617d6ec516fc660251e357e8cc8f70b06341a357 (patch) | |
tree | b99c8af9a818d0a53548c28077625cd6cf6c95a9 /src/mainwindow.h | |
parent | Added new param 'username' (diff) | |
download | printergui-617d6ec516fc660251e357e8cc8f70b06341a357.tar.gz printergui-617d6ec516fc660251e357e8cc8f70b06341a357.tar.xz printergui-617d6ec516fc660251e357e8cc8f70b06341a357.zip |
Changed tree stucture
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h new file mode 100644 index 0000000..4b89262 --- /dev/null +++ b/src/mainwindow.h @@ -0,0 +1,36 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QMainWindow> +#include <QDebug> +#include <QDesktopWidget> +#include <QTreeWidget> +#include "cups/cups.h" + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(char *argv[], QWidget *parent = 0); + ~MainWindow(); + +private slots: + void on_printerList_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous); + void on_buttonCancel_clicked(); + void on_buttonPrint_clicked(); + +private: + Ui::MainWindow *ui; + void initializeUI(); + cups_dest_t *dests; + int num_dests; + const char * const user; + const char * const file; +}; + +#endif // MAINWINDOW_H |