~ubuntu-branches/ubuntu/jaunty/kde4libs/jaunty-updates

« back to all changes in this revision

Viewing changes to kdeui/shortcuts/kglobalaccel.h

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2008-12-11 18:26:08 UTC
  • mfrom: (1.1.24 upstream)
  • Revision ID: james.westby@ubuntu.com-20081211182608-tsu6p8ncbw1gnqxt
Tags: 4:4.1.85-0ubuntu1
* New upstream release
* Patches:
  + Removed 15_kfreebsd_support.diff from patches/series (doesn't apply and
    has no use for Ubuntu)
  + Redid 20_use_dejavu_as_default_font.diff
  + Completely removed kubuntu_09_fix_application_menu.diff (applied upstream)
  + Refreshed kubuntu_54_use_xdg_menu_prefix.diff
  + Dropped plasma/widgets/toolbutton.cpp from kubuntu_qt_ftbfs.diff (applied
    upstream)
  + Global quilt refresh

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
public:
50
50
 
51
51
    /**
 
52
     * Index for actionId QStringLists
 
53
     */
 
54
    enum actionIdFields
 
55
    {
 
56
        ComponentUnique = 0,        //!< Components Unique Name (ID)
 
57
        ActionUnique = 1,           //!< Actions Unique Name(ID)
 
58
        ComponentFriendly = 2,      //!< Components Friendly Translated Name
 
59
        ActionFriendly = 3          //!< Actions Friendly Translated Name
 
60
    };
 
61
 
 
62
    /**
52
63
     * Returns (and creates if necessary) the singleton instance
53
64
     */
54
65
    static KGlobalAccel *self();
55
66
 
56
67
    /**
57
 
     * Checks whether the accelerators are enabled.
58
 
     *
59
 
     * @Bug: enabling / disabling has currently no effect.
60
 
     *
61
 
     * @return true if the KGlobalAccel is enabled
62
 
     */
63
 
    bool isEnabled() const;
64
 
 
65
 
    /**
66
 
     * Enables or disables the KGlobalAccel
67
 
     * @param enabled true if the KGlobalAccel should be enabled, false if it
68
 
     *  should be disabled.
69
 
     */
70
 
    void setEnabled(bool enabled);
71
 
 
72
 
    /**
73
68
     * Take away the given shortcut from the named action it belongs to.
74
69
     * This applies to all actions with global shortcuts in any KDE application.
75
70
     *
133
128
            const QKeySequence &seq);
134
129
 
135
130
    /**
 
131
     * No effect.
 
132
     *
 
133
     * @deprecated
 
134
     */
 
135
    KDE_DEPRECATED bool isEnabled() const;
 
136
 
 
137
    /**
 
138
     * No effect.
 
139
     *
 
140
     * @deprecated
 
141
     */
 
142
    KDE_DEPRECATED void setEnabled(bool enabled);
 
143
 
 
144
    /**
136
145
     * Set the KComponentData for which to manipulate shortcuts. This is for exceptional
137
146
     * situations, when you want to modify the shortcuts of another application
138
147
     * as if they were yours.
145
154
     *
146
155
     * @param componentData a KComponentData about the application for which you want to
147
156
     *                      manipulate shortcuts.
 
157
     *
 
158
     * @deprecated
148
159
     */
149
160
    KDE_DEPRECATED void overrideMainComponentData(const KComponentData &componentData);
150
161
 
151
162
    /**
152
163
     * Return the unique and common names of all main components that have global shortcuts.
153
164
     * The action strings of the returned actionId stringlists will be empty.
 
165
     *
 
166
     * @deprecated
154
167
     */
155
168
    KDE_DEPRECATED QList<QStringList> allMainComponents();
156
169
 
157
170
    /**
158
 
     * Index for actionId QStringLists
159
 
     */
160
 
    enum actionIdFields
161
 
    {
162
 
        ComponentUnique = 0,        //!< Components Unique Name (ID)
163
 
        ActionUnique = 1,           //!< Actions Unique Name(ID)
164
 
        ComponentFriendly = 2,      //!< Components Friendly Translated Name
165
 
        ActionFriendly = 3          //!< Actions Friendly Translated Name
166
 
    };
167
 
 
168
 
    /**
169
171
     * @see getGlobalShortcutsByComponent
 
172
     *
 
173
     * @deprecated
170
174
     */
171
175
    KDE_DEPRECATED QList<QStringList> allActionsForComponent(const QStringList &actionId);
172
176
 
173
177
    /**
174
178
     * @see getGlobalShortcutsByKey
 
179
     *
 
180
     * @deprecated
175
181
     */
176
182
    KDE_DEPRECATED static QStringList findActionNameSystemwide(const QKeySequence &seq);
177
183
 
178
184
    /**
179
185
     * @see promptStealShortcutSystemwide below
 
186
     *
 
187
     * @deprecated
180
188
     */
181
189
    KDE_DEPRECATED static bool promptStealShortcutSystemwide(QWidget *parent, const QStringList &actionIdentifier, const QKeySequence &seq);
182
190