1 /* 2 For general Scribus (>=1.3.2) copyright and licensing information please refer 3 to the COPYING file provided with the program. Following this notice may exist 4 a copyright and/or license notice that predates the release of Scribus 1.3.2 5 for which a new license (GPL+exception) is in place. 6 */ 7 #ifndef HYASK_H 8 #define HYASK_H 9 10 #include <QDialog> 11 #include <QLineEdit> 12 13 #include "scribusapi.h" 14 class QPushButton; 15 class QHBoxLayout; 16 class QVBoxLayout; 17 class QKeyEvent; 18 class QCheckBox; 19 class QLabel; 20 21 class SCRIBUS_API WortEdit : public QLineEdit 22 { 23 Q_OBJECT 24 public: 25 WortEdit ( QWidget* parent ); ~WortEdit()26 ~WortEdit() {}; 27 void keyPressEvent ( QKeyEvent *k ); 28 }; 29 30 class SCRIBUS_API HyAsk : public QDialog 31 { 32 Q_OBJECT 33 34 public: 35 HyAsk (QWidget* parent, const QString& HWort ); ~HyAsk()36 ~HyAsk() {}; 37 38 WortEdit* Wort; 39 QCheckBox *addToExceptionList; 40 QCheckBox *addToIgnoreList; 41 QLabel *addToExceptionListText; 42 QLabel *addToIgnoreListText; 43 QPushButton* OK; 44 QPushButton* Skip; 45 QPushButton* Cancel; 46 int xpos; 47 int ypos; 48 49 public slots: 50 void Check(); 51 void DoSkip(); 52 void accept(); 53 void reject(); 54 55 protected: 56 QVBoxLayout* HyAskLayout; 57 QHBoxLayout* Layout1; 58 QVBoxLayout* vboxLayout1; 59 QVBoxLayout* vboxLayout2; 60 QVBoxLayout* vboxLayout3; 61 QHBoxLayout* hboxLayout1; 62 QHBoxLayout* hboxLayout2; 63 }; 64 65 #endif // HYASK_H 66