26 #ifndef QTXMRUACTION_H
27 #define QTXMRUACTION_H
31 #include <QStringList>
36 #pragma warning( disable:4251 )
45 typedef enum { MoveFirst,
62 int insertMode()
const;
63 void setInsertMode(
const int );
66 void setLinkType(
const int );
71 int visibleCount()
const;
72 void setVisibleCount(
const int );
74 bool isClearPossible()
const;
75 void setClearPossible(
const bool );
77 int historyCount()
const;
78 void setHistoryCount(
const int );
80 void remove(
const int );
81 void remove(
const QString& );
82 void insert(
const QString& );
84 QString item(
const int )
const;
85 int find(
const QString& )
const;
86 bool contains(
const QString& )
const;
88 virtual void loadLinks(
QtxResourceMgr*,
const QString&,
const bool =
true );
89 virtual void saveLinks(
QtxResourceMgr*,
const QString&,
const bool =
true )
const;
100 void onCleared(
bool );
#define QTX_EXPORT
Definition: Qtx.h:36
For more information see QT documentation.
Definition: SUIT_Application.h:42
Generic action class.
Definition: QtxAction.h:39
Menu action which provides most recent used items support.
Definition: QtxMRUAction.h:40
@ LinkShort
put the only file name of link into the menu
Definition: QtxMRUAction.h:52
@ LinkAuto
put the full path of link into the menu if link file names of severals link are same
Definition: QtxMRUAction.h:51
@ AddFirst
if specified item doesn't exist, add it to the beginning
Definition: QtxMRUAction.h:47
@ MoveLast
put the specified item to the end
Definition: QtxMRUAction.h:46
int myInsertMode
items insertion policy
Definition: QtxMRUAction.h:111
int myVisCount
number of visible MRU items
Definition: QtxMRUAction.h:108
QAction * myClear
clear item
Definition: QtxMRUAction.h:107
QStringList myLinks
most recent used items
Definition: QtxMRUAction.h:106
int myHistoryCount
number of stored MRU items
Definition: QtxMRUAction.h:109
int myLinkType
type of link names in menu
Definition: QtxMRUAction.h:110
void activated(const QString &)
Emitted when user selects any MRU item in the menu.
Application resources manager.
Definition: QtxResourceMgr.h:53