home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / nftwidget.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-02-16  |  1.3 KB  |  54 lines

  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, QString templateDir);
  42.     ~nftwidget();
  43. private slots: 
  44.     void setTNails();
  45.     void setInfo();
  46.     void getCurrentDocumentTemplate(QListWidgetItem* item);
  47.     void removeTemplate();
  48. signals:
  49.     void leaveOK();
  50.     void ButtonBoxEnable(bool);
  51. };
  52.  
  53. #endif
  54.