Scribus
Open source desktop publishing at your fingertips
markvariabletext.h
1 #ifndef MARKVARIABLETEXT_H
2 #define MARKVARIABLETEXT_H
3 
4 #include "scribusapi.h"
5 #include "markinsert.h"
6 #include "ui_markvariabletext.h"
7 
8 class SCRIBUS_API MarkVariableText : public MarkInsert, private Ui::MarkVariableTextDlg
9 {
10  Q_OBJECT
11 
12 public:
13  explicit MarkVariableText(const QList<Mark*>&, QWidget *parent = 0);
14  explicit MarkVariableText(const Mark*, QWidget *parent = 0);
16  virtual Mark* values(QString& label, QString& text);
17  virtual void setValues(const QString label, const QString text);
18 
19 protected:
20  void changeEvent(QEvent *e);
21 
22 private slots:
23  void onLabelList_currentIndexChanged(int index);
24 
25 private:
26  QWidget* labelEditWidget;
27  const Mark* mrk;
28 };
29 
30 #endif // MARKVARIABLETEXT_H
Definition: markinsert.h:11
Definition: marks.h:40
Definition: markvariabletext.h:8