home *** CD-ROM | disk | FTP | other *** search
- /*
- For general Scribus (>=1.3.2) copyright and licensing information please refer
- to the COPYING file provided with the program. Following this notice may exist
- a copyright and/or license notice that predates the release of Scribus 1.3.2
- for which a new license (GPL+exception) is in place.
- */
- #ifndef STYLESELECT_H
- #define STYLESELECT_H
-
- #include <QFrame>
- #include <QGridLayout>
- #include <QHBoxLayout>
- #include <QLabel>
- #include <QMenu>
- #include <QPixmap>
- #include <QToolButton>
- #include <QToolTip>
- #include <QWidgetAction>
-
- class QEvent;
-
- #include "scrspinbox.h"
- #include "scribusapi.h"
-
- class SCRIBUS_API StrikeValues : public QFrame
- {
- Q_OBJECT
-
- public:
- StrikeValues( QWidget* parent );
- ~StrikeValues() {};
-
- ScrSpinBox* LPos;
- ScrSpinBox* LWidth;
- QLabel* LPosTxt;
- QLabel* LWidthTxt;
-
- public slots:
- void languageChange();
-
- protected:
- QGridLayout* group1Layout;
- };
-
- class SCRIBUS_API UnderlineValues : public QFrame
- {
- Q_OBJECT
-
- public:
- UnderlineValues( QWidget* parent );
- ~UnderlineValues() {};
-
- ScrSpinBox* LPos;
- ScrSpinBox* LWidth;
- QLabel* LPosTxt;
- QLabel* LWidthTxt;
-
- public slots:
- void languageChange();
-
- protected:
- QGridLayout* group1Layout;
- };
-
- class SCRIBUS_API OutlineValues : public QFrame
- {
- Q_OBJECT
-
- public:
- OutlineValues( QWidget* parent );
- ~OutlineValues() {};
-
- ScrSpinBox* LWidth;
- QLabel* LWidthTxt;
-
- public slots:
- void languageChange();
-
- protected:
- QGridLayout* group1Layout;
- };
-
- class SCRIBUS_API ShadowValues : public QFrame
- {
- Q_OBJECT
-
- public:
- ShadowValues( QWidget* parent );
- ~ShadowValues() {};
-
- ScrSpinBox* Xoffset;
- ScrSpinBox* Yoffset;
- QLabel* XoffsetTxt;
- QLabel* YoffsetTxt;
-
- public slots:
- void languageChange();
-
- protected:
- QGridLayout* group1Layout;
- };
-
- class SCRIBUS_API StyleSelect : public QWidget
- {
-
- Q_OBJECT
-
- public:
- StyleSelect(QWidget* parent);
- ~StyleSelect() {};
-
- virtual void changeEvent(QEvent *e);
-
- void setStyle(int s);
- int getStyle();
- ShadowValues* ShadowVal;
- OutlineValues* OutlineVal;
- UnderlineValues* UnderlineVal;
- StrikeValues* StrikeVal;
-
- public slots:
- void languageChange();
-
- private slots:
- void setTypeStyle();
-
- signals:
- void State(int);
-
- protected:
- QHBoxLayout* ssLayout;
- QToolButton* underlineButton;
- QToolButton* underlineWordButton;
- QToolButton* subscriptButton;
- QToolButton* superscriptButton;
- QToolButton* smallcapsButton;
- QToolButton* allcapsButton;
- QToolButton* strikeoutButton;
- QToolButton* outlineButton;
- QToolButton* shadowButton;
- QMenu* ShadowPop;
- QMenu* OutlinePop;
- QMenu* UnderlinePop;
- QMenu* StrikePop;
- QWidgetAction* StrikeValAct;
- QWidgetAction* ShadowValAct;
- QWidgetAction* OutlineValAct;
- QWidgetAction* UnderlineValAct;
- };
-
- #endif
-
-