BALL 1.5.0
Loading...
Searching...
No Matches
shortcutDialog.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4
5#ifndef BALL_VIEW_DIALOGS_SHORTCUTDIALOG_H
6#define BALL_VIEW_DIALOGS_SHORTCUTDIALOG_H
7
8#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
10#endif
11
12#ifndef BALL_VIEW_KERNEL_SHORTCUTREGISTRY_H
14#endif
15
16#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
18#endif
19
20#include <BALL/VIEW/UIC/ui_shortcutDialog.h>
21
22namespace BALL
23{
24 namespace VIEW
25 {
26 class MainControl;
27
32 : public QWidget,
33 public Ui_ShortcutDialogData,
34 public ModularWidget,
35 public PreferencesEntry
36 {
37 // macro needed for Qt's slot mechanism:
38 Q_OBJECT
39
41
42 public:
43
45 ShortcutDialog(QWidget* parent = NULL, const char* name = "ShortcutDialog", Qt::WindowFlags fl = 0 );
46
48 virtual ~ShortcutDialog();
49
50
56 virtual void initializeWidget(MainControl& main_control);
57
58 public Q_SLOTS:
59 virtual void searchTextChanged(QString filter);
60
61 protected Q_SLOTS:
62 virtual void browseImportFile_();
63 virtual void browseExportFile_();
64
65 virtual void shortcutChanged_();
66
67 void loadPredefinedShortcuts_(QString entry);
68 void loadShortcutsFromFile_(const String& filename);
69 };
70
71 }
72}
73
74#endif //BALL_VIEW_DIALOGS_SHORTCUTDIALOG_H
75
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
virtual void browseImportFile_()
virtual void browseExportFile_()
virtual void searchTextChanged(QString filter)
virtual ~ShortcutDialog()
Destructor.
virtual void initializeWidget(MainControl &main_control)
void loadPredefinedShortcuts_(QString entry)
ShortcutDialog(QWidget *parent=NULL, const char *name="ShortcutDialog", Qt::WindowFlags fl=0)
Constructor.
void loadShortcutsFromFile_(const String &filename)
virtual void shortcutChanged_()
#define BALL_VIEW_EXPORT