• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • dialogs
kshortcutsdialog.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 1997 Nicolas Hadacek <hadacek@kde.org>
3  Copyright (C) 2001,2001 Ellis Whitehead <ellis@kde.org>
4  Copyright (C) 2006 Hamish Rodda <rodda@kde.org>
5  Copyright (C) 2007 Roberto Raggi <roberto@kdevelop.org>
6  Copyright (C) 2007 Andreas Hartmetz <ahartmetz@gmail.com>
7  Copyright (C) 2008 Michael Jansen <kde@michael-jansen.biz>
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Library General Public
11  License as published by the Free Software Foundation; either
12  version 2 of the License, or (at your option) any later version.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Library General Public License for more details.
18 
19  You should have received a copy of the GNU Library General Public License
20  along with this library; see the file COPYING.LIB. If not, write to
21  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  Boston, MA 02110-1301, USA.
23 */
24 
25 
26 #ifndef KSHORTCUTSDIALOG_H
27 #define KSHORTCUTSDIALOG_H
28 
29 #include <kdialog.h>
30 
31 #include "kshortcutseditor.h"
32 
69 class KDEUI_EXPORT KShortcutsDialog : public KDialog
70 {
71  Q_OBJECT
72 
73 public:
79  explicit KShortcutsDialog(KShortcutsEditor::ActionTypes types = KShortcutsEditor::AllActions,
80  KShortcutsEditor::LetterShortcuts allowLetterShortcuts = KShortcutsEditor::LetterShortcutsAllowed,
81  QWidget *parent = 0);
82 
86  virtual ~KShortcutsDialog();
87 
95  void addCollection(KActionCollection *, const QString &title = QString());
96 
100  QList<KActionCollection*> actionCollections() const;
101 
106  bool configure(bool saveSettings = true);
107 
109  virtual QSize sizeHint() const;
110 
124  static int configure( KActionCollection *collection, KShortcutsEditor::LetterShortcuts allowLetterShortcuts =
125  KShortcutsEditor::LetterShortcutsAllowed, QWidget* parent = 0, bool bSaveSettings = true);
126 
127 Q_SIGNALS:
131  void saved();
132 
133 private:
134  Q_PRIVATE_SLOT(d, void changeShortcutScheme(const QString &))
135  Q_PRIVATE_SLOT(d, void save())
136  Q_PRIVATE_SLOT(d, void undoChanges())
137 
138  class KShortcutsDialogPrivate;
139  friend class KShortcutsDialogPrivate;
140  class KShortcutsDialogPrivate *const d;
141 
142  Q_DISABLE_COPY(KShortcutsDialog)
143 };
144 
145 #endif // KSHORTCUTSDIALOG_H
146 
147 //kate: space-indent off; indent-width 4; replace-tabs off;tab-width 4;
kdialog.h
KActionCollection
A container for a set of QAction objects.
Definition: kactioncollection.h:56
QWidget
KShortcutsEditor::AllActions
All actions.
Definition: kshortcutseditor.h:75
KShortcutsEditor::LetterShortcuts
LetterShortcuts
Definition: kshortcutseditor.h:79
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:128
kshortcutseditor.h
KStandardGuiItem::configure
KGuiItem configure()
Returns the 'Configure' gui item.
Definition: kstandardguiitem.cpp:269
QString
QList< KActionCollection * >
QSize
KShortcutsEditor::LetterShortcutsAllowed
Letter shortcuts are allowed.
Definition: kshortcutseditor.h:86
KDialog::sizeHint
virtual QSize sizeHint() const
Reimplemented from QDialog.
Definition: kdialog.cpp:359
KStandardAction::save
KAction * save(const QObject *recvr, const char *slot, QObject *parent)
Save the current document.
Definition: kstandardaction.cpp:244
KShortcutsDialog
Dialog for configuration of KActionCollection and KGlobalAccel.
Definition: kshortcutsdialog.h:69
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal