Scribus
Open source desktop publishing at your fingertips
nftwidget.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 NFTWIDGET_H
12 #define NFTWIDGET_H
13 
14 #include <utility>
15 #include <vector>
16 
17 #include "ui_nftwidget.h"
18 #include "nftsettings.h"
19 
20 class QAction;
21 
22 
23 typedef std::pair<nfttemplate*, QListWidgetItem*> ListItem;
24 
25 
26 class nftwidget: public QWidget, public Ui::nftwidget
27 {
28  Q_OBJECT
29 
30 private:
31  nftsettings* settings;
32  QAction * removeAction;
33  QAction * openAction;
34  std::vector<ListItem*> iconItems;
35  void setupCategories();
36  void setupListItems();
37  void setupAbout();
38 public:
39  nfttemplate* currentDocumentTemplate;
40  nftwidget(QWidget* parent);
41  void setupSettings(QString lang);
42  ~nftwidget();
43 private slots:
44  void setInfo();
45  void setThumbnails();
46  void getCurrentDocumentTemplate(QListWidgetItem* item);
47  void removeTemplate();
48 signals:
49  void leaveOK();
50  void ButtonBoxEnable(bool);
51 };
52 
53 #endif
Definition: nftsettings.h:23
Definition: nftwidget.h:26
Definition: nfttemplate.h:17