1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#include "KeysPlugin.h"
#include "KeysPage.h"
#include "Log.h"
#include "CommandStorageInt.h"
KeysPlugin::KeysPlugin() : QObject(), JuffPlugin() {
w_ = 0;
}
KeysPlugin::~KeysPlugin() {
delete w_;
}
void KeysPlugin::init() {
w_ = new KeysPage(api()->commandStorage());
}
void KeysPlugin::allPluginsLoaded() {
// LOGGER;
w_->init();
}
QString KeysPlugin::name() const {
return "Keybindings";
}
QString KeysPlugin::title() const {
return tr("Key bindings");
}
QString KeysPlugin::targetEngine() const {
return "all";
}
QString KeysPlugin::description() const {
return "Allows you to configure shortcuts";
}
QWidget* KeysPlugin::settingsPage() const {
return w_;
}
void KeysPlugin::applySettings() {
// LOGGER;
w_->apply();
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(keybindings, KeysPlugin)
#endif
|