Nav apraksta

neweventtoolbutton.h 809B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef NEWEVENTTOOLBUTTON_H
  2. #define NEWEVENTTOOLBUTTON_H
  3. #include "event.h"
  4. #include <QToolButton>
  5. class NewEventToolButton : public QToolButton
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit NewEventToolButton(QWidget *parent = 0);
  10. void initButton();
  11. QString getSelectedEventType();
  12. public slots:
  13. void newObject();
  14. void newWarp();
  15. void newCoordScript();
  16. void newCoordWeather();
  17. void newSign();
  18. void newHiddenItem();
  19. void newSecretBase();
  20. signals:
  21. void newEventAdded(QString);
  22. private:
  23. QString selectedEventType;
  24. QAction *newObjectAction;
  25. QAction *newWarpAction;
  26. QAction *newCoordScriptAction;
  27. QAction *newCoordWeatherAction;
  28. QAction *newSignAction;
  29. QAction *newHiddenItemAction;
  30. QAction *newSecretBaseAction;
  31. };
  32. #endif // NEWEVENTTOOLBUTTON_H