2018-07-06 17:08:20 +01:00
|
|
|
#ifndef NEWEVENTTOOLBUTTON_H
|
|
|
|
#define NEWEVENTTOOLBUTTON_H
|
|
|
|
|
|
|
|
#include "event.h"
|
|
|
|
#include <QToolButton>
|
|
|
|
|
|
|
|
class NewEventToolButton : public QToolButton
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2018-09-15 00:37:44 +01:00
|
|
|
explicit NewEventToolButton(QWidget *parent = nullptr);
|
2018-07-06 17:08:20 +01:00
|
|
|
QString getSelectedEventType();
|
2020-03-12 16:30:37 +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);
|
|
|
|
private:
|
|
|
|
QString selectedEventType;
|
2018-09-25 01:46:09 +01:00
|
|
|
void init();
|
2018-07-06 17:08:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NEWEVENTTOOLBUTTON_H
|