Содержимое файла | Последнее изменение | Открыть журнал | RSS
Редакция | Автор | № строки | Строка |
---|---|---|---|
5 | diffor | 1 | /* |
2 | * TableView Preview & Print demo |
||
3 | * Copyright (C) 2004-2008 by Gordos Kund / QnD Co Bt. |
||
4 | * |
||
5 | * This library is free software; you can redistribute it and/or |
||
6 | * modify it under the terms of the GNU Lesser General Public |
||
7 | * License as published by the Free Software Foundation; either |
||
8 | * version 2.1 of the License, or (at your option) any later version. |
||
9 | * |
||
10 | * This library is distributed in the hope that it will be useful, |
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||
13 | * Lesser General Public License for more details. |
||
14 | * |
||
15 | * You should have received a copy of the GNU Lesser General Public |
||
16 | * License along with this library; if not, write to the Free Software |
||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
18 | * Please contact gordos.kund@gmail.com with any questions on this license. |
||
19 | */ |
||
20 | |||
21 | #ifndef TABLEPRINTEREXAMPLE_H |
||
22 | #define TABLEPRINTEREXAMPLE_H |
||
23 | #include <QMainWindow> |
||
24 | #include <QWorkspace> |
||
25 | #include <QObject> |
||
26 | #include "tdpreviewdialog.h" |
||
27 | #include <ui_tableprinterexample.h> |
||
28 | |||
29 | /*! \class TablePrinterExample |
||
30 | * \brief TablePrinterExample |
||
31 | * \author Kund Gordos |
||
32 | * \version 0.12 |
||
33 | * \date 2008 |
||
34 | */ |
||
35 | |||
36 | class TablePrinterExample; |
||
37 | class TablePrinterExample : public QWidget |
||
38 | { |
||
39 | Q_OBJECT |
||
40 | |||
41 | public: |
||
42 | TablePrinterExample( QWidget* parent = 0); |
||
43 | ~TablePrinterExample(); |
||
44 | |||
45 | private: |
||
46 | Ui_TablePrinterExample ui; |
||
47 | QPrinter *printer; |
||
48 | TDPreviewDialog::Grids grid; |
||
49 | |||
50 | private slots: |
||
51 | virtual void on_printPushButton_clicked(); |
||
52 | virtual void on_previewPushButton_clicked(); |
||
53 | virtual void on_comboBox_currentIndexChanged ( int index ); |
||
54 | }; |
||
55 | #endif |