47 enum ActionDirection {
48 ActionDirectionAToFromB,
50 ActionDirectionAFromB,
51 ActionDirectionAToFromAny,
52 ActionDirectionAToAny,
53 ActionDirectionAFromAny,
54 ActionDirectionAnyToFromB,
55 ActionDirectionAnyToB,
56 ActionDirectionAnyFromB
59 explicit FilterAction(QObject *parent, Action action, ActionType type, QString actionName);
60 explicit FilterAction(QObject *parent, Action action, ActionType type, ActionDirection direction);
61 explicit FilterAction(QObject *parent, Action action, ActionType type);
64 Action action() {
return action_; }
65 static const QList<Action> actions();
66 static const QString actionName(Action action);
68 ActionType actionType() {
return type_; }
69 static const QList<ActionType> actionTypes(Action filter_action = ActionApply);
70 static const QString actionTypeName(ActionType type);
72 ActionDirection actionDirection() {
return direction_; }
73 static const QList<ActionDirection> actionDirections();
74 static const QString actionDirectionName(ActionDirection direction);
76 static QActionGroup * createFilterGroup(QString filter,
bool prepare,
bool enabled, QWidget * parent);
77 static QMenu * createFilterMenu(FilterAction::Action act, QString filter,
bool enabled, QWidget * parent);
78 static QAction * copyFilterAction(QString filter, QWidget *par);
87 ActionDirection direction_;
92 void groupTriggered(QAction *);
93 void copyActionTriggered();