/*************************************************************************** Copyright 2009 Frederik Gladhorn ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef PARLEYACTIONS_H #define PARLEYACTIONS_H #include #include class KActionCollection; namespace ParleyActions { enum ParleyAction { FileNew, FileOpen, FileOpenDownloaded, FileSave, FileSaveAs, FileExport, FileProperties, FileClose, FileQuit, Preferences, LanguagesProperties, RemoveGrades, CheckSpelling, ToggleShowSublessons, AutomaticTranslation, StartPractice, ConfigurePractice, EnterEditMode, ToggleSearchBar, SearchVocabulary, ShowScriptManager }; KAction* create(ParleyAction id, const QObject *recvr, const char *slot, QObject *parent); KRecentFilesAction* createRecentFilesAction(const QObject *recvr, const char *slot, QObject *parent); KAction* createDownloadAction(const QObject *recvr, const char *slot, KActionCollection *collection); KAction* createUploadAction(const QObject *recvr, const char *slot, KActionCollection *collection); } #endif