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 // 9 // Author: Craig Bradney <cbradney@zip.com.au>, (C) 2006 10 // 11 // Copyright: See COPYING file that comes with this distribution 12 // 13 // 14 15 16 #ifndef INSERTAFRAME_H 17 #define INSERTAFRAME_H 18 19 #include <QButtonGroup> 20 #include <QDialog> 21 #include <QMap> 22 #include <QString> 23 24 #include "gtgettext.h" 25 #include "ui_insertaframe.h" 26 #include "scribusapi.h" 27 #include "usertaskstructs.h" 28 29 class PageItem; 30 class ScribusDoc; 31 32 class SCRIBUS_API InsertAFrame : public QDialog, Ui::InsertAFrame 33 { 34 Q_OBJECT 35 36 public: 37 InsertAFrame(QWidget* parent, ScribusDoc *doc); ~InsertAFrame()38 ~InsertAFrame(){}; 39 40 void getNewFrameProperties(InsertAFrameData &iafData); 41 protected: 42 ScribusDoc* m_Doc; 43 ImportSetup m_ImportSetup; 44 QButtonGroup *typeButtonGroup; 45 QButtonGroup *pagePlacementButtonGroup; 46 QButtonGroup *framePositionButtonGroup; 47 QButtonGroup *sizeButtonGroup; 48 QHash<PageItem*, QString> pageItemMap; 49 50 protected slots: 51 void slotSelectType(int id); 52 void slotSelectPagePlacement(int id); 53 void slotCreatePageNumberRange(); 54 void slotSelectPosition(int id); 55 void slotSelectSize(int id); 56 void slotLinkToExistingFrame(int state); 57 void locateImageFile(); 58 void locateDocFile(); 59 void iconSetChange(); 60 }; 61 62 #endif 63 64