Back to index

scribus-ng  1.3.4.dfsg+svn20071115
query.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 QUERY_H
00008 #define QUERY_H
00009 
00010 #include <qdialog.h>
00011 class QLayout;
00012 class QLabel;
00013 class QLineEdit;
00014 class QPushButton;
00015 class QString;
00016 class QVBoxLayout;
00017 class QHBoxLayout;
00018 class QGridLayout;
00019 
00020 #include "scribusapi.h"
00021 
00022 class SCRIBUS_API Query : public QDialog
00023 {
00024        Q_OBJECT
00025 
00026 public:
00027        Query( QWidget* parent=0, const char* name=0, bool modal = FALSE, WFlags fl=0, QString text=0,
00028               QString titel=0 );
00029        ~Query() {};
00030 
00031        const QString getEditText();
00032        void setEditText(QString newText, bool setSelected);
00033 
00034 public slots:
00035        void Leave();
00036 
00037 private:
00038        QVBoxLayout* queryLayout;
00039        QHBoxLayout* editLayout;
00040        QHBoxLayout* okCancelLayout;
00041        QPushButton* okButton;
00042        QPushButton* cancelButton;
00043        QLineEdit* answerEdit;
00044        QLabel* questionLabel;
00045 };
00046 
00047 #endif // QUERY_H