Back to index

scribus-ng  1.3.4.dfsg+svn20071115
smreplacedia.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 
00008 #ifndef SMREPLACEDIA_H
00009 #define SMREPLACEDIA_H
00010 
00011 #include "smreplacediabase.h"
00012 #include "styleitem.h"
00013 
00014 class QString;
00015 class QStringList;
00016 class QLabel;
00017 class QComboBox;
00018 class QHBoxLayout;
00019 
00020 class SMRowWidget : public QWidget
00021 {
00022        Q_OBJECT
00023 public:
00024        SMRowWidget(const QString &toBeDeleted, QStringList replaceOptions, QWidget *parent);
00025        ~SMRowWidget();
00026 
00027        QString toBeDeleted();
00028        QString replaceWith();
00029 
00030 private:
00031        QHBoxLayout *layout;
00032        QLabel      *deleteLabel;
00033        QComboBox   *optionsCombo;
00034 };
00035 
00036 class SMReplaceDia : public SMReplaceDiaBase {
00037        Q_OBJECT
00038 public:
00039        SMReplaceDia(const QStringList &toBeDeleted, const QStringList &replaceOptions, QWidget *parent);
00040        ~SMReplaceDia();
00041 
00042        QValueList<RemoveItem> items();
00043 
00044 private:
00045        QVBoxLayout *layout;
00046        QHBoxLayout *headerLayout;
00047        QLabel      *deleteHeader;
00048        QLabel      *optionsHeader;
00049        QPtrList<SMRowWidget>  rowWidgets;
00050 };
00051 
00052 #endif