Back to index

scribus-ng  1.3.4.dfsg+svn20071115
vlnadialog.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 /* This is the Scribus Short Words GUI class specification.
00008 
00009 This code is based on the Scribus-Vlna plug in rewritten for
00010 international use.
00011 
00012 2004 Petr Vanek <petr@yarpen.cz>
00013 
00014 This program is free software - see LICENSE file in the distribution
00015 or documentation
00016 */
00017 
00018 #ifndef _SHORTWORDSDIALOG_H
00019 #define _SHORTWORDSDIALOG_H
00020 
00021 #include <qdialog.h>
00022 
00023 class QVBoxLayout;
00024 class QHBoxLayout;
00025 class QGridLayout;
00026 class QButtonGroup;
00027 class QRadioButton;
00028 class QPushButton;
00029 class QLabel;
00030 class QCheckBox;
00031 
00032 class SWConfig;
00033 
00038 class SWDialog : public QDialog
00039 {
00040        Q_OBJECT
00041 
00042 public:
00043        SWDialog(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
00044        ~SWDialog();
00045 
00047        SWConfig *cfg;
00048 
00049        QButtonGroup* buttonGroup;
00050        QRadioButton* frameRadio;
00051        QRadioButton* pageRadio;
00052        QRadioButton* allRadio;
00053        QPushButton* okButton;
00054        QPushButton* cancelButton;
00055        //QPushButton* infoButton;
00056        //QCheckBox* userCheckBox;
00058        int actionSelected;
00059 
00061        void selectAction(int aAction);
00062 
00063 public slots:
00065        virtual void okButton_pressed();
00067        virtual void cancelButton_pressed();
00068 
00069 protected:
00070        QGridLayout* SWDialogLayout;
00071        QVBoxLayout* layout4;
00072        QHBoxLayout* layout3;
00073        QVBoxLayout* layout2;
00074        QVBoxLayout* layout1;
00075 
00076 protected slots:
00077        virtual void languageChange();
00080        virtual void buttonGroup_clicked(int key);
00081 
00082 };
00083 
00084 #endif // SWDialog_H