1 /*
2     SPDX-FileCopyrightText: 2009 Frederik Gladhorn <gladhorn@kde.org>
3     SPDX-License-Identifier: GPL-2.0-or-later
4 */
5 
6 #ifndef PARLEYACTIONS_H
7 #define PARLEYACTIONS_H
8 
9 #include <QAction>
10 
11 class KActionCollection;
12 class KRecentFilesAction;
13 
14 ///@brief contains all parley actions
15 namespace ParleyActions
16 {
17 enum ParleyAction {
18     FileNew,
19     FileOpen,
20     FileOpenDownloaded,
21     FileSave,
22     FileSaveAs,
23     FileExport,
24     FileProperties,
25     FileClose,
26     FileQuit,
27     Preferences,
28     LanguagesProperties,
29     RemoveGrades,
30     CheckSpelling,
31     ToggleShowSublessons,
32     AutomaticTranslation,
33     StartPractice,
34     ConfigurePractice,
35     ExportPracticeResults,
36     EnterEditMode,
37     ToggleSearchBar,
38     SearchVocabulary,
39 };
40 
41 QAction *create(ParleyAction id, const QObject *recvr, const char *slot, KActionCollection *parent);
42 
43 KRecentFilesAction *createRecentFilesAction(const QObject *recvr, const char *slot, QObject *parent);
44 
45 QAction *createDownloadAction(const QObject *recvr, const char *slot, KActionCollection *collection);
46 }
47 
48 #endif
49