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 texttoolb.h - description 9 ------------------- 10 begin : Sun Mar 10 2002 11 copyright : (C) 2002 by Franz Schmid 12 email : Franz.Schmid@altmuehlnet.de 13 ***************************************************************************/ 14 15 /*************************************************************************** 16 * * 17 * This program is free software; you can redistribute it and/or modify * 18 * it under the terms of the GNU General Public License as published by * 19 * the Free Software Foundation; either version 2 of the License, or * 20 * (at your option) any later version. * 21 * * 22 ***************************************************************************/ 23 24 #ifndef MODETOOLBAR_H 25 #define MODETOOLBAR_H 26 27 #include "scribusapi.h" 28 #include "ui/sctoolbar.h" 29 #include <QAction> 30 #include <QMenu> 31 #include <QWidgetAction> 32 #include <QGridLayout> 33 #include <QLabel> 34 #include <QWidget> 35 36 class QEvent; 37 class QToolButton; 38 39 class AutoformButtonGroup; 40 class ScrSpinBox; 41 class ScribusDoc; 42 class ScribusMainWindow; 43 class WidgetPopupMenu2; 44 45 46 /** 47 *@author Franz Schmid 48 */ 49 50 class SCRIBUS_API ModeToolBar : public ScToolBar 51 { 52 Q_OBJECT 53 54 public: 55 ModeToolBar(ScribusMainWindow* parent); 56 ~ModeToolBar(); 57 58 void changeEvent(QEvent *e) override; 59 void setDoc(ScribusDoc* doc); 60 int SubMode; 61 int ValCount; 62 double *ShapeVals; 63 64 public slots: 65 void newCalValues(); 66 void GetPolyProps(); 67 void SelShape(int s, int c, qreal *vals); 68 // void getShapeValues(int& mode, double* values, int& count); 69 void languageChange(); 70 71 protected: 72 AutoformButtonGroup* autoFormButtonGroup; 73 QMenu* insertPolygonButtonMenu; 74 QAction* idInsertPolygonButtonMenu; 75 ScribusMainWindow* m_ScMW; 76 QWidget *propWidget; 77 QGridLayout* group1Layout; 78 QMenu* calPop; 79 QWidgetAction* calValAct; 80 QLabel *AngleTxt; 81 QLabel *PWidthTxt; 82 ScrSpinBox *Angle; 83 ScrSpinBox *PWidth; 84 85 }; 86 87 #endif 88