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

KDEUI

  • 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
69class KDEUI_EXPORT KShortcutsDialog : public KDialog
70{
71 Q_OBJECT
72
73public:
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
127Q_SIGNALS:
131 void saved();
132
133private:
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;
KActionCollection
A container for a set of QAction objects.
Definition: kactioncollection.h:57
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:129
KShortcutsDialog
Dialog for configuration of KActionCollection and KGlobalAccel.
Definition: kshortcutsdialog.h:70
KShortcutsDialog::saved
void saved()
emitted after ok is clicked and settings are saved
KShortcutsEditor::LetterShortcuts
LetterShortcuts
Definition: kshortcutseditor.h:79
KShortcutsEditor::LetterShortcutsAllowed
@ LetterShortcutsAllowed
Letter shortcuts are allowed.
Definition: kshortcutseditor.h:86
KShortcutsEditor::AllActions
@ AllActions
All actions.
Definition: kshortcutseditor.h:75
QList
QWidget
kdialog.h
kshortcutseditor.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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