File indexing completed on 2024-04-14 03:49:15

0001 /*
0002     SPDX-FileCopyrightText: 2009 Frederik Gladhorn <gladhorn@kde.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef PARLEYACTIONS_H
0007 #define PARLEYACTIONS_H
0008 
0009 #include <QAction>
0010 
0011 class KActionCollection;
0012 class KRecentFilesAction;
0013 
0014 ///@brief contains all parley actions
0015 namespace ParleyActions
0016 {
0017 enum ParleyAction {
0018     FileNew,
0019     FileOpen,
0020     FileOpenDownloaded,
0021     FileSave,
0022     FileSaveAs,
0023     FileExport,
0024     FileProperties,
0025     FileClose,
0026     FileQuit,
0027     Preferences,
0028     LanguagesProperties,
0029     RemoveGrades,
0030     CheckSpelling,
0031     ToggleShowSublessons,
0032     AutomaticTranslation,
0033     StartPractice,
0034     ConfigurePractice,
0035     ExportPracticeResults,
0036     EnterEditMode,
0037     ToggleSearchBar,
0038     SearchVocabulary,
0039 };
0040 
0041 QAction *create(ParleyAction id, const QObject *recvr, const char *slot, KActionCollection *parent);
0042 
0043 KRecentFilesAction *createRecentFilesAction(const QObject *recvr, const char *slot, QObject *parent);
0044 }
0045 
0046 #endif