BALL  1.5.0
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 
22 namespace 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 
BALL::String
Definition: string.h:56
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition: embeddable.h:31
BALL::VIEW::PreferencesEntry
Definition: preferencesEntry.h:68
BALL::VIEW::MainControl
Definition: mainControl.h:114
BALL
Definition: constants.h:12
modularWidget.h
QWidget
shortcutRegistry.h
preferencesEntry.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
BALL::VIEW::ShortcutDialog
Definition: shortcutDialog.h:31
BALL::VIEW::ModularWidget
Definition: modularWidget.h:60