OptionsForm.h 974 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 QLabel;
  13. class QVBoxLayout;
  14. class QHBoxLayout;
  15. class QKeyEvent;
  16. class OptionsForm : public QWidget {
  17. Q_OBJECT
  18. protected:
  19. void keyPressEvent(QKeyEvent *anEvent);
  20. public:
  21. OptionsForm(QWidget *aParent = 0);
  22. virtual ~OptionsForm();
  23. bool autoColorGeneration();
  24. void setPASCALpath(QString *aPath);
  25. public slots:
  26. void setOptions();
  27. void showOptions();
  28. void newPascalPath();
  29. signals:
  30. void optionsSet();
  31. private:
  32. QCheckBox *auto_color_generation_;
  33. QPushButton *button_set_PASCAL_root_;
  34. QLabel *label_PASCAL_root_;
  35. QPushButton *button_ok_;
  36. QPushButton *button_cancel_;
  37. QVBoxLayout *layout_v_;
  38. QHBoxLayout *layout_PASCAL_root_;
  39. QHBoxLayout *layout_h_;
  40. /* pointers to variables */
  41. QString *PASCALpath_;
  42. };
  43. #endif /* __OPTIONSFORM_H__ */
  44. /*
  45. *
  46. */