28 #include "scribusapi.h"
38 typedef enum {Normal, DataInt, DataDouble, DataQString, RecentFile, DLL, Window, RecentScript, UnicodeChar, Layer, ActionDLL, RecentPaste, ActionDLLSE } ActionType;
56 ScrAction(
const QString &menuText, QKeySequence accel, QObject *parent );
73 const QString &menuText, QKeySequence accel, QObject *parent, QVariant d = QVariant());
74 ScrAction( ActionType aType,
const QPixmap & icon16,
const QPixmap & icon22,
75 const QString &menuText, QKeySequence accel, QObject *parent, QVariant d = QVariant());
85 ScrAction(
const QPixmap & icon16,
const QPixmap & icon22,
const QString & menuText, QKeySequence accel, QObject *parent );
95 ScrAction( QKeySequence accel, QObject *parent, QVariant data = QVariant());
104 int getMenuIndex()
const;
112 QString cleanMenuText();
114 void setToolTipFromTextAndShortcut();
115 void setStatusTextAndShortcut(
const QString& statusText);
123 bool isDLLAction()
const;
140 void setToggleAction(
bool isToggle,
bool fakeToggle=
false);
153 void restoreShortcut();
159 ActionType actionType();
165 int actionInt()
const;
166 double actionDouble()
const;
167 const QString actionQString();
168 void setActionQString(
const QString &);
171 void setTexts(
const QString &newText);
177 void triggeredData(QVariant);
178 void triggeredData(
int);
179 void triggeredData(
double);
180 void triggeredData(QString);
183 void toggledData(
bool,
int);
184 void toggledData(
bool,
double);
185 void toggledData(
bool, QString);
186 void triggeredUnicodeShortcut(
int);
189 void initScrAction();
191 ActionType _actionType;
192 QMenu *popupMenuAddedTo;
193 QKeySequence savedKeySequence;
205 void addedTo(
int index, QMenu * menu );
213 void triggeredToTriggeredData();
220 void toggledToToggledData(
bool ison);
the Document Class
Definition: scribusdoc.h:90
Definition: scraction.h:33