From 7167ce41b61d2ba2cdb526777a4233eb84a3b66a Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 6 Dec 2014 17:33:25 -0500 Subject: Imported Upstream version 2.99.6 --- SQLiteStudio3/guiSQLiteStudio/actionentry.h | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 SQLiteStudio3/guiSQLiteStudio/actionentry.h (limited to 'SQLiteStudio3/guiSQLiteStudio/actionentry.h') diff --git a/SQLiteStudio3/guiSQLiteStudio/actionentry.h b/SQLiteStudio3/guiSQLiteStudio/actionentry.h new file mode 100644 index 0000000..861cffb --- /dev/null +++ b/SQLiteStudio3/guiSQLiteStudio/actionentry.h @@ -0,0 +1,30 @@ +#ifndef ACTIONENTRY_H +#define ACTIONENTRY_H + +#include "dbtree/dbtree.h" +#include +#include + +struct GUI_API_EXPORT ActionEntry +{ + enum class Type + { + SINGLE, + SUB_MENU + }; + + QString subMenuLabel; + QIcon subMenuIcon; + QList actions; + DbTree::Action action; + Type type; + + ActionEntry(const DbTree::Action &action); + ActionEntry(const QString& subMenuLabel); + ActionEntry(const Icon& icon, const QString& subMenuLabel); + ActionEntry(const QIcon& icon, const QString& subMenuLabel); + ActionEntry& operator=(const DbTree::Action& action); + ActionEntry& operator+=(const DbTree::Action& action); +}; + +#endif // ACTIONENTRY_H -- cgit v1.2.3