mirror of
https://invent.kde.org/network/falkon.git
synced 2024-09-23 02:32:10 +02:00
124 lines
3.5 KiB
C
124 lines
3.5 KiB
C
|
/* ============================================================
|
||
|
* QupZilla - WebKit based browser
|
||
|
* Copyright (C) 2010-2013 David Rosca <nowrep@gmail.com>
|
||
|
* Copyright (C) 2013 S. Razi Alavizadeh <s.r.alavizadeh@gmail.com>
|
||
|
*
|
||
|
* 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 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
* ============================================================ */
|
||
|
#ifndef MACMENURECEIVER_H
|
||
|
#define MACMENURECEIVER_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
#include "qz_namespace.h"
|
||
|
|
||
|
class QWebFrame;
|
||
|
class Menu;
|
||
|
class QMenu;
|
||
|
|
||
|
class QT_QUPZILLA_EXPORT MacMenuReceiver : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
MacMenuReceiver(QObject* parent = 0);
|
||
|
|
||
|
private:
|
||
|
void setDisabledSelectedMenuActions(QMenu* menu, const QList<int> indexList = QList<int>());
|
||
|
bool callSlot(const char *member, bool makeIfNoWindow = false,
|
||
|
QGenericArgument val0 = QGenericArgument(0),
|
||
|
QGenericArgument val1 = QGenericArgument());
|
||
|
|
||
|
private slots:
|
||
|
void goNext();
|
||
|
void goBack();
|
||
|
void goHome();
|
||
|
void stop();
|
||
|
void reload();
|
||
|
void reloadByPassCache();
|
||
|
void aboutQupZilla();
|
||
|
void addTab();
|
||
|
void savePageScreen();
|
||
|
|
||
|
void aboutToShowFileMenu();
|
||
|
void aboutToHideFileMenu();
|
||
|
void aboutToShowHistoryMenu();
|
||
|
void aboutToHideHistoryMenu();
|
||
|
void aboutToShowClosedTabsMenu();
|
||
|
void aboutToShowBookmarksMenu();
|
||
|
void aboutToShowViewMenu();
|
||
|
void aboutToHideViewMenu();
|
||
|
void aboutToShowEditMenu();
|
||
|
void aboutToHideEditMenu();
|
||
|
void aboutToShowToolsMenu();
|
||
|
void aboutToHideToolsMenu();
|
||
|
void aboutToShowEncodingMenu();
|
||
|
|
||
|
void searchOnPage();
|
||
|
void showCookieManager();
|
||
|
void showHistoryManager();
|
||
|
void showBookmarksManager();
|
||
|
void showRSSManager();
|
||
|
void showDownloadManager();
|
||
|
void showMenubar();
|
||
|
void showNavigationToolbar();
|
||
|
void showStatusbar();
|
||
|
void showClearPrivateData();
|
||
|
void aboutToShowHistoryRecentMenu();
|
||
|
void aboutToShowHistoryMostMenu();
|
||
|
void showPreferences();
|
||
|
void showBookmarkImport();
|
||
|
|
||
|
void refreshHistory();
|
||
|
void bookmarkAllTabs();
|
||
|
void newWindow();
|
||
|
|
||
|
void openLocation();
|
||
|
void openFile();
|
||
|
void savePage();
|
||
|
void sendLink();
|
||
|
void webSearch();
|
||
|
|
||
|
// Edit menu actions
|
||
|
void editUndo();
|
||
|
void editRedo();
|
||
|
void editCut();
|
||
|
void editCopy();
|
||
|
void editPaste();
|
||
|
void editSelectAll();
|
||
|
|
||
|
void zoomIn();
|
||
|
void zoomOut();
|
||
|
void zoomReset();
|
||
|
void fullScreen(bool make);
|
||
|
void changeEncoding(QObject *obj = 0);
|
||
|
|
||
|
void triggerCaretBrowsing();
|
||
|
|
||
|
void closeWindow();
|
||
|
void quitApp();
|
||
|
|
||
|
void printPage(QWebFrame* frame = 0);
|
||
|
void showBookmarksToolbar();
|
||
|
void showSource(QWebFrame* frame = 0, const QString &selectedHtml = QString());
|
||
|
void bookmarkPage();
|
||
|
void showPageInfo();
|
||
|
void showWebInspector(bool toggle = true);
|
||
|
|
||
|
void loadActionUrl(QObject* obj = 0);
|
||
|
void loadActionUrlInNewTab(QObject* obj = 0);
|
||
|
void loadActionUrlInNewNotSelectedTab(QObject* obj = 0);
|
||
|
void loadFolderBookmarks(Menu* menu);
|
||
|
};
|
||
|
#endif // MACMENURECEIVER_H
|