OptionsForm.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*!
  2. * \file OptionsForm.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. //! A widget for changing options
  18. /*!
  19. * For now it contains automatic color generation switcher
  20. * and path to the PASCAL "root" folder setter
  21. */
  22. class OptionsForm : public QWidget {
  23. Q_OBJECT
  24. protected:
  25. void keyPressEvent(QKeyEvent *anEvent);
  26. public:
  27. OptionsForm(QWidget *aParent = 0);
  28. virtual ~OptionsForm();
  29. bool autoColorGeneration();
  30. void setPASCALpath(QString *aPath);
  31. public slots:
  32. void setOptions();
  33. void showOptions();
  34. void newPascalPath();
  35. void setAutoColorGeneration(bool *flag);
  36. void onPathEditing();
  37. signals:
  38. private:
  39. QCheckBox *auto_color_generation_box_;
  40. QPushButton *button_set_PASCAL_root_;
  41. QLineEdit *edit_PASCAL_root_;
  42. QPushButton *button_ok_;
  43. QPushButton *button_cancel_;
  44. QVBoxLayout *layout_v_;
  45. QHBoxLayout *layout_PASCAL_root_;
  46. QHBoxLayout *layout_h_;
  47. /* pointers to variables */
  48. QString *PASCALpath_;
  49. bool *auto_color_generation_;
  50. };
  51. #endif /* __OPTIONSFORM_H__ */
  52. /*
  53. *
  54. */