porymap/include/ui/neweventtoolbutton.h

38 lines
869 B
C
Raw Normal View History

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();
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();
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