2013-08-09 04:57:18 +00:00
|
|
|
#ifndef _LC_SHORTCUTS_H_
|
|
|
|
#define _LC_SHORTCUTS_H_
|
|
|
|
|
|
|
|
#include "lc_commands.h"
|
|
|
|
|
2015-09-27 07:02:57 +00:00
|
|
|
class lcKeyboardShortcuts
|
2013-08-09 04:57:18 +00:00
|
|
|
{
|
2015-09-27 07:02:57 +00:00
|
|
|
public:
|
|
|
|
void Reset();
|
|
|
|
bool Save(const QString& FileName);
|
|
|
|
bool Save(QTextStream& Stream);
|
|
|
|
bool Load(const QString& FileName);
|
|
|
|
bool Load(QTextStream& Stream);
|
|
|
|
|
|
|
|
QString mShortcuts[LC_NUM_COMMANDS];
|
2013-08-09 04:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern lcKeyboardShortcuts gKeyboardShortcuts;
|
|
|
|
|
|
|
|
void lcLoadDefaultKeyboardShortcuts();
|
|
|
|
void lcSaveDefaultKeyboardShortcuts();
|
|
|
|
void lcResetDefaultKeyboardShortcuts();
|
|
|
|
|
2016-04-23 00:17:33 +00:00
|
|
|
class lcMouseShortcuts
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void Reset();
|
2016-04-30 19:40:46 +00:00
|
|
|
bool Save(QStringList& Shortcuts);
|
|
|
|
bool Load(const QStringList& Shortcuts);
|
2016-04-23 00:17:33 +00:00
|
|
|
lcTool GetTool(Qt::MouseButton Button, Qt::KeyboardModifiers Modifiers) const;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
Qt::KeyboardModifiers Modifiers;
|
|
|
|
Qt::MouseButton Button;
|
|
|
|
}
|
|
|
|
mShortcuts[LC_NUM_TOOLS];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern lcMouseShortcuts gMouseShortcuts;
|
|
|
|
|
|
|
|
void lcLoadDefaultMouseShortcuts();
|
|
|
|
void lcSaveDefaultMouseShortcuts();
|
|
|
|
void lcResetDefaultMouseShortcuts();
|
|
|
|
|
2013-08-09 04:57:18 +00:00
|
|
|
#endif // _LC_SHORTCUTS_H_
|