OptionsForm.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * ImageDescriptionForm.h
  3. *
  4. * Created on: Oct 11, 2011
  5. * Author: Gapchich Vlad
  6. */
  7. #ifndef __OPTIONSFORM_H__
  8. #define __OPTIONSFORM_H__
  9. #include <QWidget>
  10. class QCheckBox;
  11. class QPushButton;
  12. class QLineEdit;
  13. class QLabel;
  14. class QVBoxLayout;
  15. class QHBoxLayout;
  16. class QKeyEvent;
  17. class OptionsForm : public QWidget {
  18. Q_OBJECT
  19. protected:
  20. void keyPressEvent(QKeyEvent *anEvent);
  21. public:
  22. OptionsForm(QWidget *aParent = 0);
  23. virtual ~OptionsForm();
  24. bool autoColorGeneration();
  25. void setPASCALpath(QString *aPath);
  26. public slots:
  27. void setOptions();
  28. void showOptions();
  29. void newPascalPath();
  30. void setAutoColorGeneration(bool flag);
  31. void onPathEditing();
  32. signals:
  33. void optionsSet();
  34. private:
  35. QCheckBox *auto_color_generation_;
  36. QPushButton *button_set_PASCAL_root_;
  37. QLineEdit *edit_PASCAL_root_;
  38. QPushButton *button_ok_;
  39. QPushButton *button_cancel_;
  40. QVBoxLayout *layout_v_;
  41. QHBoxLayout *layout_PASCAL_root_;
  42. QHBoxLayout *layout_h_;
  43. /* pointers to variables */
  44. QString *PASCALpath_;
  45. };
  46. #endif /* __OPTIONSFORM_H__ */
  47. /*
  48. *
  49. */