Scribus
Open source desktop publishing at your fingertips
propertywidget_distance.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 #ifndef PROPERTYWIDGET_DISTANCE_H
8 #define PROPERTYWIDGET_DISTANCE_H
9 
10 #include "ui_propertywidget_distancebase.h"
11 
12 #include "propertywidgetbase.h"
13 
14 class ScribusDoc;
15 class ScribusMainWindow;
16 
17 class PropertyWidget_Distance : public QFrame, public Ui::PropertyWidget_DistanceBase,
18  public PropertyWidgetBase
19 {
20  Q_OBJECT
21 
22 public:
23  PropertyWidget_Distance(QWidget* parent);
25 
26 protected:
27  void connectSignals();
28  void disconnectSignals();
29 
30  PageItem * m_item;
31  ScribusMainWindow* m_ScMW;
32 
33  double m_unitRatio;
34  int m_unitIndex;
35 
36  void configureWidgets(void);
37  void setCurrentItem(PageItem *item);
38 
39  virtual void changeEvent(QEvent *e);
40 
41 public slots:
42  void setMainWindow(ScribusMainWindow *mw);
43  void setDoc(ScribusDoc *d);
44 
45  void handleAppModeChanged(int oldMode, int mode);
46  void handleSelectionChanged();
47  void handleUpdateRequest(int);
48 
49  void languageChange();
50  void unitChange();
51 
52  void showColumns(int r, double g);
53  void showTextDistances(double left, double top, double bottom, double right);
54 
55 private slots:
56  void handleColumns();
57  void handleColumnGap();
58  void handleGapSwitch();
59  void handleTabs();
60  void handleVAlign();
61  void handleTextDistances();
62 };
63 
64 #endif
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
Definition: propertywidget_distance.h:17
the Document Class
Definition: scribusdoc.h:90
Definition: propertywidgetbase.h:16
Definition: pageitem.h:92