Scribus
Open source desktop publishing at your fingertips
nftdialog.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8  * Riku Leino, tsoots@gmail.com *
9  ***************************************************************************/
10 
11 #ifndef NFTDIALOG_H
12 #define NFTDIALOG_H
13 
14 #include <utility>
15 #include <vector>
16 
17 #include "ui_nftdialog.h"
18 #include "nftsettings.h"
19 
20 class QAction;
21 
22 
23 typedef std::pair<nfttemplate*, QListWidgetItem*> ListItem;
24 
25 
26 class nftdialog: public QDialog, public Ui::nftdialog
27 {
28  Q_OBJECT
29 
30 private:
31  nftsettings* settings;
32 
33  QAction * removeAction;
34  QAction * openAction;
35  std::vector<ListItem*> iconItems;
36  void setupCategories();
37  void setupListItems();
38  void setupAbout();
39 public:
40  nfttemplate* currentDocumentTemplate;
41  nftdialog(QWidget* parent, QString lang, QString templateDir);
42  ~nftdialog();
43 private slots:
44  void setTNails();
45  void setInfo();
46  void getCurrentDocumentTemplate(QListWidgetItem* item);
47  void removeTemplate();
48 };
49 
50 #endif
Definition: nftdialog.h:26
Definition: nftsettings.h:23
Definition: nfttemplate.h:17