Scribus
Open source desktop publishing at your fingertips
modetoolbar.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  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 
40 class ScrSpinBox;
41 class ScribusDoc;
42 class ScribusMainWindow;
43 class WidgetPopupMenu2;
44 
45 
50 class SCRIBUS_API ModeToolBar : public ScToolBar
51 {
52  Q_OBJECT
53 
54 public:
56  ~ModeToolBar() {};
57 
58  virtual void changeEvent(QEvent *e);
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  QWidgetAction* insertShapeButtonAct;
74  QMenu* insertShapeButtonMenu;
75  QMenu* insertPolygonButtonMenu;
76  QAction* idInsertPolygonButtonMenu;
77  ScribusMainWindow* m_ScMW;
78  QWidget *propWidget;
79  QGridLayout* group1Layout;
80  QMenu* calPop;
81  QWidgetAction* calValAct;
82  QLabel *AngleTxt;
83  QLabel *PWidthTxt;
84  ScrSpinBox *Angle;
85  ScrSpinBox *PWidth;
86 
87 };
88 
89 #endif
Definition: autoformbuttongroup.h:22
Definition: sctoolbar.h:43
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
the Document Class
Definition: scribusdoc.h:90
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Definition: modetoolbar.h:50