Scribus
Open source desktop publishing at your fingertips
propertywidget_dropcap.h
1 #ifndef PROPERTYWIDGET_DropCap_H
2 #define PROPERTYWIDGET_DropCap_H
3 
4 #include "ui_propertywidget_dropcapbase.h"
5 
6 #include "propertywidgetbase.h"
7 
8 class PageItem;
9 class ParagraphStyle;
10 class ScribusMainWindow;
11 
12 class PropertyWidget_DropCap : public QFrame, private Ui::PropertyWidget_DropCapBase, public PropertyWidgetBase
13 {
14  Q_OBJECT
15 
16 public:
17  PropertyWidget_DropCap(QWidget *parent = 0);
19 
20  void updateStyle(const ParagraphStyle& newCurrent);
21  void updateCharStyles();
22 
23  void displayCharStyle(const QString& name);
24 
25 protected:
26  double m_unitRatio;
27  int m_unitIndex;
28 
29  PageItem * m_item;
30  ScribusMainWindow* m_ScMW;
31 
32  void configureWidgets();
33  void setCurrentItem(PageItem *item);
34 
35  virtual void changeEvent(QEvent *e);
36 
37 public slots:
38  void setMainWindow(ScribusMainWindow *mw);
39  void setDoc(ScribusDoc *doc);
40 
41  void handleAppModeChanged(int oldMode, int mode);
42  void handleSelectionChanged();
43  void handleUpdateRequest(int);
44 
45  void languageChange();
46  void unitChange();
47 
48  void handleDropCapUse();
49  void handleDropCapLines();
50  void handleDropCapOffset();
51  void handleDropCapCharStyle();
52 
53 private:
54  void connectSignals();
55  void disconnectSignals();
56  void enableDropCap(bool);
57 };
58 
59 #endif // PROPERTYWIDGET_DropCap_H
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
Definition: paragraphstyle.h:27
the Document Class
Definition: scribusdoc.h:90
Definition: propertywidgetbase.h:16
Definition: pageitem.h:92
Definition: propertywidget_dropcap.h:12