00001
00002
00003
00004
00005
00006 #ifndef BALL_VIEW_DIALOGS_SHORTCUTDIALOG_H
00007 #define BALL_VIEW_DIALOGS_SHORTCUTDIALOG_H
00008
00009 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
00010 # include <BALL/VIEW/KERNEL/preferencesEntry.h>
00011 #endif
00012
00013 #ifndef BALL_VIEW_KERNEL_SHORTCUTREGISTRY_H
00014 # include <BALL/VIEW/KERNEL/shortcutRegistry.h>
00015 #endif
00016
00017 #ifndef BALL_VIEW_KERNEL_MAINCONTROL_H
00018 # include <BALL/VIEW/KERNEL/mainControl.h>
00019 #endif
00020
00021 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
00022 # include <BALL/VIEW/KERNEL/modularWidget.h>
00023 #endif
00024
00025 #ifdef BALL_COMPILER_MSVC
00026 # include <BALL/VIEW/UIC/ui_shortcutDialog.h>
00027 #else
00028 # include <BALL/VIEW/UIC/shortcutDialogData.h>
00029 #endif
00030
00031 namespace BALL
00032 {
00033 namespace VIEW
00034 {
00038 class BALL_VIEW_EXPORT ShortcutDialog
00039 : public QWidget,
00040 public Ui_ShortcutDialogData,
00041 public ModularWidget,
00042 public PreferencesEntry
00043 {
00044
00045 Q_OBJECT
00046
00047 BALL_EMBEDDABLE(ShortcutDialog,ModularWidget)
00048
00049 public:
00050
00052 ShortcutDialog(QWidget* parent = NULL, const char* name = "ShortcutDialog", Qt::WFlags fl = 0 );
00053
00055 virtual ~ShortcutDialog();
00056
00057
00063 virtual void initializeWidget(MainControl& main_control);
00064
00065 public slots:
00066 virtual void searchTextChanged(QString filter);
00067
00068 protected slots:
00069 virtual void browseImportFile_();
00070 virtual void browseExportFile_();
00071
00072 virtual void shortcutChanged_();
00073
00074 void loadPredefinedShortcuts_(QString entry);
00075 void loadShortcutsFromFile_(const String& filename);
00076 };
00077
00078 }
00079 }
00080
00081 #endif //BALL_VIEW_DIALOGS_SHORTCUTDIALOG_H
00082