Back to index

scribus-ng  1.3.4.dfsg+svn20071115
styleselect.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 #ifndef STYLESELECT_H
00008 #define STYLESELECT_H
00009 
00010 class QGroupBox;
00011 class QToolButton;
00012 class QLayout;
00013 class MSpinBox;
00014 class QLabel;
00015 class QPopupMenu;
00016 
00017 #include "scribusapi.h"
00018 
00019 class SCRIBUS_API StrikeValues : public QGroupBox
00020 {
00021     Q_OBJECT
00022 
00023 public:
00024        StrikeValues( QWidget* parent );
00025        ~StrikeValues() {};
00026        MSpinBox* LPos;
00027        MSpinBox* LWidth;
00028        QLabel* LPosTxt;
00029        QLabel* LWidthTxt;
00030 
00031 public slots:
00032        void languageChange();
00033        
00034 protected:
00035        QGridLayout* group1Layout;
00036 };
00037 
00038 class SCRIBUS_API UnderlineValues : public QGroupBox
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043        UnderlineValues( QWidget* parent );
00044        ~UnderlineValues() {};
00045        MSpinBox* LPos;
00046        MSpinBox* LWidth;
00047        QLabel* LPosTxt;
00048        QLabel* LWidthTxt;
00049 
00050 public slots:
00051        void languageChange();
00052        
00053 protected:
00054        QGridLayout* group1Layout;
00055 };
00056 
00057 class SCRIBUS_API OutlineValues : public QGroupBox
00058 {
00059     Q_OBJECT
00060 
00061 public:
00062        OutlineValues( QWidget* parent );
00063        ~OutlineValues() {};
00064        MSpinBox* LWidth;
00065        QLabel* LWidthTxt;
00066 
00067 public slots:
00068        void languageChange();
00069        
00070 protected:
00071        QGridLayout* group1Layout;
00072 };
00073 
00074 class SCRIBUS_API ShadowValues : public QGroupBox
00075 {
00076     Q_OBJECT
00077 
00078 public:
00079        ShadowValues( QWidget* parent );
00080        ~ShadowValues() {};
00081        MSpinBox* Xoffset;
00082        MSpinBox* Yoffset;
00083        QLabel* XoffsetTxt;
00084        QLabel* YoffsetTxt;
00085 
00086 public slots:
00087        void languageChange();
00088        
00089 protected:
00090        QGridLayout* group1Layout;
00091 };
00092 
00093 class SCRIBUS_API StyleSelect : public QWidget
00094 {
00095 
00096        Q_OBJECT
00097 
00098 public:
00099        StyleSelect(QWidget* parent);
00100        ~StyleSelect() {};
00101        void setStyle(int s);
00102        int getStyle();
00103        ShadowValues* ShadowVal;
00104        OutlineValues* OutlineVal;
00105        UnderlineValues* UnderlineVal;
00106        StrikeValues* StrikeVal;
00107 
00108 public slots:
00109        void languageChange();
00110 
00111 private slots:
00112        void setTypeStyle();
00113 
00114 signals:
00115        void State(int);
00116 
00117 protected:
00118        QHBoxLayout* ssLayout;
00119        QToolButton* underlineButton;
00120        QToolButton* underlineWordButton;
00121        QToolButton* subscriptButton;
00122        QToolButton* superscriptButton;
00123        QToolButton* smallcapsButton;
00124        QToolButton* allcapsButton;
00125        QToolButton* strikeoutButton;
00126        QToolButton* outlineButton;
00127        QToolButton* shadowButton;
00128        QPopupMenu* ShadowPop;
00129        QPopupMenu* OutlinePop;
00130        QPopupMenu* UnderlinePop;
00131        QPopupMenu* StrikePop;
00132 };
00133 
00134 #endif
00135