~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/smreplacedia.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2007-08-11 17:41:51 UTC
  • mfrom: (0.1.1 upstream) (4.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20070811174151-tmkgjvjuc0mtk8ul
Tags: 1.3.4.dfsg+svn20071115-1
* Upstream svn update (Closes: #447480, #448949).
* debian/NEWS: Added a note for users wanting stable Scribus to switch to
  the "scribus" package (Closes: #427638).
* debian/watch: Updated the watch regex to properly track sourceforge
  releases for this branch (Closes: #449700).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 "smreplacediabase.h"
 
12
#include "styleitem.h"
 
13
 
 
14
class QString;
 
15
class QStringList;
 
16
class QLabel;
 
17
class QComboBox;
 
18
class QHBoxLayout;
 
19
 
 
20
class SMRowWidget : public QWidget
 
21
{
 
22
        Q_OBJECT
 
23
public:
 
24
        SMRowWidget(const QString &toBeDeleted, QStringList replaceOptions, QWidget *parent);
 
25
        ~SMRowWidget();
 
26
 
 
27
        QString toBeDeleted();
 
28
        QString replaceWith();
 
29
 
 
30
private:
 
31
        QHBoxLayout *layout;
 
32
        QLabel      *deleteLabel;
 
33
        QComboBox   *optionsCombo;
 
34
};
 
35
 
 
36
class SMReplaceDia : public SMReplaceDiaBase {
 
37
        Q_OBJECT
 
38
public:
 
39
        SMReplaceDia(const QStringList &toBeDeleted, const QStringList &replaceOptions, QWidget *parent);
 
40
        ~SMReplaceDia();
 
41
 
 
42
        QValueList<RemoveItem> items();
 
43
 
 
44
private:
 
45
        QVBoxLayout *layout;
 
46
        QHBoxLayout *headerLayout;
 
47
        QLabel      *deleteHeader;
 
48
        QLabel      *optionsHeader;
 
49
        QPtrList<SMRowWidget>  rowWidgets;
 
50
};
 
51
 
 
52
#endif