2018-07-06 17:08:20 +01:00
|
|
|
#ifndef NEWEVENTTOOLBUTTON_H
|
|
|
|
#define NEWEVENTTOOLBUTTON_H
|
|
|
|
|
|
|
|
#include "event.h"
|
|
|
|
#include <QToolButton>
|
|
|
|
|
2021-02-18 00:20:14 +00:00
|
|
|
class NewEventToolButton : public QToolButton {
|
2018-07-06 17:08:20 +01:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2021-02-18 00:20:14 +00:00
|
|
|
explicit NewEventToolButton(QWidget* parent = nullptr);
|
2018-07-06 17:08:20 +01:00
|
|
|
QString getSelectedEventType();
|
2021-02-18 00:20:14 +00:00
|
|
|
QAction* newObjectAction;
|
|
|
|
QAction* newWarpAction;
|
|
|
|
QAction* newHealLocationAction;
|
|
|
|
QAction* newTriggerAction;
|
|
|
|
QAction* newWeatherTriggerAction;
|
|
|
|
QAction* newSignAction;
|
|
|
|
QAction* newHiddenItemAction;
|
|
|
|
QAction* newSecretBaseAction;
|
2018-07-06 17:08:20 +01:00
|
|
|
public slots:
|
|
|
|
void newObject();
|
|
|
|
void newWarp();
|
2018-09-12 01:37:36 +01:00
|
|
|
void newHealLocation();
|
2018-12-26 20:15:35 +00:00
|
|
|
void newTrigger();
|
|
|
|
void newWeatherTrigger();
|
2018-07-06 17:08:20 +01:00
|
|
|
void newSign();
|
|
|
|
void newHiddenItem();
|
|
|
|
void newSecretBase();
|
|
|
|
signals:
|
|
|
|
void newEventAdded(QString);
|
2021-02-18 00:20:14 +00:00
|
|
|
|
2018-07-06 17:08:20 +01:00
|
|
|
private:
|
|
|
|
QString selectedEventType;
|
2018-09-25 01:46:09 +01:00
|
|
|
void init();
|
2018-07-06 17:08:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NEWEVENTTOOLBUTTON_H
|