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::VIEW::ShortcutDialog::~ShortcutDialog
virtual ~ShortcutDialog()
Destructor.
BALL::VIEW::ShortcutDialog::browseExportFile_
virtual void browseExportFile_()
BALL::VIEW::ShortcutDialog::initializeWidget
virtual void initializeWidget(MainControl &main_control)
BALL::String
Definition: string.h:57
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition: embeddable.h:31
BALL::VIEW::PreferencesEntry
Definition: preferencesEntry.h:69
BALL::VIEW::MainControl
Definition: mainControl.h:118
BALL
Definition: constants.h:13
QWidget
BALL::VIEW::ShortcutDialog::shortcutChanged_
virtual void shortcutChanged_()
BALL::VIEW::ShortcutDialog::searchTextChanged
virtual void searchTextChanged(QString filter)
modularWidget.h
BALL::VIEW::ShortcutDialog::loadPredefinedShortcuts_
void loadPredefinedShortcuts_(QString entry)
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
BALL::VIEW::ShortcutDialog::browseImportFile_
virtual void browseImportFile_()
shortcutRegistry.h
preferencesEntry.h
BALL::VIEW::ShortcutDialog
Definition: shortcutDialog.h:36
BALL::VIEW::ShortcutDialog::ShortcutDialog
ShortcutDialog(QWidget *parent=NULL, const char *name="ShortcutDialog", Qt::WindowFlags fl=0)
Constructor.
BALL::VIEW::ModularWidget
Definition: modularWidget.h:63
BALL::VIEW::ShortcutDialog::loadShortcutsFromFile_
void loadShortcutsFromFile_(const String &filename)