Scribus
Open source desktop publishing at your fingertips
smreplacedia.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 #ifndef SMREPLACEDIA_H
9 #define SMREPLACEDIA_H
10 
11 #include "ui_smreplacedia.h"
12 #include "styleitem.h"
13 
14 class QLabel;
15 class QComboBox;
16 
17 
21 class SMRowWidget : public QWidget
22 {
23  Q_OBJECT
24 public:
25  SMRowWidget(const QString &toBeDeleted, QStringList replaceOptions, QWidget *parent);
26  ~SMRowWidget();
27 
28  QString toBeDeleted();
29  QString replaceWith();
30 
31 private:
32  QHBoxLayout *layout;
33  QLabel *deleteLabel;
34  QComboBox *optionsCombo;
35 };
36 
37 
40 class SMReplaceDia : public QDialog, Ui::SMReplaceDia
41 {
42  Q_OBJECT
43 public:
44  SMReplaceDia(const QStringList &toBeDeleted, const QStringList &replaceOptions, QWidget *parent);
45  ~SMReplaceDia();
46 
47  QList<RemoveItem> items();
48 
49 private:
50  QVBoxLayout *layout;
51  QHBoxLayout *headerLayout;
52  QLabel *deleteHeader;
53  QLabel *optionsHeader;
54  QList<SMRowWidget*> rowWidgets;
55 };
56 
57 #endif
Style Manager: replace one style with another one. A "current--new row" widget.
Definition: smreplacedia.h:21
Style Manager replace dialog.
Definition: smreplacedia.h:40