Scribus
Open source desktop publishing at your fingertips
marksmanager.h
1 #ifndef MARKSMANAGER_H
2 #define MARKSMANAGER_H
3 
4 #include <QList>
5 #include <QTreeWidgetItem>
6 #include "ui/scrpalettebase.h"
7 #include "ui_marksmanager.h"
8 #include "marks.h"
9 class QEvent;
10 class ScribusDoc;
11 
12 class SCRIBUS_API MarksManager : public ScrPaletteBase, Ui::MarksManager
13 {
14  Q_OBJECT
15 
16 public:
17  explicit MarksManager(QWidget *parent = 0, const char *name = "MarksManager");
18  ~MarksManager();
19  void updateListView();
20 
21 private:
22  ScribusDoc *m_Doc;
23  PrefsContext *m_prefs;
24  Mark* getMarkFromListView();
25  void addListItem(MarkType typeMrk, QString typeStr, const QList<Mark *> &marks, int &index);
26  QStringList expandedItems;
27  void storeColaption();
28  void restoreColaption();
29 
30 public slots:
31  void setDoc(ScribusDoc *doc);
32  void languageChange();
33  void handleUpdateRequest(int updateFlags);
34 
35 private slots:
36  void on_UpdateButton_clicked();
37  void on_EditButton_clicked();
38  void on_DeleteButton_clicked();
39  void on_listView_doubleClicked(const QModelIndex &index);
40  void on_listView_itemSelectionChanged();
41 };
42 
43 #endif // MARKSMANAGER_H
Definition: marks.h:40
the Document Class
Definition: scribusdoc.h:90
Definition: prefscontext.h:40
Definition: scrpalettebase.h:38
Definition: marksmanager.h:12