1 #ifndef uishortcutsmgr_h 2 #define uishortcutsmgr_h 15 #include "uibasemod.h" 33 uiKeyDesc(
const char* statestr=0,
const char* keystr=0);
39 bool set(
const char* statestr,
const char* keystr);
46 virtual int key()
const {
return key_; }
48 char asciiChar()
const;
49 bool isSimpleAscii()
const;
51 static const char** sKeyKeyStrs();
52 const char* stateStr()
const;
53 const char* keyStr()
const;
62 void handleSpecialKey(
const char*);
74 uiShortcutsList& operator =(
const uiShortcutsList&);
75 bool write(
bool usr=
true)
const;
83 const uiKeyDesc* keyDescOf(
const char*)
const;
98 bool getKeyValues(
const IOPar&,
int,
101 bool getSCProperties(
const IOPar&,
int,
122 IOPar* getStored(
const char*);
123 bool putStored(
const char*,
const IOPar&);
132 const char* keystr=0,
137 {
return key_==ev.
key_ && state_==ev.
state_ &&
140 bool set(
const char* statestr,
const char* keystr,
int val);
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
BufferStringSet names_
Definition: uishortcutsmgr.h:96
OD::ButtonState state() const
Definition: uishortcutsmgr.h:42
Definition: uishortcutsmgr.h:30
#define mQtclass(cls)
Definition: commondefs.h:229
Notifier< uiShortcutsMgr > shortcutsChanged
Definition: uishortcutsmgr.h:114
#define mGlobal(module)
Definition: commondefs.h:163
Definition: uistring.h:89
Definition: uishortcutsmgr.h:106
Set of BufferString objects.
Definition: bufstringset.h:28
friend class uiShortcutsList
Definition: uishortcutsmgr.h:121
Definition: uishortcutsmgr.h:67
uiShortcutsList(const uiShortcutsList &scl)
Definition: uishortcutsmgr.h:71
bool operator==(const uiKeyDesc &ev) const
Definition: uishortcutsmgr.h:36
ButtonState
Definition: keyenum.h:20
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
const ObjectSet< uiKeyDesc > & keyDescs() const
Definition: uishortcutsmgr.h:80
ObjectSet< uiKeyDesc > keydescs_
Definition: uishortcutsmgr.h:95
BufferString selkey_
Definition: uishortcutsmgr.h:94
virtual ~uiKeyDesc()
Definition: uishortcutsmgr.h:34
BufferStringSet & names()
Definition: uishortcutsmgr.h:81
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
bool setList(const uiShortcutsList &, bool usr=true)
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
virtual int key() const
Definition: uishortcutsmgr.h:46
OD::ButtonState state_
Definition: uishortcutsmgr.h:60
void setKey(int k)
Definition: uishortcutsmgr.h:47
mFDQtclass(QKeyEvent) class uiShortcutsMgr
ObjectSet< uiShortcutsList > lists_
Definition: uishortcutsmgr.h:119
uiShortcutsMgr & SCMgr()
This is where you get your shortcuts.
int key_
Definition: uishortcutsmgr.h:59
const BufferStringSet & names() const
Definition: uishortcutsmgr.h:82
const char * nameOf(ButtonState)
void setState(OD::ButtonState bs)
Definition: uishortcutsmgr.h:43
~uiShortcutsList()
Definition: uishortcutsmgr.h:73
const uiShortcutsList & getList(const char *key) const
BufferStringSet keys_
Definition: uishortcutsmgr.h:118
ObjectSet< uiKeyDesc > & keyDescs()
Definition: uishortcutsmgr.h:79