Subversion Repositories Scribus

Rev

Rev 1902 | Rev 3422 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1239 subik 1
/*! This is the Scribus Short Words GUI class specification.
2
 
3
This code is based on the Scribus-Vlna plug in rewritten for
4
international use.
5
 
6
2004 Petr Vanek <petr@yarpen.cz>
7
 
8
This program is free software - see LICENSE file in the distribution
9
or documentation
10
*/
11
 
12
#ifndef _SHORTWORDSDIALOG_H
13
#define _SHORTWORDSDIALOG_H
14
 
15
#include "shortwords.h"
16
 
17
#include <qdialog.h>
18
 
19
class QVBoxLayout;
20
class QHBoxLayout;
21
class QGridLayout;
22
class QButtonGroup;
23
class QRadioButton;
24
class QPushButton;
25
class QLabel;
26
class QCheckBox;
1902 subik 27
class QMenuBar;
1239 subik 28
 
1902 subik 29
class Config;
30
 
3108 subik 31
/** \brief GUI dialog for user to make decision.
1902 subik 32
 Generated from Qt designer UI file. Later changes by my hands :) */
1239 subik 33
class VlnaDialog : public QDialog
34
{
35
        Q_OBJECT
36
 
37
public:
38
        VlnaDialog(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
39
        ~VlnaDialog();
40
 
1902 subik 41
        //! reference on the config structure
42
        Config *cfg;
43
 
1239 subik 44
        QButtonGroup* buttonGroup;
45
        QRadioButton* frameRadio;
46
        QRadioButton* pageRadio;
47
        QRadioButton* allRadio;
48
        QPushButton* okButton;
49
        QPushButton* cancelButton;
1902 subik 50
        //QPushButton* infoButton;
1239 subik 51
        QCheckBox* userCheckBox;
52
        /*! 1-3 integer - value of the radio button group transformed */
53
        int actionSelected;
1902 subik 54
        /*! Menu bar for this widget */
55
        QMenuBar *menuBar;
1239 subik 56
 
57
        /** from config file */
58
        void selectAction(int aAction);
59
 
60
public slots:
61
        /** run shorts processing */
62
        virtual void okButton_pressed();
63
        /** cancel and quit */
64
        virtual void cancelButton_pressed();
65
        /** raise "about" dialog */
66
        virtual void infoButton_pressed();
1902 subik 67
        /** Edit system wide rc file */
68
        virtual void editSystemCfg();
69
        /** Edit user wide rc file */
70
        virtual void editUserCfg();
71
        /** Set the plain text editor */
72
        virtual void setupEditor();
73
        /** TODO: raise help dialog. It doesn't support tutorial sections.*/
74
        virtual void help();
1239 subik 75
 
1902 subik 76
 
1239 subik 77
protected:
78
        QGridLayout* VlnaDialogLayout;
79
        QVBoxLayout* layout4;
80
        QHBoxLayout* layout3;
81
        QVBoxLayout* layout2;
82
        QVBoxLayout* layout1;
83
 
1902 subik 84
        /*! Cal editor to edit specified file */
85
        void editFile(QString);
86
 
1239 subik 87
protected slots:
88
        virtual void languageChange();
89
};
90
 
91
#endif // VLNADIALOG_H