Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 14609 → Rev 14610

/trunk/Scribus/scribus/ui/prefs_keyboardshortcuts.h
8,10 → 8,20
#ifndef PREFS_KEYBOARDSHORTCUTS_H
#define PREFS_KEYBOARDSHORTCUTS_H
 
#include <QMap>
#include <QPair>
#include <QString>
#include <QStringList>
#include <QKeyEvent>
#include <QEvent>
 
#include "ui_prefs_keyboardshortcutsbase.h"
#include "prefs_pane.h"
#include "scribusapi.h"
#include "scribusstructs.h"
 
class SCRIBUS_API Prefs_KeyboardShortcuts : public QWidget, Ui::Prefs_KeyboardShortcuts
 
class SCRIBUS_API Prefs_KeyboardShortcuts : public Prefs_Pane, Ui::Prefs_KeyboardShortcuts
{
Q_OBJECT
 
18,6 → 28,49
public:
Prefs_KeyboardShortcuts(QWidget* parent=0);
~Prefs_KeyboardShortcuts();
virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
 
bool event( QEvent* ev );
void keyPressEvent(QKeyEvent *k);
void keyReleaseEvent(QKeyEvent *k);
static QString getKeyText(int KeyC);
 
public slots:
void languageChange();
 
protected:
QMap<QString,Keys> keyMap;
QMap<QString,Keys>::Iterator currentKeyMapRow;
QMap<QString, QString> keySetList;
QMap<QTreeWidgetItem*, QString> lviToActionMap;
QList<QTreeWidgetItem*> lviToMenuMap;
QVector< QPair<QString, QStringList> >* defMenus;
QVector< QPair<QString, QStringList> >* defNonMenuActions;
QTreeWidgetItem * selectedLVI;
int keyCode;
QString Part0;
QString Part1;
QString Part2;
QString Part3;
QString Part4;
 
void insertActions();
void importKeySet(QString);
bool exportKeySet(QString);
QStringList scanForSets();
bool checkKey(int Code);
 
protected slots:
void setKeyText();
void dispKey(QTreeWidgetItem* current, QTreeWidgetItem* previous=0);
void setNoKey();
void loadKeySetFile();
void importKeySetFile();
void exportKeySetFile();
void resetKeySet();
void clearSearchString();
void applySearch( const QString & newss );
};
 
#endif // PREFS_KEYBOARDSHORTCUTS_H