6 | and are all available under the LGPL license.
7 | See the individual files for more.
8 |
--------------------------------------------------------------------------------
/konqueror/libkonq/KF5KonqConfig.cmake.in:
--------------------------------------------------------------------------------
1 | @PACKAGE_INIT@
2 |
3 | find_dependency(KF5XmlGui)
4 | find_dependency(KF5Config)
5 | find_dependency(KF5KIO)
6 | find_dependency(KF5CoreAddons)
7 | find_dependency(KF5Service)
8 | find_dependency(KF5Parts)
9 |
10 | include("${CMAKE_CURRENT_LIST_DIR}/KF5KonqTargets.cmake")
11 |
--------------------------------------------------------------------------------
/konqueror/libkonq/Mainpage.dox:
--------------------------------------------------------------------------------
1 | /** @mainpage libkonq
2 |
3 | Provides high-level file management functions, such as history,
4 | bookmarks, popup menus and undo functionality.
5 |
6 | See the class list for more information.
7 |
8 | See also the
9 | kfm-devel
10 | mailing list.
11 |
12 | @authors
13 | Torben Weis \
14 | David Faure \
15 | Simon Hausmann \
16 | Holger Freyther \
17 |
18 | @maintainers
19 | [Unknown/None]
20 |
21 | @licenses
22 | @gpl
23 | Some files: @lgpl
24 |
25 | */
26 |
27 | // DOXYGEN_SET_PROJECT_NAME = libkonq
28 | // vim:ts=4:sw=4:expandtab:filetype=doxygen
29 |
--------------------------------------------------------------------------------
/konqueror/libkonq/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env bash
2 | $XGETTEXT src/*.cpp src/*.h -o $podir/libkonq.pot
3 |
--------------------------------------------------------------------------------
/konqueror/libkonq/autotests/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
2 |
3 | find_package(Qt5Test CONFIG REQUIRED)
4 |
5 | include(ECMAddTests)
6 |
7 | ########### konqpopupmenutest ###############
8 |
9 | ecm_add_tests(
10 | konqpopupmenutest.cpp
11 | LINK_LIBRARIES KF5Konq Qt5::Test
12 | )
13 |
14 | ############################################
15 |
--------------------------------------------------------------------------------
/konqueror/pics/128-apps-konqueror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/128-apps-konqueror.png
--------------------------------------------------------------------------------
/konqueror/pics/16-apps-konqueror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/16-apps-konqueror.png
--------------------------------------------------------------------------------
/konqueror/pics/22-apps-konqueror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/22-apps-konqueror.png
--------------------------------------------------------------------------------
/konqueror/pics/32-apps-konqueror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/32-apps-konqueror.png
--------------------------------------------------------------------------------
/konqueror/pics/48-apps-konqueror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/48-apps-konqueror.png
--------------------------------------------------------------------------------
/konqueror/pics/64-apps-konqueror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/64-apps-konqueror.png
--------------------------------------------------------------------------------
/konqueror/pics/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory( indicators )
2 |
3 | ecm_install_icons(ICONS 128-apps-konqueror.png 16-apps-konqueror.png 22-apps-konqueror.png 32-apps-konqueror.png 48-apps-konqueror.png 64-apps-konqueror.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor )
4 |
--------------------------------------------------------------------------------
/konqueror/pics/hisc-app-konqueror.svgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/hisc-app-konqueror.svgz
--------------------------------------------------------------------------------
/konqueror/pics/indicators/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | install( FILES indicator_connect.png indicator_noconnect.png indicator_empty.png indicator_viewactive.png DESTINATION ${KDE_INSTALL_DATADIR}/konqueror/pics )
3 |
4 |
--------------------------------------------------------------------------------
/konqueror/pics/indicators/indicator_connect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/indicators/indicator_connect.png
--------------------------------------------------------------------------------
/konqueror/pics/indicators/indicator_empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/indicators/indicator_empty.png
--------------------------------------------------------------------------------
/konqueror/pics/indicators/indicator_noconnect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/indicators/indicator_noconnect.png
--------------------------------------------------------------------------------
/konqueror/pics/indicators/indicator_viewactive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/pics/indicators/indicator_viewactive.png
--------------------------------------------------------------------------------
/konqueror/plugins/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
2 | project(konq-plugins)
3 |
4 | find_package(ECM 5.27.0 CONFIG REQUIRED)
5 |
6 | include(FeatureSummary)
7 |
8 | set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
9 |
10 | include(KDEInstallDirs)
11 | include(KDECMakeSettings)
12 | include(KDECompilerSettings NO_POLICY_SCOPE)
13 | include(ECMInstallIcons)
14 | include(ECMMarkAsTest)
15 |
16 | find_package(Qt5 REQUIRED COMPONENTS Core Widgets)
17 | find_package(Qt5TextToSpeech ${QT_REQUIRED_VERSION} QUIET)
18 | set_package_properties(Qt5TextToSpeech PROPERTIES
19 | PURPOSE "Gives Konqueror a plugin to speak portions or all of a website")
20 | find_package(KF5 REQUIRED COMPONENTS KDELibs4Support Crash)
21 |
22 | add_subdirectory( khtmlsettingsplugin )
23 | add_subdirectory( kimgalleryplugin )
24 | add_subdirectory( dirfilter )
25 | # TODO add_subdirectory( uachanger )
26 | add_subdirectory( babelfish )
27 | add_subdirectory( validators )
28 | add_subdirectory( domtreeviewer )
29 | add_subdirectory( webarchiver )
30 |
31 | if (Qt5TextToSpeech_FOUND)
32 | add_subdirectory(ttsplugin)
33 | endif()
34 |
35 | if(UNIX)
36 | add_subdirectory( shellcmdplugin )
37 | endif(UNIX)
38 |
39 | # TODO add_subdirectory( imagerotation )
40 | add_subdirectory( minitools )
41 | #add_subdirectory( microformat )
42 | add_subdirectory( autorefresh )
43 | add_subdirectory( fsview )
44 | add_subdirectory( searchbar )
45 | add_subdirectory( rellinks )
46 |
47 | # TODO add_subdirectory( adblock )
48 |
49 | add_subdirectory( akregator )
50 |
51 |
--------------------------------------------------------------------------------
/konqueror/plugins/adblock/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | ########### next target ###############
4 | add_definitions(-DTRANSLATION_DOMAIN=\"adblock\")
5 | set(adblock_PART_SRCS adblock.cpp adblockdialog.cpp )
6 |
7 | add_library(adblock MODULE ${adblock_PART_SRCS})
8 |
9 |
10 |
11 | target_link_libraries(adblock KF5::Parts KF5::KHtml KF5::KCMUtils)
12 |
13 | install(TARGETS adblock DESTINATION ${KDE_INSTALL_PLUGINDIR} )
14 |
15 |
16 | ########### install files ###############
17 |
18 | install( FILES plugin_adblock.desktop plugin_adblock.rc DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
19 |
--------------------------------------------------------------------------------
/konqueror/plugins/adblock/Messages.sh:
--------------------------------------------------------------------------------
1 | $EXTRACTRC *.rc >> rc.cpp
2 | $XGETTEXT *.cpp -o $podir/adblock.pot
3 |
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/adblock/plugin_adblock.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/plugins/akregator/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ########### next target ###############
2 | add_definitions(-DTRANSLATION_DOMAIN=\"akregator_konqplugin\")
3 | MESSAGE(STATUS "akregator popupmenu plugin disabled. Doable via servicemenu or should we re-introduce ServiceMenusPlugin?")
4 |
5 | #set(akregatorkonqplugin_PART_SRCS akregatorplugin.cpp pluginbase.cpp )
6 | #
7 | #kde4_add_plugin(akregatorkonqplugin ${akregatorkonqplugin_PART_SRCS})
8 | #
9 | #target_link_libraries(akregatorkonqplugin ${KDE4_KDE3SUPPORT_LIBS} Qt5::Xml konq
10 | # KF5::KHtml )
11 | #
12 | #install(TARGETS akregatorkonqplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
13 |
14 |
15 | ########### next target ###############
16 |
17 | set(akregatorkonqfeedicon_PART_SRCS konqfeedicon.cpp feeddetector.cpp pluginbase.cpp )
18 |
19 | add_library(akregatorkonqfeedicon MODULE ${akregatorkonqfeedicon_PART_SRCS})
20 |
21 | target_compile_definitions(akregatorkonqfeedicon PRIVATE TRANSLATION_DOMAIN="akregator_konqplugin")
22 |
23 | target_link_libraries(akregatorkonqfeedicon KF5::Parts KF5::KDELibs4Support)
24 |
25 | install(TARGETS akregatorkonqfeedicon DESTINATION ${KDE_INSTALL_PLUGINDIR} )
26 |
27 |
28 | ########### install files ###############
29 |
30 | #install( FILES akregator_konqplugin.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
31 | install( FILES akregator_konqfeedicon.desktop akregator_konqfeedicon.rc DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
32 | install( FILES akregator_konqfeedicon.desktop akregator_konqfeedicon.rc DESTINATION ${KDE_INSTALL_DATADIR}/kwebkitpart/kpartplugins )
33 |
34 | install( FILES feed.png DESTINATION ${KDE_INSTALL_DATADIR}/akregator/pics )
35 |
--------------------------------------------------------------------------------
/konqueror/plugins/akregator/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/akregator_konqplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/akregator/akregator_konqfeedicon.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/akregator/akregatorplugin.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 |
3 | Copyright (C) 2004 Gary Cramblitt
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License as
7 | published by the Free Software Foundation; either version 2 of
8 | the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program. If not, see .
17 | */
18 |
19 | #ifndef _AKREGATORPLUGIN_H_
20 | #define _AKREGATORPLUGIN_H_
21 |
22 | #include
23 | #include
24 | #include
25 |
26 | #include "pluginbase.h"
27 |
28 | class KHTMLPart;
29 |
30 | namespace Akregator
31 | {
32 |
33 | class AkregatorMenu : public KonqPopupMenuPlugin, PluginBase
34 | {
35 | Q_OBJECT
36 | public:
37 | AkregatorMenu(KonqPopupMenu *, const QStringList &list);
38 | virtual ~AkregatorMenu();
39 |
40 | public slots:
41 | void slotAddFeed();
42 |
43 | protected:
44 | bool isFeedUrl(const QString &s);
45 | bool isFeedUrl(const KFileItem &item);
46 |
47 | private:
48 | QStringList m_feedMimeTypes;
49 | // KConfig *m_conf;
50 | KHTMLPart *m_part;
51 | QString m_feedURL;
52 | };
53 |
54 | }
55 |
56 | #endif
57 |
58 |
--------------------------------------------------------------------------------
/konqueror/plugins/akregator/feed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/akregator/feed.png
--------------------------------------------------------------------------------
/konqueror/plugins/autorefresh/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ########### next target ###############
6 | add_definitions(-DTRANSLATION_DOMAIN=\"autorefresh\")
7 |
8 | set(autorefresh_PART_SRCS autorefresh.cpp )
9 |
10 | add_library(autorefresh MODULE ${autorefresh_PART_SRCS})
11 |
12 |
13 |
14 | target_link_libraries(autorefresh KF5::Parts KF5::KDELibs4Support )
15 |
16 | install(TARGETS autorefresh DESTINATION ${KDE_INSTALL_PLUGINDIR} )
17 |
18 |
19 | ########### install files ###############
20 |
21 | install( FILES autorefresh.rc autorefresh.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
22 | install( FILES autorefresh.rc autorefresh.desktop DESTINATION ${KDE_INSTALL_DATADIR}/kwebkitpart/kpartplugins )
23 |
--------------------------------------------------------------------------------
/konqueror/plugins/autorefresh/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/autorefresh.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/autorefresh/autorefresh.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/konqueror/plugins/babelfish/16-actions-babelfish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/babelfish/16-actions-babelfish.png
--------------------------------------------------------------------------------
/konqueror/plugins/babelfish/22-actions-babelfish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/babelfish/22-actions-babelfish.png
--------------------------------------------------------------------------------
/konqueror/plugins/babelfish/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | project(babelfish)
2 | add_definitions(-DTRANSLATION_DOMAIN=\"babelfish\")
3 | ########### babelfishplugin ###############
4 |
5 | set(babelfishplugin_PART_SRCS plugin_babelfish.cpp )
6 |
7 | add_library(babelfishplugin MODULE ${babelfishplugin_PART_SRCS})
8 |
9 | target_link_libraries(babelfishplugin KF5::Parts KF5::KDELibs4Support)
10 |
11 | install(TARGETS babelfishplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
12 |
13 |
14 | ########### install files ###############
15 |
16 | install( FILES plugin_babelfish.rc plugin_translator.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
17 | install( FILES translaterc DESTINATION ${KDE_INSTALL_CONFDIR} )
18 | install( FILES plugin_babelfish.rc plugin_translator.desktop DESTINATION ${KDE_INSTALL_DATADIR}/kwebkitpart/kpartplugins )
19 |
20 | set(babelfish_ICONS 16-actions-babelfish.png 22-actions-babelfish.png)
21 |
22 | ecm_install_icons(ICONS ${babelfish_ICONS} DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor)
23 |
--------------------------------------------------------------------------------
/konqueror/plugins/babelfish/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/babelfish.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/babelfish/plugin_babelfish.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE Project
2 | Copyright (C) 2001 Kurt Granroth
3 | Copyright (C) 2003 Rand2342
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License version 2 as published by the Free Software Foundation.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | Library General Public License for more details.
13 |
14 | You should have received a copy of the GNU Library General Public License
15 | along with this library; see the file COPYING.LIB. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 | #ifndef __plugin_babelfish_h
20 | #define __plugin_babelfish_h
21 |
22 | #include
23 | #include
24 | #include
25 | #include
26 |
27 | class PluginBabelFish : public KParts::Plugin
28 | {
29 | Q_OBJECT
30 | public:
31 | explicit PluginBabelFish(QObject *parent,
32 | const QVariantList &);
33 | virtual ~PluginBabelFish();
34 |
35 | private slots:
36 | void translateURL(QAction *);
37 | void slotAboutToShow();
38 | void slotEnableMenu();
39 |
40 | private:
41 | void addTopLevelAction(const QString &name, const QString &text);
42 |
43 | private:
44 | QActionGroup m_actionGroup;
45 | KActionMenu *m_menu;
46 | };
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/konqueror/plugins/babelfish/plugin_babelfish.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/plugins/babelfish/translaterc:
--------------------------------------------------------------------------------
1 | en_no=freetranslation
2 | en_th=parsit
3 | #fr_es=reverso
4 | fr_ru=voila
5 | ru_fr=voila
6 | fr_ar=google
7 |
--------------------------------------------------------------------------------
/konqueror/plugins/dirfilter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ############### next target ###############
2 | add_definitions(-DTRANSLATION_DOMAIN=\"dirfilterplugin\")
3 | set(dirfilterplugin_PART_SRCS dirfilterplugin.cpp )
4 |
5 | add_library(dirfilterplugin MODULE ${dirfilterplugin_PART_SRCS})
6 |
7 | target_link_libraries(dirfilterplugin KF5::Parts KF5::KDELibs4Support)
8 |
9 | install(TARGETS dirfilterplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
10 |
11 |
12 | ########### install files ###############
13 |
14 | install( FILES dirfilterplugin.rc dirfilterplugin.desktop DESTINATION ${KDE_INSTALL_DATADIR}/dolphinpart/kpartplugins )
15 |
--------------------------------------------------------------------------------
/konqueror/plugins/dirfilter/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/dirfilterplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/dirfilter/dirfilterplugin.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | find_package(KF5 REQUIRED KHtml)
2 | add_definitions(-DTRANSLATION_DOMAIN=\"domtreeviewer\")
3 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
4 | ########### next target ###############
5 |
6 | set(domtreeviewerplugin_PART_SRCS
7 | plugin_domtreeviewer.cpp
8 | domtreeview.cpp
9 | domlistviewitem.cpp
10 | domtreewindow.cpp
11 | domtreecommands.cpp
12 | signalreceiver.cpp )
13 |
14 | ki18n_wrap_ui(domtreeviewerplugin_PART_SRCS domtreeviewbase.ui texteditwidget.ui elementeditwidget.ui attributeeditwidget.ui messagedialog.ui)
15 |
16 | add_library(domtreeviewerplugin MODULE ${domtreeviewerplugin_PART_SRCS})
17 |
18 |
19 |
20 | target_link_libraries(domtreeviewerplugin KF5::KHtml KF5::KDELibs4Support)
21 |
22 | install(TARGETS domtreeviewerplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
23 |
24 |
25 | ########### install files ###############
26 |
27 | install( FILES plugin_domtreeviewer.rc plugin_domtreeviewer.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
28 | install( FILES domtreeviewerui.rc DESTINATION ${KDE_INSTALL_DATADIR}/domtreeviewer )
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc *.ui >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/domtreeviewer.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/domtreeviewerui.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
8 |
19 |
22 |
23 | Main Toolbar
24 |
25 | Tree Toolbar
26 |
27 |
28 |
29 |
30 |
31 |
32 |
39 |
49 |
50 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/messagedialog.ui:
--------------------------------------------------------------------------------
1 |
2 | MessageDialog
3 |
4 |
5 |
6 | 0
7 | 0
8 | 511
9 | 282
10 |
11 |
12 |
13 |
14 | 0
15 |
16 | -
17 |
18 |
19 | false
20 |
21 |
22 | true
23 |
24 |
25 | false
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | KTextEdit
35 | QTextEdit
36 |
37 |
38 |
39 |
40 | ktextedit.h
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/plugin_domtreeviewer.cpp:
--------------------------------------------------------------------------------
1 | #include "plugin_domtreeviewer.h"
2 | #include "domtreewindow.h"
3 | #include "domtreeview.h"
4 |
5 |
6 | #include
7 |
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include
13 |
14 | //KDELibs4Support
15 |
16 |
17 | K_PLUGIN_FACTORY(DomtreeviewerFactory, registerPlugin();)
18 |
19 | PluginDomtreeviewer::PluginDomtreeviewer(QObject *parent,
20 | const QVariantList &)
21 | : Plugin(parent), m_dialog(0)
22 | {
23 | QAction *a = actionCollection()->addAction(QStringLiteral("viewdomtree"));
24 |
25 | a->setText(i18n("Show &DOM Tree"));
26 | a->setIcon(QIcon::fromTheme(QStringLiteral("view-web-browser-dom-tree")));
27 | connect(a, SIGNAL(triggered()), this, SLOT(slotShowDOMTree()));
28 | }
29 |
30 | PluginDomtreeviewer::~PluginDomtreeviewer()
31 | {
32 | kDebug(90180);
33 | delete m_dialog;
34 | }
35 |
36 | void PluginDomtreeviewer::slotShowDOMTree()
37 | {
38 | if (m_dialog) {
39 | delete m_dialog;
40 | Q_ASSERT((DOMTreeWindow *)m_dialog == (DOMTreeWindow *)0);
41 | }
42 | if (KHTMLPart *part = qobject_cast(parent())) {
43 | m_dialog = new DOMTreeWindow(this);
44 | connect(m_dialog, SIGNAL(destroyed()), this, SLOT(slotDestroyed()));
45 | m_dialog->view()->setHtmlPart(part);
46 | m_dialog->show();
47 | }
48 | }
49 |
50 | void PluginDomtreeviewer::slotDestroyed()
51 | {
52 | kDebug(90180);
53 | m_dialog = 0;
54 | }
55 |
56 | #include
57 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/plugin_domtreeviewer.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __plugin_domtreeviewer_h
3 | #define __plugin_domtreeviewer_h
4 |
5 | #include
6 |
7 | class DOMTreeWindow;
8 |
9 | class PluginDomtreeviewer : public KParts::Plugin
10 | {
11 | Q_OBJECT
12 | public:
13 | PluginDomtreeviewer(QObject *parent,
14 | const QVariantList &);
15 | virtual ~PluginDomtreeviewer();
16 |
17 | public slots:
18 | void slotShowDOMTree();
19 | void slotDestroyed();
20 | private:
21 | DOMTreeWindow *m_dialog;
22 | };
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/plugin_domtreeviewer.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/signalreceiver.cpp:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | *
3 | * Copyright (C) 2005 Leo Savernik
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Library General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2 of the License, or (at your option) any later version.
9 | *
10 | * This library is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Library General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Library General Public License
16 | * along with this library; see the file COPYING.LIB. If not, write to
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 | * Boston, MA 02110-1301, USA.
19 | */
20 |
21 | #include "signalreceiver.h"
22 |
23 | SignalReceiver::SignalReceiver(QObject *parent)
24 | : QObject(parent), rcvd(false)
25 | {
26 | }
27 |
28 | SignalReceiver::~SignalReceiver()
29 | {
30 | }
31 |
32 | void SignalReceiver::slot()
33 | {
34 | rcvd = true;
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/konqueror/plugins/domtreeviewer/texteditwidget.ui:
--------------------------------------------------------------------------------
1 |
2 | TextEditWidget
3 |
4 |
5 |
6 | 0
7 | 0
8 | 469
9 | 117
10 |
11 |
12 |
13 |
14 | 0
15 |
16 | -
17 |
18 |
19 | Edit &text for text node:
20 |
21 |
22 | false
23 |
24 |
25 | textPane
26 |
27 |
28 |
29 | -
30 |
31 |
32 | true
33 |
34 |
35 | true
36 |
37 |
38 | false
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | KTextEdit
48 | QTextEdit
49 |
50 |
51 |
52 |
53 | ktextedit.h
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/konqueror/plugins/fsview/22-apps-fsview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/fsview/22-apps-fsview.png
--------------------------------------------------------------------------------
/konqueror/plugins/fsview/32-apps-fsview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/fsview/32-apps-fsview.png
--------------------------------------------------------------------------------
/konqueror/plugins/fsview/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_definitions(-DTRANSLATION_DOMAIN=\"fsview\")
2 | add_subdirectory(tests)
3 |
4 | ########### next target ###############
5 |
6 | set(libfsview_SRCS
7 | treemap.cpp
8 | fsview.cpp
9 | scan.cpp
10 | inode.cpp
11 | )
12 |
13 |
14 | ########### next target ###############
15 |
16 | set(fsview_SRCS main.cpp ${libfsview_SRCS} )
17 |
18 | add_executable(fsview ${fsview_SRCS})
19 |
20 | target_link_libraries(fsview KF5::KIOWidgets KF5::KDELibs4Support)
21 |
22 | install(TARGETS fsview ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
23 |
24 |
25 | ########### next target ###############
26 |
27 | set(fsviewpart_PART_SRCS fsview_part.cpp ${libfsview_SRCS})
28 |
29 | add_library(fsviewpart MODULE ${fsviewpart_PART_SRCS})
30 |
31 | target_link_libraries(fsviewpart KF5::Parts KF5::KDELibs4Support)
32 |
33 | install(TARGETS fsviewpart DESTINATION ${KDE_INSTALL_PLUGINDIR} )
34 |
35 |
36 | ########### install files ###############
37 |
38 | install( FILES fsview_part.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
39 | install( FILES fsview_part.rc DESTINATION ${KDE_INSTALL_DATADIR}/fsview )
40 |
41 | ecm_install_icons( ICONS 22-apps-fsview.png 32-apps-fsview.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor )
42 |
43 |
--------------------------------------------------------------------------------
/konqueror/plugins/fsview/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/fsview.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/fsview/README:
--------------------------------------------------------------------------------
1 | What's this?
2 | ============
3 |
4 | Josef Weidendorfer
5 | Josef.Weidendorfer@gmx.de
6 |
7 | FSView is a tool for showing disc utilization in a graphical form, much
8 | like the UNIX command 'du'. The visualisation type choosen is a treemap.
9 | Treemaps allow for showing metrics of objects in nested structures, like
10 | sizes of files and directories on your hard disc, where the the size of
11 | directories is defined to be the sum of the size of its children.
12 | Each object is represented by a rectangle which area is proportional to
13 | its metric. The metric must have the property that the sum of the
14 | children's metric of some object is equal or smaller than the objects
15 | metric. This holds true for the file/directory sizes in the use case of
16 | FSView.
17 |
18 | It's provided both as a Konqueror KPart plugin for the mime type
19 | inode/directory, and a standalone executable.
20 |
21 | This was meant as a small test application and usage tutorial for
22 | the TreeMap widget developed within KCachegrind. As it's quite cool
23 | and small, it is now provided as a Konqueror addon in KDE.
24 |
25 | For a full featured graphical 'du', see KDirStat. It's quite similar
26 | to FSView, but allows for lot of cleanup actions.
27 |
28 | Happy space hunting,
29 | Josef
30 |
--------------------------------------------------------------------------------
/konqueror/plugins/fsview/fsview_part.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/konqueror/plugins/fsview/tests/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
2 |
3 |
4 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
5 |
6 | ########### next target ###############
7 |
8 | set(libfsview_SRCS
9 | ${CMAKE_CURRENT_SOURCE_DIR}/../treemap.cpp
10 | ${CMAKE_CURRENT_SOURCE_DIR}/../fsview.cpp
11 | ${CMAKE_CURRENT_SOURCE_DIR}/../scan.cpp
12 | ${CMAKE_CURRENT_SOURCE_DIR}/../inode.cpp
13 | )
14 |
15 |
16 | set(scantest_SRCS scantest.cpp ${libfsview_SRCS})
17 |
18 | add_executable(scantest ${scantest_SRCS})
19 | ecm_mark_as_test(scantest)
20 |
21 | target_link_libraries(scantest KF5::KIOCore KF5::KDELibs4Support Qt5::Widgets)
22 |
23 |
24 |
--------------------------------------------------------------------------------
/konqueror/plugins/imagerotation/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | #if(NOT WIN32)
3 | # install( FILES jpegorient.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/ServiceMenus )
4 | # install( PROGRAMS exif.py jpegorient orient.py DESTINATION ${KDE_INSTALL_BINDIR} )
5 | #endif(NOT WIN32)
6 |
7 | install( FILES imageconverter.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/ServiceMenus )
8 |
9 |
10 |
--------------------------------------------------------------------------------
/konqueror/plugins/khtmlsettingsplugin/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ########### next target ###############
6 | add_definitions(-DTRANSLATION_DOMAIN=\"khtmlsettingsplugin\")
7 |
8 | find_package(KF5 REQUIRED KHtml)
9 |
10 | set(khtmlsettingsplugin_PART_SRCS settingsplugin.cpp )
11 |
12 | add_library(khtmlsettingsplugin MODULE ${khtmlsettingsplugin_PART_SRCS})
13 |
14 |
15 |
16 | target_link_libraries(khtmlsettingsplugin KF5::Parts KF5::KHtml KF5::KDELibs4Support)
17 |
18 | install(TARGETS khtmlsettingsplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
19 |
20 |
21 | ########### install files ###############
22 |
23 | install( FILES khtmlsettingsplugin.rc khtmlsettingsplugin.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
24 | install( FILES khtmlsettingsplugin.rc khtmlsettingsplugin.desktop DESTINATION ${KDE_INSTALL_DATADIR}/kwebkitpart/kpartplugins )
25 |
26 |
--------------------------------------------------------------------------------
/konqueror/plugins/khtmlsettingsplugin/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/khtmlsettingsplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/khtmlsettingsplugin/khtmlsettingsplugin.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/plugins/kimgalleryplugin/16-actions-imagegallery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/kimgalleryplugin/16-actions-imagegallery.png
--------------------------------------------------------------------------------
/konqueror/plugins/kimgalleryplugin/22-actions-imagegallery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/kimgalleryplugin/22-actions-imagegallery.png
--------------------------------------------------------------------------------
/konqueror/plugins/kimgalleryplugin/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ########### next target ###############
2 | add_definitions(-DTRANSLATION_DOMAIN=\"imgalleryplugin\")
3 | set(kimgallery_PART_SRCS imgalleryplugin.cpp imgallerydialog.cpp )
4 |
5 | add_library(kimgallery MODULE ${kimgallery_PART_SRCS})
6 |
7 |
8 |
9 | target_link_libraries(kimgallery KF5::Parts KF5::KDELibs4Support)
10 |
11 | install(TARGETS kimgallery DESTINATION ${KDE_INSTALL_PLUGINDIR} )
12 |
13 |
14 | ########### install files ###############
15 |
16 | install( FILES kimgalleryplugin.rc kimgalleryplugin.desktop DESTINATION ${KDE_INSTALL_DATADIR}/dolphinpart/kpartplugins )
17 |
18 | set(kimagegallery_ICONS 16-actions-imagegallery.png 22-actions-imagegallery.png)
19 |
20 | ecm_install_icons(ICONS ${kimagegallery_ICONS} DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor)
21 |
22 |
23 |
--------------------------------------------------------------------------------
/konqueror/plugins/kimgalleryplugin/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/imgalleryplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/kimgalleryplugin/kimgalleryplugin.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/konqueror/plugins/microformat/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ########### next target ###############
6 |
7 | set(mfkonqmficon_PART_SRCS konqmficon.cpp pluginbase.cpp )
8 |
9 | add_library(mfkonqmficon MODULE ${mfkonqmficon_PART_SRCS})
10 |
11 |
12 |
13 | target_link_libraries(mfkonqmficon KF5::KHtml)
14 |
15 | install(TARGETS mfkonqmficon DESTINATION ${KDE_INSTALL_PLUGINDIR} )
16 |
17 |
18 | ########### install files ###############
19 |
20 | install( FILES microformat.png DESTINATION ${KDE_INSTALL_DATADIR}/microformat/pics )
21 | install( FILES mf_konqmficon.desktop mf_konqmficon.rc DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
22 |
23 |
--------------------------------------------------------------------------------
/konqueror/plugins/microformat/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/mf_konqplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/microformat/README:
--------------------------------------------------------------------------------
1 | Microformats
2 | ------------
3 |
4 | Please see:
5 |
6 | http://developers.technorati.com/wiki/hCard
7 | http://developers.technorati.com/wiki/hCalendar
8 | http://developers.technorati.com/wiki/MicroFormat
9 |
10 |
11 | Also try:
12 | http://tantek.com/microformats/hcard-creator.html
13 | http://theryanking.com/microformats/hcalendar-creator.html
14 |
15 |
--------------------------------------------------------------------------------
/konqueror/plugins/microformat/mf_konqmficon.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/microformat/microformat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/microformat/microformat.png
--------------------------------------------------------------------------------
/konqueror/plugins/microformat/microformat.svgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/microformat/microformat.svgz
--------------------------------------------------------------------------------
/konqueror/plugins/microformat/pluginbase.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2004 Teemu Rytilahti
3 | Copyright (C) 2005 George Staikos
4 |
5 | This program is free software; you can redistribute it and/or modify
6 | it under the terms of the GNU General Public License as published by
7 | the Free Software Foundation; either version 2 of the License, or
8 | (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 |
19 | As a special exception, permission is given to link this program
20 | with any edition of Qt, and distribute the resulting executable,
21 | without including the source code for Qt in the source distribution.
22 | */
23 | #include
24 | #include
25 |
26 | #include "pluginbase.h"
27 |
28 | #include
29 |
30 | PluginBase::PluginBase()
31 | {
32 | }
33 |
34 | PluginBase::~PluginBase()
35 | {
36 | }
37 |
38 | void PluginBase::addVCardViaDCOP(const QString &card)
39 | {
40 | QDBusInterface kaddressbook("org.kde.kaddressbook", "/AddressBookService", "org.kde.adressbook.service");
41 | kaddressbook.call("importVCardFromData", card);
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/konqueror/plugins/microformat/pluginbase.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2004 Teemu Rytilahti
3 | Copyright (C) 2005 George Staikos
4 |
5 | This program is free software; you can redistribute it and/or modify
6 | it under the terms of the GNU General Public License as published by
7 | the Free Software Foundation; either version 2 of the License, or
8 | (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 |
19 | As a special exception, permission is given to link this program
20 | with any edition of Qt, and distribute the resulting executable,
21 | without including the source code for Qt in the source distribution.
22 | */
23 |
24 | #ifndef PLUGINBASE_H
25 | #define PLUGINBASE_H
26 |
27 | class QString;
28 |
29 | class PluginBase
30 | {
31 | public:
32 | PluginBase();
33 | ~PluginBase();
34 |
35 | public:
36 | void addVCardViaDCOP(const QString &vcard);
37 | };
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/konqueror/plugins/minitools/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ########### next target ###############
6 | add_definitions(-DTRANSLATION_DOMAIN=\"minitoolsplugin\")
7 |
8 | find_package(KF5 REQUIRED KHtml)
9 |
10 | set(minitoolsplugin_PART_SRCS minitoolsplugin.cpp )
11 |
12 | add_library(minitoolsplugin MODULE ${minitoolsplugin_PART_SRCS})
13 |
14 |
15 |
16 | target_link_libraries(minitoolsplugin KF5::KHtml KF5::KDELibs4Support)
17 |
18 | install(TARGETS minitoolsplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
19 |
20 |
21 | ########### install files ###############
22 |
23 | install( FILES minitoolsplugin.rc minitoolsplugin.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
24 |
25 |
--------------------------------------------------------------------------------
/konqueror/plugins/minitools/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/minitoolsplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/minitools/minitoolsplugin.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/plugins/rellinks/AUTHORS:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/rellinks/AUTHORS
--------------------------------------------------------------------------------
/konqueror/plugins/rellinks/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ########### next target ###############
5 | add_definitions(-DTRANSLATION_DOMAIN=\"rellinks\")
6 | find_package(KF5 REQUIRED KHtml)
7 |
8 | set(rellinksplugin_PART_SRCS plugin_rellinks.cpp )
9 |
10 | add_library(rellinksplugin MODULE ${rellinksplugin_PART_SRCS})
11 |
12 |
13 |
14 | target_link_libraries(rellinksplugin KF5::KHtml KF5::KDELibs4Support)
15 |
16 | install(TARGETS rellinksplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
17 |
18 |
19 | ########### install files ###############
20 |
21 | install( FILES plugin_rellinks.rc plugin_rellinks.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
22 |
23 |
24 |
--------------------------------------------------------------------------------
/konqueror/plugins/rellinks/ChangeLog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/rellinks/ChangeLog
--------------------------------------------------------------------------------
/konqueror/plugins/rellinks/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/rellinks.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/rellinks/README:
--------------------------------------------------------------------------------
1 | What is Konq Rellinks ?
2 | =======================
3 |
4 | Konq Rellinks is an add-on for Konqueror, the official KDE browser.
5 |
6 | It allows you to access the relations defined in the header of the document. These relations can be links to other versions of the document, RSS backend, search page, copyright informations,.... For more informations about this, see "The 'link'-Element in (X)HTML" at http://www.subotnik.net/html/link.
7 |
8 | The look of the Rellinks add-on is similar to the "Site Navigation Toolbar" of the Mozilla browser (not Mozilla Firebird).
9 |
10 | More Info
11 | =========
12 |
13 | See http://shift.freezope.org/konq_rellinks
--------------------------------------------------------------------------------
/konqueror/plugins/rellinks/TODO:
--------------------------------------------------------------------------------
1 | Rellinks :
2 | =========
3 |
4 | * Support multiple same relations for all relations in a beautiful way
5 | (as FireFox Link Toolbar Extension do) :
6 | by transfoming buttons (KAction) in menus (KActionMenu) if more than one item is found for a relation ?
7 | * Possibility to configure keyboard shortcuts
8 | * Manage "rel" and "rev" differently
9 | * Manage "media"
10 | * Respect the specifications : A LinkTypes value refers to a space-separated list of link types. White space characters are not permitted within link types.
11 | * Send the referer when going to a link
12 | * Support target attribut ? (Cf. Mozilla link toolbar bug : http://mozdev.org/bugs/show_bug.cgi?id=5259)
13 |
14 |
15 | Rellinks website (http://shift.freezope.org/konq_rellinks) :
16 | ============================================================
17 |
18 | * Add more testcasess
19 | * Add more documentation
20 | * Compare implementation with other browsers
--------------------------------------------------------------------------------
/konqueror/plugins/rellinks/plugin_rellinks.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
20 |
21 | Document Relations
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/konqueror/plugins/rellinks/rellinks.lsm:
--------------------------------------------------------------------------------
1 | Begin3
2 | Title: RelLinks -- Some description
3 | Version: 0.3
4 | Entered-date:
5 | Description:
6 | Keywords: KDE Qt
7 | Author: Franck Quélain
8 | Maintained-by: Franck Quélain
9 | Home-page:
10 | Alternate-site:
11 | Primary-site: ftp://ftp.kde.org/pub/kde/unstable/apps/utils
12 | xxxxxx rellinks-0.3.tar.gz
13 | xxx rellinks-0.3.lsm
14 | Platform: Linux. Needs KDE
15 | Copying-policy: GPL
16 | End
17 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | project (searchbar)
2 | add_definitions(-DTRANSLATION_DOMAIN=\"searchbarplugin\")
3 | find_package(Qt5 REQUIRED Script)
4 |
5 | add_subdirectory( icons )
6 | add_subdirectory( opensearch )
7 |
8 | ########### next target ###############
9 |
10 | set(searchbarplugin_PART_SRCS
11 | searchbar.cpp
12 | OpenSearchManager.cpp
13 | SuggestionEngine.cpp
14 | WebShortcutWidget.cpp
15 | opensearch/OpenSearchEngine.cpp
16 | opensearch/OpenSearchReader.cpp
17 | opensearch/OpenSearchWriter.cpp)
18 |
19 | add_library(searchbarplugin MODULE ${searchbarplugin_PART_SRCS})
20 |
21 | target_link_libraries(searchbarplugin KF5::Parts Qt5::Script KF5::KDELibs4Support)
22 |
23 | install(TARGETS searchbarplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
24 |
25 | ########### install files ###############
26 |
27 | install( FILES searchbar.rc searchbar.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqueror/kpartplugins )
28 |
29 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/searchbarplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/icons/16-actions-google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/searchbar/icons/16-actions-google.png
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/icons/22-actions-google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/searchbar/icons/22-actions-google.png
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/icons/32-actions-google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/searchbar/icons/32-actions-google.png
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/icons/48-actions-google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/searchbar/icons/48-actions-google.png
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/icons/64-actions-google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/searchbar/icons/64-actions-google.png
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/icons/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set(searchbar_ICONS
2 | 16-actions-google.png
3 | 22-actions-google.png
4 | 32-actions-google.png
5 | 48-actions-google.png
6 | 64-actions-google.png
7 | )
8 | set(searchbar_ox_ICONS oxsc-actions-google.svgz)
9 | ecm_install_icons(ICONS ${searchbar_ICONS} DESTINATION ${DATA_INSTALL_DIR}/konqueror/icons/ THEME hicolor )
10 | ecm_install_icons(ICONS ${searchbar_ox_ICONS} DESTINATION ${DATA_INSTALL_DIR}/konqueror/icons/ THEME oxygen )
11 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/icons/oxsc-actions-google.svgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/searchbar/icons/oxsc-actions-google.svgz
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/opensearch/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory( engines )
2 |
3 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/opensearch/OpenSearchReader.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 Jakub Wieczorek
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | * Boston, MA 02110-1301 USA
18 | */
19 |
20 | #ifndef OPENSEARCHREADER_H
21 | #define OPENSEARCHREADER_H
22 |
23 | #include
24 |
25 | class OpenSearchEngine;
26 |
27 | class OpenSearchReader : public QXmlStreamReader
28 | {
29 | public:
30 | OpenSearchReader();
31 |
32 | OpenSearchEngine *read(const QByteArray &data);
33 | OpenSearchEngine *read(QIODevice *device);
34 |
35 | private:
36 | OpenSearchEngine *read();
37 | };
38 |
39 | #endif // OPENSEARCHREADER_H
40 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/opensearch/OpenSearchWriter.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 Jakub Wieczorek
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | * Boston, MA 02110-1301 USA
18 | */
19 |
20 | #ifndef OPENSEARCHWRITER_H
21 | #define OPENSEARCHWRITER_H
22 |
23 | #include
24 |
25 | class QIODevice;
26 |
27 | class OpenSearchEngine;
28 |
29 | class OpenSearchWriter : public QXmlStreamWriter
30 | {
31 | public:
32 | OpenSearchWriter();
33 |
34 | bool write(QIODevice *device, OpenSearchEngine *engine);
35 |
36 | private:
37 | void write(OpenSearchEngine *engine);
38 | };
39 |
40 | #endif
41 |
42 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/opensearch/engines/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | install( FILES google.xml DESTINATION ${KDE_INSTALL_DATADIR}/konqueror/opensearch )
2 |
3 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/opensearch/engines/google.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Google
4 | Google Web Search
5 |
6 |
7 | http://www.google.com/favicon.ico
8 |
9 |
10 |
--------------------------------------------------------------------------------
/konqueror/plugins/searchbar/searchbar.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 | Search Toolbar
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/konqueror/plugins/shellcmdplugin/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | ########### next target ###############
3 | find_package(KF5 REQUIRED Su)
4 | add_definitions(-DTRANSLATION_DOMAIN=\"kshellcmdplugin\")
5 | set(konq_shellcmdplugin_PART_SRCS kshellcmdexecutor.cpp kshellcmddialog.cpp kshellcmdplugin.cpp )
6 |
7 |
8 | add_library(konq_shellcmdplugin MODULE ${konq_shellcmdplugin_PART_SRCS})
9 |
10 |
11 | target_link_libraries(konq_shellcmdplugin KF5::Parts KF5::Su KF5::KDELibs4Support)
12 |
13 | install(TARGETS konq_shellcmdplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
14 |
15 |
16 | ########### install files ###############
17 | install( FILES kshellcmdplugin.rc kshellcmdplugin.desktop DESTINATION ${KDE_INSTALL_DATADIR}/dolphinpart/kpartplugins )
18 |
--------------------------------------------------------------------------------
/konqueror/plugins/shellcmdplugin/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc *.ui *.kcfg >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/kshellcmdplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/shellcmdplugin/kshellcmddialog.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2000 Alexander Neundorf
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Library General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | Library General Public License for more details.
13 |
14 | You should have received a copy of the GNU Library General Public License
15 | along with this library; see the file COPYING.LIB. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #ifndef KSHELLCMDDIALOG_H
21 | #define KSHELLCMDDIALOG_H
22 |
23 | #include
24 |
25 | class KShellCommandExecutor;
26 | class QPushButton;
27 |
28 | class KShellCommandDialog: public KDialog
29 | {
30 | Q_OBJECT
31 | public:
32 | KShellCommandDialog(const QString &title, const QString &command, QWidget *parent = Q_NULLPTR, bool modal = false);
33 | virtual ~KShellCommandDialog();
34 | //blocking
35 | int executeCommand();
36 | protected:
37 |
38 | KShellCommandExecutor *m_shell;
39 | QPushButton *cancelButton;
40 | QPushButton *closeButton;
41 | protected Q_SLOTS:
42 | void disableStopButton();
43 | void slotClose();
44 | };
45 |
46 | #endif // KSHELLCMDDIALOG_H
47 |
--------------------------------------------------------------------------------
/konqueror/plugins/shellcmdplugin/kshellcmdplugin.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2000 David Faure
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Library General Public
6 | License version 2 as published by the Free Software Foundation.
7 |
8 | This library is distributed in the hope that it will be useful,
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 | Library General Public License for more details.
12 |
13 | You should have received a copy of the GNU Library General Public License
14 | along with this library; see the file COPYING.LIB. If not, write to
15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 | Boston, MA 02110-1301, USA.
17 | */
18 |
19 | #ifndef kshellcmdplugin_h
20 | #define kshellcmdplugin_h
21 |
22 | #include
23 |
24 | class KShellCmdPlugin : public KParts::Plugin
25 | {
26 | Q_OBJECT
27 | public:
28 | KShellCmdPlugin(QObject *parent, const QVariantList &);
29 | ~KShellCmdPlugin() {}
30 |
31 | public Q_SLOTS:
32 | void slotExecuteShellCommand();
33 | };
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/konqueror/plugins/shellcmdplugin/kshellcmdplugin.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | &Tools
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/konqueror/plugins/ttsplugin/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ########### khtmlttsplugin ###############
2 | add_definitions(-DTRANSLATION_DOMAIN=\"khtmltts\")
3 | set(khtmlttsplugin_PART_SRCS khtmltts.cpp )
4 |
5 | add_library(khtmlttsplugin MODULE ${khtmlttsplugin_PART_SRCS})
6 |
7 | target_link_libraries(khtmlttsplugin KF5::Parts Qt5::TextToSpeech)
8 |
9 | install(TARGETS khtmlttsplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
10 |
11 |
12 | ########### install files ###############
13 |
14 | install( FILES khtmltts.rc khtmltts.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
15 | install( FILES khtmltts.rc khtmltts.desktop DESTINATION ${KDE_INSTALL_DATADIR}/kwebkitpart/kpartplugins )
16 |
17 |
--------------------------------------------------------------------------------
/konqueror/plugins/ttsplugin/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env bash
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/khtmltts.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/ttsplugin/khtmltts.h:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | Copyright (C) 2002 by George Russell
3 | Copyright (C) 2003-2004 by Olaf Schmidt
4 | Copyright (C) 2015 by Jeremy Whiting
5 | ***************************************************************************/
6 |
7 | /***************************************************************************
8 | * *
9 | * This program is free software; you can redistribute it and/or modify *
10 | * it under the terms of the GNU General Public License as published by *
11 | * the Free Software Foundation; either version 2 of the License, or *
12 | * (at your option) any later version. *
13 | * *
14 | ***************************************************************************/
15 |
16 | #ifndef KHTMLTTS_H
17 | #define KHTMLTTS_H
18 |
19 | #include
20 |
21 | /**
22 | * KHTML KParts Plugin
23 | */
24 | class KHTMLPluginTTS : public KParts::Plugin
25 | {
26 | Q_OBJECT
27 | public:
28 |
29 | /**
30 | * Construct a new KParts plugin.
31 | */
32 | KHTMLPluginTTS(QObject *parent, const QVariantList &);
33 |
34 | /**
35 | * Destructor.
36 | */
37 | virtual ~KHTMLPluginTTS();
38 | public Q_SLOTS:
39 | void slotReadOut();
40 | };
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/konqueror/plugins/ttsplugin/khtmltts.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | &Tools
6 |
7 |
8 |
9 |
10 | Speech Toolbar
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/konqueror/plugins/uachanger/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ########### next target ###############
2 | add_definitions(-DTRANSLATION_DOMAIN=\"uachangerplugin\")
3 | set(uachangerplugin_PART_SRCS uachangerplugin.cpp )
4 |
5 | add_library(uachangerplugin MODULE ${uachangerplugin_PART_SRCS})
6 |
7 | target_link_libraries(uachangerplugin KF5::Parts )
8 |
9 | install(TARGETS uachangerplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
10 |
11 | ########### install files ###############
12 |
13 | install( FILES uachangerplugin.rc uachangerplugin.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
14 | install( FILES uachangerplugin.rc uachangerplugin.desktop DESTINATION ${KDE_INSTALL_DATADIR}/kwebkitpart/kpartplugins )
15 |
--------------------------------------------------------------------------------
/konqueror/plugins/uachanger/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/uachangerplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/uachanger/uachangerplugin.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | &Tools
5 |
6 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/plugins/uninstall.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Encoding=UTF-8
3 | Hidden=true
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/validators/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc *.ui *.kcfg >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/validatorsplugin.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/validators/clickiconlabel.h:
--------------------------------------------------------------------------------
1 | /* This file is part of Validators
2 | *
3 | * Copyright (C) 2008 by Pino Toscano
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License as published by
7 | * the Free Software Foundation; either version 2 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU General Public License
16 | * along with this program; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 | **/
19 |
20 | #ifndef CLICKICONLABEL_H
21 | #define CLICKICONLABEL_H
22 |
23 | #include
24 |
25 | class QLabel;
26 |
27 | class ClickIconLabel : public QWidget
28 | {
29 | Q_OBJECT
30 | public:
31 | ClickIconLabel(QWidget *parent = Q_NULLPTR);
32 |
33 | void setText(const QString &text);
34 | void setPixmap(const QPixmap &pixmap);
35 |
36 | signals:
37 | void leftClicked();
38 | void rightClicked();
39 | void midClicked();
40 |
41 | protected:
42 | void changeEvent(QEvent *event) Q_DECL_OVERRIDE;
43 | void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
44 |
45 | private:
46 | QLabel *m_text;
47 | QLabel *m_pixmap;
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/konqueror/plugins/validators/config-konq-validator.h.cmake:
--------------------------------------------------------------------------------
1 | #cmakedefine HAVE_TIDY 1
2 | #cmakedefine HAVE_TIDY_ULONG_VERSION 1
3 |
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/16-actions-cssvalidator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/16-actions-cssvalidator.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/16-actions-htmlvalidator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/16-actions-htmlvalidator.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/16-actions-validators.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/16-actions-validators.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/22-actions-cssvalidator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/22-actions-cssvalidator.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/22-actions-htmlvalidator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/22-actions-htmlvalidator.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/22-actions-validators.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/22-actions-validators.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/32-actions-htmlvalidator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/32-actions-htmlvalidator.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/32-actions-validators.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/32-actions-validators.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/48-actions-htmlvalidator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/48-actions-htmlvalidator.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/48-actions-validators.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/48-actions-validators.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/64-actions-htmlvalidator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/64-actions-htmlvalidator.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/64-actions-validators.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/64-actions-validators.png
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set(validators_hi_ICONS
2 | 16-actions-validators.png
3 | 22-actions-validators.png
4 | 48-actions-htmlvalidator.png
5 | 64-actions-validators.png
6 | 16-actions-cssvalidator.png
7 | 22-actions-cssvalidator.png
8 | 32-actions-htmlvalidator.png
9 | 48-actions-validators.png
10 | 16-actions-htmlvalidator.png
11 | 22-actions-htmlvalidator.png
12 | 32-actions-validators.png
13 | 64-actions-htmlvalidator.png
14 | )
15 | set(validators_ox_ICONS
16 | sc-actions-htmlvalidator.svgz
17 | sc-actions-validators.svgz
18 | )
19 | ecm_install_icons(ICONS ${validators_hi_ICONS} DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor)
20 | ecm_install_icons(ICONS ${validators_ox_ICONS} DESTINATION ${KDE_INSTALL_ICONDIR} THEME oxygen)
21 |
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/sc-actions-htmlvalidator.svgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/sc-actions-htmlvalidator.svgz
--------------------------------------------------------------------------------
/konqueror/plugins/validators/pics/sc-actions-validators.svgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/validators/pics/sc-actions-validators.svgz
--------------------------------------------------------------------------------
/konqueror/plugins/validators/plugin_validators.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | &Tools
5 |
6 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/plugins/validators/reportdialog.h:
--------------------------------------------------------------------------------
1 | /* This file is part of Validators
2 | *
3 | * Copyright (C) 2008 by Pino Toscano
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License as published by
7 | * the Free Software Foundation; either version 2 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU General Public License
16 | * along with this program; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 | **/
19 |
20 | #ifndef REPORTDIALOG_H
21 | #define REPORTDIALOG_H
22 |
23 | #include
24 |
25 | #include "ui_reportwidget.h"
26 |
27 | struct ValidationResult;
28 |
29 | class ReportDialog : public KDialog
30 | {
31 | Q_OBJECT
32 | public:
33 | ReportDialog(const QList &results, QWidget *parent);
34 |
35 | virtual QSize sizeHint() const;
36 |
37 | private:
38 | Ui::ReportWidget m_ui;
39 | };
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/konqueror/plugins/validators/reportwidget.ui:
--------------------------------------------------------------------------------
1 |
2 | ReportWidget
3 |
4 |
5 |
6 | 0
7 | 0
8 | 400
9 | 300
10 |
11 |
12 |
13 | -
14 |
15 |
16 | true
17 |
18 |
19 | false
20 |
21 |
22 | false
23 |
24 |
25 | false
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | Frame
35 |
36 |
37 |
38 |
39 | Row
40 |
41 |
42 |
43 |
44 | Column
45 |
46 |
47 |
48 |
49 | Message
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/konqueror/plugins/validators/settings.kcfgc:
--------------------------------------------------------------------------------
1 | ClassName=ValidatorsSettings
2 | File=validators.kcfg
3 | Mutators=true
4 | Singleton=true
5 |
--------------------------------------------------------------------------------
/konqueror/plugins/webarchiver/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_definitions(-DTRANSLATION_DOMAIN=\"webarchiver\")
2 | find_package(KF5 REQUIRED COMPONENTS KIO Archive KHtml)
3 |
4 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
5 | ########### next target ###############
6 |
7 | set(webarchiverplugin_PART_SRCS plugin_webarchiver.cpp archivedialog.cpp )
8 |
9 | ki18n_wrap_ui(webarchiverplugin_PART_SRCS archiveviewbase.ui )
10 |
11 | add_library(webarchiverplugin MODULE ${webarchiverplugin_PART_SRCS})
12 |
13 | target_link_libraries(webarchiverplugin KF5::KHtml KF5::KDELibs4Support KF5::KIOCore KF5::Archive)
14 | install(TARGETS webarchiverplugin DESTINATION ${KDE_INSTALL_PLUGINDIR} )
15 |
16 |
17 | ########### next target ###############
18 |
19 | set(webarchivethumbnail_PART_SRCS webarchivecreator.cpp )
20 |
21 | add_library(webarchivethumbnail MODULE ${webarchivethumbnail_PART_SRCS})
22 |
23 | target_link_libraries(webarchivethumbnail KF5::KHtml KF5::KDELibs4Support KF5::KIOCore)
24 |
25 | install(TARGETS webarchivethumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR} )
26 |
27 |
28 | ########### install files ###############
29 |
30 | install( FILES plugin_webarchiver.rc plugin_webarchiver.desktop DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins )
31 | install( FILES webarchivethumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
32 |
33 | ecm_install_icons( ${KDE_INSTALL_ICONDIR} )
34 |
35 |
--------------------------------------------------------------------------------
/konqueror/plugins/webarchiver/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | $EXTRACTRC *.rc *.ui >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/webarchiver.pot
4 |
--------------------------------------------------------------------------------
/konqueror/plugins/webarchiver/hi16-actions-webarchiver.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/webarchiver/hi16-actions-webarchiver.png
--------------------------------------------------------------------------------
/konqueror/plugins/webarchiver/hi22-actions-webarchiver.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/plugins/webarchiver/hi22-actions-webarchiver.png
--------------------------------------------------------------------------------
/konqueror/plugins/webarchiver/plugin_webarchiver.h:
--------------------------------------------------------------------------------
1 | /* This file is part of Webarchiver
2 | * Copyright (C) 2001 by Andreas Schlapbach
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Library General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Library General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Library General Public License
15 | * along with this library; see the file COPYING.LIB. If not, write to
16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | * Boston, MA 02110-1301, USA.
18 | **/
19 |
20 | /* $Id$ */
21 |
22 | #ifndef plugin_webarchiver_h
23 | #define plugin_webarchiver_h
24 |
25 | #include
26 | #include
27 |
28 | class PluginWebArchiver : public KParts::Plugin
29 | {
30 | Q_OBJECT
31 |
32 | public:
33 | PluginWebArchiver(QObject *parent,
34 | const QVariantList &);
35 | virtual ~PluginWebArchiver();
36 |
37 | public slots:
38 | void slotSaveToArchive();
39 | };
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/konqueror/plugins/webarchiver/plugin_webarchiver.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | &Tools
5 |
6 |
7 |
8 | Extra Toolbar
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/konqueror/settings/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory( konq )
2 | add_subdirectory( konqhtml )
3 | add_subdirectory( performance )
4 | add_subdirectory( bookmarks )
5 |
--------------------------------------------------------------------------------
/konqueror/settings/bookmarks/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmbookmarks\")
3 |
4 | ########### next target ###############
5 |
6 | set(kcm_bookmarks_PART_SRCS
7 | main.cpp
8 | bookmarks.cpp)
9 |
10 | ki18n_wrap_ui(kcm_bookmarks_PART_SRCS
11 | bookmarks.ui)
12 |
13 | add_library(kcm_bookmarks MODULE ${kcm_bookmarks_PART_SRCS})
14 |
15 | target_link_libraries(kcm_bookmarks KF5::KCMUtils KF5::KIOCore KF5::I18n KF5::KDELibs4Support)
16 |
17 | install(TARGETS kcm_bookmarks DESTINATION ${KDE_INSTALL_PLUGINDIR} )
18 |
19 | ########### install files ###############
20 |
21 | install( FILES bookmarks.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
22 |
23 |
--------------------------------------------------------------------------------
/konqueror/settings/bookmarks/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env bash
2 | $EXTRACTRC *.ui *.kcfg >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/kcmbookmarks.pot
4 |
--------------------------------------------------------------------------------
/konqueror/settings/bookmarks/bookmarks.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2008 Xavier Vello
3 |
4 | This program is free software; you can redistribute it and/or modify
5 | it under the terms of the GNU General Public License as published by
6 | the Free Software Foundation; either version 2 of the License, or
7 | (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 |
19 | #ifndef KCM_BOOKMARKS_H
20 | #define KCM_BOOKMARKS_H
21 |
22 | // KDE
23 | #include
24 |
25 | // Local
26 | #include "ui_bookmarks.h"
27 |
28 | class BookmarksConfigModule : public KCModule
29 | {
30 | Q_OBJECT
31 |
32 | public:
33 | BookmarksConfigModule(QWidget *parent, const QVariantList &args);
34 | ~BookmarksConfigModule();
35 |
36 | void load() Q_DECL_OVERRIDE;
37 | void save() Q_DECL_OVERRIDE;
38 | void defaults() Q_DECL_OVERRIDE;
39 | QString quickHelp() const Q_DECL_OVERRIDE;
40 |
41 | private Q_SLOTS:
42 | void clearCache();
43 | void configChanged();
44 |
45 | private:
46 | Ui::BookmarksConfigUI ui;
47 | };
48 |
49 | #endif // KCM_BOOKMARKS_H
50 |
51 |
--------------------------------------------------------------------------------
/konqueror/settings/bookmarks/main.cpp:
--------------------------------------------------------------------------------
1 | // (c) Torben Weis 1998
2 | // (c) David Faure 1998
3 | /*
4 | * main.cpp for creating the konqueror kio kcm modules
5 | *
6 | * Copyright (C) 2000,2001,2009 Alexander Neundorf
7 | *
8 | * This program is free software; you can redistribute it and/or modify
9 | * it under the terms of the GNU General Public License as published by
10 | * the Free Software Foundation; either version 2 of the License, or
11 | * (at your option) any later version.
12 | *
13 | * This program is distributed in the hope that it will be useful,
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | * GNU General Public License for more details.
17 | *
18 | * You should have received a copy of the GNU General Public License
19 | * along with this program; if not, write to the Free Software
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 | */
22 |
23 | // Qt
24 | #include
25 |
26 | // KDE
27 | #include
28 | #include
29 | #include
30 |
31 | // Local
32 | #include "bookmarks.h"
33 |
34 | K_PLUGIN_FACTORY(KioConfigFactory,
35 | registerPlugin("bookmarks");
36 | )
37 | K_EXPORT_PLUGIN(KioConfigFactory("kcmbookmarks"))
38 | #include "main.moc"
39 |
--------------------------------------------------------------------------------
/konqueror/settings/konq/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmkonq\")
2 | set(kcm_konq_PART_SRCS
3 | behaviour.cpp
4 | konqkcmfactory.cpp
5 | # kcustommenueditor.cpp
6 | )
7 |
8 | add_library(kcm_konq MODULE ${kcm_konq_PART_SRCS})
9 |
10 |
11 | target_link_libraries(kcm_konq KF5::KCMUtils KF5::KIOCore KF5::I18n KF5::KIOWidgets Qt5::DBus)
12 |
13 | install(TARGETS kcm_konq DESTINATION ${KDE_INSTALL_PLUGINDIR} )
14 |
15 |
16 | ########### install files ###############
17 | install( FILES
18 | filebehavior.desktop
19 | #fileappearance.desktop
20 | DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
21 | install( FILES overlapping.png onlyone.png DESTINATION ${KDE_INSTALL_DATADIR}/kcontrol/pics )
22 |
23 |
--------------------------------------------------------------------------------
/konqueror/settings/konq/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env bash
2 | $XGETTEXT *.cpp -o $podir/kcmkonq.pot
3 |
--------------------------------------------------------------------------------
/konqueror/settings/konq/README:
--------------------------------------------------------------------------------
1 | This module contains a combination of configuration items which at first
2 | sight seem to be a rather weird combination.
3 |
4 | It contains configuration for:
5 | * KDesktop
6 | * Konqueror
7 | * Number of virtual desktops. (Handled by KWin via NETWM)
8 | * Behaviour of desktop borders (Handled by KWin)
9 |
10 | The reason for this combination is that the configuration of KDesktop and
11 | Konqueror is very similar codewise. On the other hand, the number of virtual
12 | desktops, border behaviour and the other KDesktop options belongs together
13 | from a user interface point of view. The result is that all these options
14 | are now grouped together here.
15 |
16 | In total it provide 3 configuration modules:
17 | * desktop.desktop (Desktop configuration)
18 | * kcmkonq.desktop (File browser configuration)
19 | * virtualdesktops.desktop (Configuration of virtual desktops)
20 |
--------------------------------------------------------------------------------
/konqueror/settings/konq/konqkcmfactory.cpp:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2006-2007 Matthias Kretz
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Library General Public
6 | License version 2 as published by the Free Software Foundation.
7 |
8 | This library is distributed in the hope that it will be useful,
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 | Library General Public License for more details.
12 |
13 | You should have received a copy of the GNU Library General Public License
14 | along with this library; see the file COPYING.LIB. If not, write to
15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 | Boston, MA 02110-1301, USA.
17 |
18 | */
19 |
20 | #include "konqkcmfactory.h"
21 | #include "behaviour.h"
22 |
23 | #include
24 | #include
25 |
26 | K_PLUGIN_FACTORY_DEFINITION(KonqKcmFactory,
27 | registerPlugin("behavior");
28 | //registerPlugin("dbehavior");
29 | //registerPlugin("appearance");
30 | //registerPlugin("dappearance");
31 | )
32 | K_EXPORT_PLUGIN(KonqKcmFactory("kcmkonq"))
33 | #include "moc_konqkcmfactory.cpp"
34 |
--------------------------------------------------------------------------------
/konqueror/settings/konq/konqkcmfactory.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2006-2007 Matthias Kretz
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Library General Public
6 | License version 2 as published by the Free Software Foundation.
7 |
8 | This library is distributed in the hope that it will be useful,
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 | Library General Public License for more details.
12 |
13 | You should have received a copy of the GNU Library General Public License
14 | along with this library; see the file COPYING.LIB. If not, write to
15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 | Boston, MA 02110-1301, USA.
17 |
18 | */
19 |
20 | #ifndef KONQKCMFACTORY_H
21 | #define KONQKCMFACTORY_H
22 |
23 | #include
24 |
25 | K_PLUGIN_FACTORY_DECLARATION(KonqKcmFactory)
26 |
27 | #endif // KONQKCMFACTORY_H
28 |
--------------------------------------------------------------------------------
/konqueror/settings/konq/onlyone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/settings/konq/onlyone.png
--------------------------------------------------------------------------------
/konqueror/settings/konq/overlapping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/settings/konq/overlapping.png
--------------------------------------------------------------------------------
/konqueror/settings/konq/tests/kcustommenueditortest.cpp:
--------------------------------------------------------------------------------
1 | #include "kcustommenueditor.h"
2 | #include
3 | #include
4 | #include
5 | #include
6 |
7 | int main(int argc, char **argv)
8 | {
9 | KCmdLineArgs::init(argc, argv, "kcustommenueditortest", "kdelibs4", ki18n("kcustommenueditortest"), "0", ki18n("test app"));
10 | KApplication app;
11 | app.setQuitOnLastWindowClosed(false);
12 | KCustomMenuEditor editor(0);
13 | KConfig *cfg = new KConfig("kdesktop_custom_menu2");
14 | editor.load(cfg);
15 | if (editor.exec()) {
16 | editor.save(cfg);
17 | cfg->sync();
18 | }
19 | delete cfg;
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/konqueror/settings/konqhtml/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmkonqhtml\")
2 |
3 | include_directories(
4 | ${CMAKE_CURRENT_SOURCE_DIR}/css
5 | )
6 |
7 |
8 | set(kcm_konqhtml_PART_SRCS
9 | generalopts.cpp
10 | htmlopts.cpp
11 | jsopts.cpp
12 | javaopts.cpp
13 | pluginopts.cpp
14 | appearance.cpp
15 | khttpoptdlg.cpp
16 | policydlg.cpp
17 | main.cpp
18 | jspolicies.cpp
19 | policies.cpp
20 | domainlistview.cpp
21 | filteropts.cpp
22 | css/template.cpp
23 | css/kcmcss.cpp
24 | )
25 |
26 | ki18n_wrap_ui(kcm_konqhtml_PART_SRCS
27 | nsconfigwidget.ui
28 | advancedTabOptions.ui
29 | css/csscustom.ui
30 | css/cssconfig.ui
31 | )
32 |
33 | add_library(kcm_konqhtml MODULE ${kcm_konqhtml_PART_SRCS})
34 |
35 | # For khtmldefaults.h. We don't need to link to khtml, just to include that header...
36 | get_target_property(khtml_include_dir KF5::KHtml INTERFACE_INCLUDE_DIRECTORIES)
37 | target_include_directories(kcm_konqhtml PRIVATE "${khtml_include_dir}")
38 |
39 | target_link_libraries(kcm_konqhtml
40 | KF5::Parts
41 | KF5::KDELibs4Support
42 | )
43 |
44 | install(TARGETS kcm_konqhtml DESTINATION ${KDE_INSTALL_PLUGINDIR})
45 |
46 | ########### install files ###############
47 |
48 | install( FILES khtml_general.desktop khtml_behavior.desktop khtml_java_js.desktop khtml_appearance.desktop khtml_filter.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
49 | install( FILES css/template.css DESTINATION ${KDE_INSTALL_DATADIR}/kcmcss )
50 |
--------------------------------------------------------------------------------
/konqueror/settings/konqhtml/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env bash
2 | $EXTRACTRC `find . -name \*.ui` >> rc.cpp
3 | $XGETTEXT *.cpp css/*.cpp -o $podir/kcmkonqhtml.pot
4 |
--------------------------------------------------------------------------------
/konqueror/settings/konqhtml/css/template.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Font sizes
3 | */
4 |
5 | * {
6 | font-size : $fontsize-base$ ! important;
7 | }
8 |
9 | SMALL, SUB, SUP {
10 | font-size : $fontsize-small-1$ ! important;
11 | }
12 |
13 | BIG {
14 | font-size : $fontsize-large-1$ ! important;
15 | }
16 |
17 | H1, H1 A {
18 | font-size : $fontsize-large-5$ ! important;
19 | }
20 |
21 | H2, H2 A {
22 | font-size : $fontsize-large-4$ ! important;
23 | }
24 |
25 | H3, H3 A {
26 | font-size : $fontsize-large-3$ ! important;
27 | }
28 |
29 | H4, H4 A {
30 | font-size : $fontsize-large-2$ ! important;
31 | }
32 |
33 | H5, H5 A {
34 | font-size : $fontsize-large-1$ ! important;
35 | }
36 |
37 |
38 | /*
39 | * Colors
40 | */
41 |
42 | * {
43 | background : $background-color$ ! important;
44 | color : $foreground-color$
45 | $force-color$;
46 | }
47 |
48 | BODY {
49 | color : $foreground-color$ ! important;
50 | }
51 |
52 | TABLE, TD {
53 | border-color : $foreground-color$;
54 | }
55 |
56 |
57 | /*
58 | * Font family
59 | */
60 |
61 | * {
62 | font-family : $font-family$
63 | $force-font$;
64 | }
65 |
66 |
67 | /*
68 | * Images
69 | */
70 |
71 | IMG {
72 | $display-images$;
73 | }
74 |
75 | BODY {
76 | $display-background$;
77 | }
78 |
--------------------------------------------------------------------------------
/konqueror/settings/konqhtml/css/template.h:
--------------------------------------------------------------------------------
1 | #ifndef __TEMPLATE_H__
2 | #define __TEMPLATE_H__
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | class CSSTemplate
9 | {
10 | public:
11 |
12 | CSSTemplate(const QString &templateFilename): m_templateFilename(templateFilename) {}
13 | bool expandToFile(const QString &outputFilename, const QMap &dict);
14 | QString expandToString(const QMap &dict);
15 |
16 | protected:
17 | void doExpand(QTextStream &is, QTextStream &os, const QMap &dict);
18 |
19 | QString m_templateFilename;
20 | };
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/konqueror/settings/konqhtml/generalopts.h:
--------------------------------------------------------------------------------
1 | /* General options (for both fm and web modes) konqueror options
2 | *
3 | * Copyright (c) Sven Radej 1998
4 | * Copyright (c) David Faure 1998
5 | * Copyright (c) Nick Shaforostoff 2007
6 | *
7 | */
8 |
9 | #ifndef GENERALOPTS_H
10 | #define GENERALOPTS_H
11 |
12 | #include
13 |
14 | #include
15 | #include
16 |
17 | class QComboBox;
18 | class QLineEdit;
19 | class Ui_advancedTabOptions;
20 | class QVBoxLayout;
21 |
22 | class KKonqGeneralOptions : public KCModule
23 | {
24 | Q_OBJECT
25 |
26 | public:
27 | KKonqGeneralOptions(QWidget *parent, const QVariantList &);
28 | ~KKonqGeneralOptions();
29 | void load() Q_DECL_OVERRIDE;
30 | void save() Q_DECL_OVERRIDE;
31 | void defaults() Q_DECL_OVERRIDE;
32 |
33 | private Q_SLOTS:
34 | void slotChanged();
35 |
36 | private:
37 | void addHomeUrlWidgets(QVBoxLayout *);
38 |
39 | KSharedConfig::Ptr m_pConfig;
40 |
41 | QComboBox *m_startCombo;
42 | QLineEdit *homeURL;
43 | QLineEdit *startURL;
44 | QComboBox *m_webEngineCombo;
45 | Ui_advancedTabOptions *tabOptions;
46 | };
47 |
48 | #endif // GENERALOPTS_H
49 |
--------------------------------------------------------------------------------
/konqueror/settings/konqhtml/htmlopts.h:
--------------------------------------------------------------------------------
1 | /* "Misc Options" Tab for KFM configuration
2 | *
3 | * Copyright (c) Sven Radej 1998
4 | * Copyright (c) David Faure 1998
5 | *
6 | */
7 |
8 | #ifndef HTMLOPTS_H
9 | #define HTMLOPTS_H
10 |
11 | #include
12 |
13 | //-----------------------------------------------------------------------------
14 | // The "Misc Options" Tab for the HTML view contains :
15 |
16 | // Change cursor over links
17 | // Underline links
18 | // AutoLoad Images
19 | // ... there is room for others :))
20 |
21 | #include
22 | #include
23 | class KIntNumInput;
24 | class QGroupBox;
25 |
26 | class KMiscHTMLOptions : public KCModule
27 | {
28 | Q_OBJECT
29 |
30 | public:
31 | KMiscHTMLOptions(QWidget *parent, const QVariantList &);
32 | ~KMiscHTMLOptions();
33 | void load() Q_DECL_OVERRIDE;
34 | void save() Q_DECL_OVERRIDE;
35 | void defaults() Q_DECL_OVERRIDE;
36 |
37 | private:
38 | KSharedConfig::Ptr m_pConfig;
39 | QString m_groupname;
40 |
41 | QCheckBox *m_cbCursor;
42 | QCheckBox *m_pAutoRedirectCheckBox;
43 | QCheckBox *m_pOpenMiddleClick;
44 | QCheckBox *m_pBackRightClick;
45 | QGroupBox *m_pFormCompletionCheckBox;
46 | QCheckBox *m_pAdvancedAddBookmarkCheckBox;
47 | QCheckBox *m_pOnlyMarkedBookmarksCheckBox;
48 | QCheckBox *m_pAccessKeys;
49 | QCheckBox *m_pDoNotTrack;
50 | QCheckBox *m_pOfferToSaveWebsitePassword;
51 | KIntNumInput *m_pMaxFormCompletionItems;
52 | };
53 |
54 | #endif // HTMLOPTS_H
55 |
--------------------------------------------------------------------------------
/konqueror/settings/konqhtml/khttpoptdlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Jacek Konieczy
3 | * extra HTTP configuration
4 | *
5 | */
6 |
7 | #ifndef __KHTTPOPTDLG_H
8 | #define __KHTTPOPTDLG_H
9 |
10 | #include
11 | #include
12 | #include
13 |
14 | #include
15 | #include
16 | #include
17 |
18 | class KAboutData;
19 |
20 | /**
21 | * Dialog for configuring HTTP Options like charset and language negotiation
22 | * and assuming that file got from HTTP is HTML if no Content-Type is given
23 | */
24 | class KHTTPOptions : public KCModule
25 | {
26 | Q_OBJECT
27 | public:
28 | KHTTPOptions(KSharedConfig::Ptr config, const QString &group, const KAboutData *aboutData, QWidget *parent);
29 |
30 | void load() Q_DECL_OVERRIDE;
31 | void save() Q_DECL_OVERRIDE;
32 | void defaults() Q_DECL_OVERRIDE;
33 |
34 | private:
35 |
36 | KSharedConfig::Ptr m_pConfig;
37 | QString m_groupname;
38 |
39 | // Acceptable languages "LANG" - locale selected languages
40 | QLabel *lb_languages;
41 | QLineEdit *le_languages;
42 |
43 | // Acceptable charsets "CHARSET" - locale selected charset
44 | QLabel *lb_charsets;
45 | QLineEdit *le_charsets;
46 |
47 | QString defaultCharsets;
48 |
49 | private Q_SLOTS:
50 | void slotChanged();
51 |
52 | };
53 |
54 | #endif // __KHTTPOPTDLG_H
55 |
--------------------------------------------------------------------------------
/konqueror/settings/performance/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmperformance\")
2 |
3 |
4 | ########### next target ###############
5 |
6 | set(kcm_performance_PART_SRCS kcmperformance.cpp konqueror.cpp system.cpp )
7 |
8 |
9 | ki18n_wrap_ui(kcm_performance_PART_SRCS konqueror_ui.ui system_ui.ui )
10 |
11 | add_library(kcm_performance MODULE ${kcm_performance_PART_SRCS})
12 |
13 |
14 | target_link_libraries(kcm_performance KF5::ConfigWidgets KF5::KIOWidgets KF5::I18n Qt5::DBus )
15 |
16 | install(TARGETS kcm_performance DESTINATION ${KDE_INSTALL_PLUGINDIR} )
17 |
18 |
19 | ########### install files ###############
20 |
21 | install( FILES kcmkonqyperformance.desktop kcmperformance.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
22 |
23 |
--------------------------------------------------------------------------------
/konqueror/settings/performance/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env bash
2 | $EXTRACTRC *.ui >> rc.cpp
3 | $XGETTEXT *.cpp -o $podir/kcmperformance.pot
4 |
--------------------------------------------------------------------------------
/konqueror/settings/performance/konqueror.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2003 Lubos Lunak
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 |
19 | #ifndef _KCM_PERF_KONQUEROR_H
20 | #define _KCM_PERF_KONQUEROR_H
21 |
22 | #include "ui_konqueror_ui.h"
23 |
24 | namespace KCMPerformance
25 | {
26 |
27 | class Konqueror_ui : public QWidget, public Ui::Konqueror_ui
28 | {
29 | public:
30 | Konqueror_ui(QWidget *parent) : QWidget(parent)
31 | {
32 | setupUi(this);
33 | layout()->setMargin(0);
34 | }
35 | };
36 |
37 | class Konqueror
38 | : public Konqueror_ui
39 | {
40 | Q_OBJECT
41 | public:
42 | Konqueror(QWidget *parent_P = NULL);
43 | void load();
44 | void save();
45 | void defaults();
46 | Q_SIGNALS:
47 | void changed();
48 | };
49 |
50 | } // namespace
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/konqueror/settings/performance/konqueror_ui.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | KCMPerformance::Konqueror_ui
4 |
5 |
6 |
7 | 0
8 | 0
9 | 600
10 | 480
11 |
12 |
13 |
14 | -
15 |
16 |
17 | Preloading
18 |
19 |
20 |
-
21 |
22 |
23 | Preload an instance after KDE startup
24 |
25 |
26 |
27 | -
28 |
29 |
30 | Always try to have one preloaded instance
31 |
32 |
33 |
34 |
35 |
36 |
37 | -
38 |
39 |
40 | Qt::Vertical
41 |
42 |
43 | QSizePolicy::Expanding
44 |
45 |
46 |
47 | 20
48 | 160
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/konqueror/settings/performance/system.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2004 Lubos Lunak
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 |
19 | #ifndef _KCM_PERF_SYSTEM_H
20 | #define _KCM_PERF_SYSTEM_H
21 |
22 | #include
23 |
24 | #include "ui_system_ui.h"
25 |
26 | class System_ui : public QWidget, public Ui::System_ui
27 | {
28 | public:
29 | System_ui(QWidget *parent) : QWidget(parent)
30 | {
31 | setupUi(this);
32 | }
33 | };
34 |
35 | namespace KCMPerformance
36 | {
37 |
38 | class SystemWidget
39 | : public System_ui
40 | {
41 | Q_OBJECT
42 | public:
43 | SystemWidget(QWidget *parent_P = NULL);
44 | void load();
45 | void save();
46 | void defaults();
47 | Q_SIGNALS:
48 | void changed();
49 | };
50 |
51 | } // namespace
52 |
53 | #endif
54 |
--------------------------------------------------------------------------------
/konqueror/settings/performance/system_ui.ui:
--------------------------------------------------------------------------------
1 |
2 | System_ui
3 |
4 |
5 | -
6 |
7 |
8 | System Configuration
9 |
10 |
11 |
-
12 |
13 |
14 | Disable &system configuration startup check
15 |
16 |
17 |
18 | -
19 |
20 |
21 | This option may in rare cases lead to various problems. Consult the What's This (Shift+F1) help for details.
22 |
23 |
24 | true
25 |
26 |
27 |
28 |
29 |
30 |
31 | -
32 |
33 |
34 | Qt::Vertical
35 |
36 |
37 | QSizePolicy::Expanding
38 |
39 |
40 |
41 | 20
42 | 40
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/konqueror/sidebar/default_entries/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | install( FILES
2 | home.desktop
3 | root.desktop
4 | bookmarks.desktop
5 | services.desktop
6 | remote.desktop
7 | history.desktop
8 | places.desktop
9 | DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/entries )
10 |
--------------------------------------------------------------------------------
/konqueror/sidebar/history_module/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_definitions(-DTRANSLATION_DOMAIN=\"konqueror\")
2 | include_directories(
3 | ${CMAKE_CURRENT_SOURCE_DIR}/../../src # konqueror dir (for konqhistory*.h)
4 | ${CMAKE_CURRENT_SOURCE_DIR}/.. # sidebar dir
5 | )
6 |
7 | ########### the sidebar module ###############
8 |
9 | add_library(konqsidebar_history MODULE history_module.cpp)
10 | target_link_libraries(konqsidebar_history konqsidebarplugin konquerorprivate KF5::Konq KF5::Parts)
11 | install(TARGETS konqsidebar_history DESTINATION ${KDE_INSTALL_PLUGINDIR})
12 | install(FILES konqsidebar_history.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/plugins)
13 |
14 | ########### the KCM for the history ###############
15 |
16 | set(kcm_history_SRCS kcmhistory.cpp ../../src/konqhistorysettings.cpp)
17 | ki18n_wrap_ui(kcm_history_SRCS history_dlg.ui )
18 | add_library(kcm_history MODULE ${kcm_history_SRCS})
19 |
20 | # konquerorprivate is only needed for konqhistorysettings...
21 | target_link_libraries(kcm_history konquerorprivate KF5::Konq KF5::Parts )
22 |
23 | install(TARGETS kcm_history DESTINATION ${KDE_INSTALL_PLUGINDIR} )
24 | install(FILES kcmhistory.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
25 |
26 |
--------------------------------------------------------------------------------
/konqueror/sidebar/konqmultitabbar.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2009 David Faure
3 |
4 | This library is free software; you can redistribute it and/or modify
5 | it under the terms of the GNU Lesser General Public License as published by
6 | the Free Software Foundation; either version 2 of the License or ( at
7 | your option ) version 3 or, at the discretion of KDE e.V. ( which shall
8 | act as a proxy as in section 14 of the GPLv3 ), any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public License
16 | along with this library; see the file COPYING.LIB. If not, write to
17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 | Boston, MA 02110-1301, USA.
19 | */
20 |
21 | #ifndef KONQMULTITABBAR_H
22 | #define KONQMULTITABBAR_H
23 |
24 | #include
25 | #include
26 |
27 | class KonqMultiTabBar : public KMultiTabBar
28 | {
29 | Q_OBJECT
30 |
31 | public:
32 | explicit KonqMultiTabBar(QWidget *parent);
33 |
34 | Q_SIGNALS:
35 | void urlsDropped(const QList &urls);
36 |
37 | protected:
38 | virtual void dragEnterEvent(QDragEnterEvent *event);
39 | virtual void dragMoveEvent(QDragMoveEvent *event);
40 | virtual void dropEvent(QDropEvent *event);
41 | };
42 |
43 | #endif /* KONQMULTITABBAR_H */
44 |
45 |
--------------------------------------------------------------------------------
/konqueror/sidebar/konqsidebartngrc:
--------------------------------------------------------------------------------
1 | [filemanagement]
2 | OpenViews=home.desktop
3 | SingleWidgetMode=true
4 |
5 | [webbrowsing]
6 | OpenViews=bookmarks.desktop
7 | SingleWidgetMode=true
8 |
--------------------------------------------------------------------------------
/konqueror/sidebar/places_module/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ########### konqsidebar_places module ###############
2 |
3 | set(konqsidebar_places_SRCS
4 | places_module.cpp
5 | )
6 |
7 | add_library(konqsidebar_places MODULE ${konqsidebar_places_SRCS})
8 |
9 | target_link_libraries(konqsidebar_places KF5::Parts konqsidebarplugin)
10 |
11 | install(TARGETS konqsidebar_places DESTINATION ${KDE_INSTALL_PLUGINDIR})
12 |
13 | ########### install files ###############
14 |
15 | install(FILES konqsidebar_places.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/plugins)
16 |
--------------------------------------------------------------------------------
/konqueror/sidebar/test/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ########### A test module (not installed by default) ###############
2 | # TODO use it (uninstalled) from the unit test
3 |
4 | find_package(Qt5 REQUIRED COMPONENTS Test)
5 | include(ECMAddTests)
6 |
7 | set(konq_sidebartest_PART_SRCS konqsidebartest.cpp )
8 | add_library(konq_sidebartest MODULE ${konq_sidebartest_PART_SRCS})
9 | target_link_libraries(konq_sidebartest KF5::Parts konqsidebarplugin )
10 | #install(TARGETS konq_sidebartest DESTINATION ${KDE_INSTALL_PLUGINDIR} )
11 | #install( FILES test.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/entries )
12 |
13 | ########### Unit tests ###############
14 |
15 | add_executable(sidebar-modulemanagertest modulemanagertest.cpp ../module_manager.cpp)
16 | add_test(sidebar-modulemanagertest sidebar-modulemanagertest)
17 | ecm_mark_as_test(sidebar-modulemanagertest)
18 | target_link_libraries(sidebar-modulemanagertest KF5::KIOCore KF5::KDELibs4Support Qt5::Core Qt5::Test)
19 |
20 |
--------------------------------------------------------------------------------
/konqueror/sidebar/test/konqsidebartest.cpp:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | konqsidebartest.cpp
3 | -------------------
4 | begin : Sat June 2 16:25:27 CEST 2001
5 | copyright : (C) 2001 Joseph Wenninger
6 | email : jowenn@kde.org
7 | ***************************************************************************/
8 |
9 | /***************************************************************************
10 | * *
11 | * This program is free software; you can redistribute it and/or modify *
12 | * it under the terms of the GNU General Public License as published by *
13 | * the Free Software Foundation; either version 2 of the License, or *
14 | * (at your option) any later version. *
15 | * *
16 | ***************************************************************************/
17 | #include
18 | #include "konqsidebartest.h"
19 |
20 | extern "C"
21 | {
22 | Q_DECL_EXPORT void *create_konq_sidebartest(QWidget *parent, const QString &desktopname, const KConfigGroup &configGroup)
23 | {
24 | return new SidebarTest(parent, desktopname, configGroup);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # !?!?!? make a lib, or clean this up...
2 | set(libkonq_sidebar_tree_SRCS
3 | ${CMAKE_CURRENT_SOURCE_DIR}/konq_sidebartree.cpp
4 | ${CMAKE_CURRENT_SOURCE_DIR}/konq_sidebartreeitem.cpp
5 | ${CMAKE_CURRENT_SOURCE_DIR}/konq_sidebartreetoplevelitem.cpp
6 | )
7 |
8 | add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
9 |
10 | add_subdirectory( init )
11 | add_subdirectory( dirtree_module )
12 | add_subdirectory( bookmark_module )
13 |
14 | ########### next target ###############
15 |
16 | set(konqsidebar_tree_PART_SRCS konqsidebar_oldtreemodule.cpp ${libkonq_sidebar_tree_SRCS})
17 |
18 | add_library(konqsidebar_tree MODULE ${konqsidebar_tree_PART_SRCS})
19 |
20 | target_link_libraries(konqsidebar_tree ${KDE4_KDE3SUPPORT_LIBS} KF5::Parts KF5::Konq konqsidebarplugin )
21 |
22 | install(TARGETS konqsidebar_tree DESTINATION ${KDE_INSTALL_PLUGINDIR} )
23 |
24 | ########### install desktop files ###############
25 |
26 | install( FILES konqsidebar_tree.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/plugins )
27 |
28 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/bookmark_module/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(
2 | ${CMAKE_CURRENT_SOURCE_DIR}/../../ # sidebar dir
3 | ${CMAKE_CURRENT_SOURCE_DIR}/../ # trees dir
4 | ${CMAKE_CURRENT_BINARY_DIR}/../ # trees dir
5 | )
6 |
7 | set(konq_sidebartree_bookmarks_SRCS bookmark_module.cpp bookmark_item.cpp ${libkonq_sidebar_tree_SRCS})
8 |
9 | add_library(konq_sidebartree_bookmarks MODULE ${konq_sidebartree_bookmarks_SRCS})
10 |
11 | target_link_libraries(konq_sidebartree_bookmarks KF5::Parts konqsidebarplugin konq ${KDE4_KDE3SUPPORT_LIBS})
12 |
13 | install(TARGETS konq_sidebartree_bookmarks DESTINATION ${KDE_INSTALL_PLUGINDIR} )
14 |
15 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/dirtree_module/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(
2 | ${CMAKE_CURRENT_SOURCE_DIR}/../../ # sidebar dir
3 | ${CMAKE_CURRENT_SOURCE_DIR}/../ # trees dir
4 | ${CMAKE_CURRENT_BINARY_DIR}/../ # trees dir
5 | )
6 |
7 |
8 | ########### next target ###############
9 | set(konq_sidebartree_dirtree_SRCS dirtree_module.cpp dirtree_item.cpp ${libkonq_sidebar_tree_SRCS} )
10 |
11 | add_library(konq_sidebartree_dirtree MODULE ${konq_sidebartree_dirtree_SRCS})
12 |
13 | target_link_libraries(konq_sidebartree_dirtree ${KDE4_KDE3SUPPORT_LIBS} KF5::Parts konq konqsidebarplugin )
14 |
15 | install(TARGETS konq_sidebartree_dirtree DESTINATION ${KDE_INSTALL_PLUGINDIR} )
16 |
17 |
18 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/init/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory( remote )
2 | add_subdirectory( services )
3 |
4 | ########### install files ###############
5 |
6 | install( FILES dirtree_module.desktop bookmarks_module.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/dirtree )
7 |
8 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/init/README:
--------------------------------------------------------------------------------
1 | Note: increase the version in konq_tree.cpp when you add
2 | new .desktop files, otherwise they won't get used
3 | when the user already has old versions.
4 |
5 | i.e.
6 | const int currentVersion = 5; <-- change this in konq_sidebartree.cpp
7 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/init/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | add_subdirectory( ftp )
3 | add_subdirectory( web )
4 |
5 |
6 | install( FILES .directory DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/virtual_folders/remote )
7 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/init/remote/ftp/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | install( FILES .directory kde_ftp.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/virtual_folders/remote/ftp )
2 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/init/remote/web/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | install( FILES .directory apps_web.desktop dot_web.desktop kde_web.desktop look_web.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/virtual_folders/remote/web )
2 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/init/services/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | install(FILES
3 | .directory
4 | # printsystem.desktop
5 | # settings.desktop
6 | applications.desktop
7 | DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/virtual_folders/services)
8 |
9 |
--------------------------------------------------------------------------------
/konqueror/sidebar/trees/konqsidebar_oldtreemodule.h:
--------------------------------------------------------------------------------
1 | #ifndef KONQSIDEBAR_OLDTREEMODULE_H
2 | #define KONQSIDEBAR_OLDTREEMODULE_H
3 |
4 | #include
5 |
6 | class KonqSidebarTree;
7 |
8 | class KonqSidebarOldTreeModule : public KonqSidebarModule
9 | {
10 | Q_OBJECT
11 | public:
12 | KonqSidebarOldTreeModule(const KComponentData &componentData, QWidget *parent,
13 | const QString &desktopName_, const KConfigGroup &configGroup);
14 | ~KonqSidebarOldTreeModule();
15 | virtual QWidget *getWidget();
16 |
17 | public Q_SLOTS:
18 | void copy();
19 | void cut();
20 | void paste();
21 | void pasteToSelection();
22 |
23 | protected:
24 | QWidget *widget;
25 | KonqSidebarTree *tree;
26 | virtual void handleURL(const QUrl &url);
27 | };
28 |
29 | #endif // KONQSIDEBAR_TREEMODULE_H
30 |
--------------------------------------------------------------------------------
/konqueror/sidebar/web_module/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ########### konqsidebar_web module ###############
2 |
3 | set(konqsidebar_web_PART_SRCS web_module.cpp )
4 |
5 | add_library(konqsidebar_web MODULE ${konqsidebar_web_PART_SRCS})
6 |
7 | target_link_libraries(konqsidebar_web
8 | KF5::KHtml
9 | konqsidebarplugin
10 | KF5::Konq
11 | KF5::KIOGui)
12 |
13 | install(TARGETS konqsidebar_web DESTINATION ${KDE_INSTALL_PLUGINDIR} )
14 |
15 | ########### install files ###############
16 |
17 | install( FILES konqsidebar_web.desktop DESTINATION ${KDE_INSTALL_DATADIR}/konqsidebartng/plugins )
18 |
--------------------------------------------------------------------------------
/konqueror/sidebar/web_module/TODO:
--------------------------------------------------------------------------------
1 | - Apparently _content works everywhere in Mozilla. Maybe this should go into
2 | KHTMLPart afterall. That would solve the form post problem too.
3 | - Forms don't work. I don't know if they will for a long time since we can't
4 | really filter them with KHTML.
5 | - Allow setting the useragent (only do this in a clean fashion!!)
6 | - Double check the KHTML extensions for security implications.
7 |
--------------------------------------------------------------------------------
/konqueror/sidebar/web_module/test_websidebar.html:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/konqueror/src/config-konqueror.h.cmake:
--------------------------------------------------------------------------------
1 | /* Use mallinfo field hblkhd */
2 | #define KDE_MALLINFO_FIELD_hblkhd 1
3 |
4 | /* Use mallinfo field uordblks */
5 | #define KDE_MALLINFO_FIELD_uordblks 1
6 |
7 | /* Use mallinfo field usmblks */
8 | /* #undef KDE_MALLINFO_FIELD_usmblks */
9 |
10 | /* mallinfo() is available in */
11 | #cmakedefine KDE_MALLINFO_MALLOC 1
12 |
13 | /* mallinfo() is available in */
14 | #cmakedefine KDE_MALLINFO_STDLIB 1
15 |
16 | /* compiling for X11 */
17 | #cmakedefine01 KONQ_HAVE_X11
18 |
--------------------------------------------------------------------------------
/konqueror/src/delayedinitializer.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2003 Simon Hausmann
3 |
4 | This program is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; see the file COPYING. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #ifndef __delayedinitializer_h__
21 | #define __delayedinitializer_h__
22 |
23 | #include
24 | class QEvent;
25 |
26 | class DelayedInitializer : public QObject
27 | {
28 | Q_OBJECT
29 | public:
30 | DelayedInitializer(int eventType, QObject *parent);
31 |
32 | protected:
33 | bool eventFilter(QObject *receiver, QEvent *event) Q_DECL_OVERRIDE;
34 |
35 | Q_SIGNALS:
36 | void initialize();
37 |
38 | private Q_SLOTS:
39 | void slotInitialize();
40 | private:
41 | int m_eventType;
42 | bool m_signalEmitted;
43 | };
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/konqueror/src/konqanimatedlogo_p.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of the KDE project
3 | Copyright (C) 2008 David Faure
4 | Copyright (C) 2009 Christoph Feck
5 |
6 | This program is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU General Public
8 | License as published by the Free Software Foundation; either
9 | version 2 of the License, or (at your option) any later version.
10 |
11 | This program is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | General Public License for more details.
15 |
16 | You should have received a copy of the GNU General Public License
17 | along with this program; see the file COPYING. If not, write to
18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 | Boston, MA 02110-1301, USA.
20 | */
21 |
22 | #ifndef KONQANIMATEDLOGO_P_H
23 | #define KONQANIMATEDLOGO_P_H
24 |
25 | #include
26 |
27 | class QToolBar;
28 |
29 | class KonqAnimatedLogo : public KAnimatedButton
30 | {
31 | Q_OBJECT
32 |
33 | public:
34 | /**
35 | * Creates an animated logo button which follows the toolbar icon size
36 | */
37 | KonqAnimatedLogo(QWidget *parent = 0);
38 |
39 | protected:
40 | void changeEvent(QEvent *event) Q_DECL_OVERRIDE;
41 |
42 | private Q_SLOTS:
43 | void setAnimatedLogoSize(const QSize &);
44 |
45 | private:
46 | void connectToToolBar(QToolBar *);
47 | };
48 |
49 | #endif // KONQANIMATEDLOGO_P_H
50 |
--------------------------------------------------------------------------------
/konqueror/src/konqapplication.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2006 David Faure
3 |
4 | This program is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; see the file COPYING. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #ifndef KONQ_APPLICATION_H
21 | #define KONQ_APPLICATION_H
22 |
23 | #include "konqprivate_export.h"
24 | #include
25 |
26 | class QDBusMessage;
27 |
28 | class KONQ_TESTS_EXPORT KonquerorApplication : public QApplication
29 | {
30 | Q_OBJECT
31 | public:
32 | KonquerorApplication(int &argc, char **argv);
33 |
34 | public slots:
35 | void slotReparseConfiguration();
36 |
37 | private slots:
38 | void slotAddToCombo(const QString &url, const QDBusMessage &msg);
39 | void slotRemoveFromCombo(const QString &url, const QDBusMessage &msg);
40 | void slotComboCleared(const QDBusMessage &msg);
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/konqueror/src/konqbrowseriface.cpp:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2001 Simon Hausmann
3 |
4 | This program is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; see the file COPYING. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #include "konqbrowseriface.h"
21 | #include "konqview.h"
22 |
23 | KonqBrowserInterface::KonqBrowserInterface(KonqView *view)
24 | : KParts::BrowserInterface(view)
25 | {
26 | m_view = view;
27 | }
28 |
29 | uint KonqBrowserInterface::historyLength() const
30 | {
31 | return m_view->historyLength();
32 | }
33 |
34 | void KonqBrowserInterface::goHistory(int steps)
35 | {
36 | m_view->goHistory(steps);
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/konqueror/src/konqbrowseriface.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2001 Simon Hausmann
3 |
4 | This program is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; see the file COPYING. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #ifndef __konq_browseriface_h__
21 | #define __konq_browseriface_h__
22 |
23 | #include
24 |
25 | class KonqView;
26 |
27 | class KonqBrowserInterface : public KParts::BrowserInterface
28 | {
29 | Q_OBJECT
30 | Q_PROPERTY(uint historyLength READ historyLength)
31 | public:
32 | explicit KonqBrowserInterface(KonqView *view);
33 |
34 | uint historyLength() const;
35 |
36 | public Q_SLOTS:
37 | void goHistory(int);
38 |
39 | private:
40 | KonqView *m_view;
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/konqueror/src/konqhistory.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright 2009 Pino Toscano
3 |
4 | This program is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; see the file COPYING. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #ifndef KONQ_HISTORY_H
21 | #define KONQ_HISTORY_H
22 |
23 | #include
24 |
25 | namespace KonqHistory
26 | {
27 |
28 | enum ExtraData {
29 | TypeRole = Qt::UserRole + 0xaaff00,
30 | DetailedToolTipRole,
31 | UrlRole,
32 | LastVisitedRole
33 | };
34 |
35 | enum EntryType {
36 | HistoryType = 1,
37 | GroupType = 2
38 | };
39 |
40 | }
41 |
42 | #endif // KONQ_HISTORY_H
43 |
--------------------------------------------------------------------------------
/konqueror/src/konqhistorydialog.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright 2009 Pino Toscano
3 |
4 | This program is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; see the file COPYING. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #ifndef KONQ_HISTORYDIALOG_H
21 | #define KONQ_HISTORYDIALOG_H
22 |
23 | #include
24 |
25 | class KonqMainWindow;
26 | class KonqHistoryView;
27 | class QModelIndex;
28 | class QUrl;
29 |
30 | class KonqHistoryDialog : public KDialog
31 | {
32 | Q_OBJECT
33 |
34 | public:
35 | KonqHistoryDialog(KonqMainWindow *parent = Q_NULLPTR);
36 | ~KonqHistoryDialog();
37 |
38 | QSize sizeHint() const Q_DECL_OVERRIDE;
39 |
40 | private Q_SLOTS:
41 | void slotOpenWindow(const QUrl &url);
42 | void slotOpenTab(const QUrl &url);
43 | void slotOpenWindowForIndex(const QModelIndex &index);
44 |
45 | private:
46 | KonqHistoryView *m_historyView;
47 | KonqMainWindow *m_mainWindow;
48 | };
49 |
50 | #endif // KONQ_HISTORYDIALOG_H
51 |
--------------------------------------------------------------------------------
/konqueror/src/konqmouseeventfilter.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2009 David Faure
3 | Copyright (c) 2016 Anthony Fieroni
4 |
5 | This library is free software; you can redistribute it and/or modify
6 | it under the terms of the GNU Lesser General Public License as published by
7 | the Free Software Foundation; either version 2 of the License or ( at
8 | your option ) version 3 or, at the discretion of KDE e.V. ( which shall
9 | act as a proxy as in section 14 of the GPLv3 ), any later version.
10 |
11 | This library is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | Library General Public License for more details.
15 |
16 | You should have received a copy of the GNU Lesser General Public License
17 | along with this library; see the file COPYING.LIB. If not, write to
18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 | Boston, MA 02110-1301, USA.
20 | */
21 |
22 | #ifndef KONQMOUSEEVENTFILTER_H
23 | #define KONQMOUSEEVENTFILTER_H
24 |
25 | #include
26 |
27 | class KonqMouseEventFilter : public QObject
28 | {
29 | Q_OBJECT
30 |
31 | public:
32 | static KonqMouseEventFilter *self();
33 |
34 | void reparseConfiguration();
35 |
36 | protected:
37 | bool eventFilter(QObject *obj, QEvent *e) Q_DECL_OVERRIDE;
38 |
39 | private:
40 | explicit KonqMouseEventFilter();
41 | friend class KonqMouseEventFilterSingleton;
42 |
43 | bool m_bBackRightClick;
44 | };
45 |
46 | #endif /* KONQMOUSEEVENTFILTER_H */
47 |
48 |
--------------------------------------------------------------------------------
/konqueror/src/konqpreloadinghandler.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2000-2016 David Faure
3 |
4 | This program is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; see the file COPYING. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #ifndef KONQPRELOADINGHANDLER_H
21 | #define KONQPRELOADINGHANDLER_H
22 |
23 | class KonqMainWindow;
24 |
25 | class KonqPreloadingHandler
26 | {
27 | public:
28 | KonqPreloadingHandler();
29 |
30 | static KonqPreloadingHandler *self();
31 |
32 | bool registerAsPreloaded();
33 |
34 | bool hasPreloadedWindow() const;
35 |
36 | KonqMainWindow *takePreloadedWindow();
37 |
38 | void ensurePreloadedProcessExists();
39 |
40 | private:
41 | void startNextPreloadedProcess();
42 | void makePreloadedWindow();
43 |
44 | KonqMainWindow *m_preloadedWindow = nullptr;
45 | };
46 |
47 | #endif // KONQPRELOADINGHANDLER_H
48 |
--------------------------------------------------------------------------------
/konqueror/src/konqprivate_export.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2007 David Faure
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Library General Public
6 | License as published by the Free Software Foundation; either
7 | version 2 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | Library General Public License for more details.
13 |
14 | You should have received a copy of the GNU Library General Public License
15 | along with this library; see the file COPYING.LIB. If not, write to
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 | Boston, MA 02110-1301, USA.
18 | */
19 |
20 | #ifndef KONQPRIVATE_EXPORT_H
21 | #define KONQPRIVATE_EXPORT_H
22 |
23 | #include "konquerorprivate_export.h"
24 |
25 | /* Classes from the Konqueror application, which are exported only for unit tests */
26 | #ifdef COMPILING_TESTS
27 | # ifndef KONQ_TESTS_EXPORT
28 | # define KONQ_TESTS_EXPORT KONQUERORPRIVATE_EXPORT
29 | # endif
30 | #else /* not compiling tests */
31 | # define KONQ_TESTS_EXPORT
32 | #endif
33 |
34 | #endif
35 |
--------------------------------------------------------------------------------
/konqueror/src/konqsettingsxt.kcfgc:
--------------------------------------------------------------------------------
1 | File=konqueror.kcfg
2 | ClassName=KonqSettings
3 | Singleton=true
4 | Mutators=true
5 | Visibility=KONQ_TESTS_EXPORT
6 | IncludeFiles=konqprivate_export.h
7 | SourceIncludeFiles=kcompletion.h
8 |
--------------------------------------------------------------------------------
/konqueror/src/org.kde.Konqueror.HistoryManager.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/konqueror/src/org.kde.Konqueror.Main.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/konqueror/src/org.kde.Konqueror.MainWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/konqueror/src/org.kde.Konqueror.SessionManager.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/konqueror/src/org.kde.Konqueror.UndoManager.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/konqueror/src/tests/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
2 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
3 |
4 | ########### centralwidget ###############
5 |
6 | include(ECMMarkAsTest)
7 | add_executable(centralwidget centralwidget.cpp)
8 | ecm_mark_as_test(centralwidget)
9 | target_link_libraries(centralwidget
10 | Qt5::Widgets
11 | )
12 |
13 |
--------------------------------------------------------------------------------
/konqueror/src/tests/centralwidget.cpp:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2006 David Faure
3 |
4 | This program is free software: you can redistribute it and/or modify
5 | it under the terms of the GNU General Public License as published by
6 | the Free Software Foundation, either version 2 of the License, or
7 | (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program. If not, see .
16 | */
17 |
18 | #include "centralwidget.h"
19 |
20 | #include
21 | #include
22 | #include
23 |
24 | SCWMainWindow::SCWMainWindow(QWidget *parent)
25 | : QMainWindow(parent)
26 | {
27 | QLabel *widget1 = new QLabel(QStringLiteral("widget1"));
28 | setCentralWidget(widget1);
29 | QTimer::singleShot(10, this, SLOT(slotSwitchCentralWidget()));
30 | }
31 |
32 | void SCWMainWindow::slotSwitchCentralWidget()
33 | {
34 | QLabel *widget2 = new QLabel(QStringLiteral("widget2"));
35 | delete centralWidget(); // ## workaround for the crash
36 | setCentralWidget(widget2);
37 | }
38 |
39 | int main(int argc, char **argv)
40 | {
41 | QApplication app(argc, argv);
42 |
43 | SCWMainWindow *mw = new SCWMainWindow;
44 | mw->show();
45 |
46 | return app.exec();
47 | }
48 |
49 |
--------------------------------------------------------------------------------
/konqueror/src/tests/centralwidget.h:
--------------------------------------------------------------------------------
1 | /* This file is part of the KDE project
2 | Copyright (C) 2006 David Faure
3 |
4 | This program is free software: you can redistribute it and/or modify
5 | it under the terms of the GNU General Public License as published by
6 | the Free Software Foundation, either version 2 of the License, or
7 | (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program. If not, see .
16 | */
17 |
18 | #ifndef CENTRALWIDGET_H
19 | #define CENTRALWIDGET_H
20 |
21 | #include
22 |
23 | // SCW == Switch (or Set) Central Widget
24 | class SCWMainWindow : public QMainWindow
25 | {
26 | Q_OBJECT
27 | public:
28 | SCWMainWindow(QWidget *parent = Q_NULLPTR);
29 |
30 | private slots:
31 | void slotSwitchCentralWidget();
32 | };
33 |
34 | #endif
35 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory(icons)
2 | add_subdirectory(src)
3 | add_subdirectory(tests)
4 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/Mainpage.dox:
--------------------------------------------------------------------------------
1 | /** @mainpage
2 | *
3 | * Main Doxygen page for KWebKitPart.
4 | */
5 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/Messages.sh:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env bash
2 | $EXTRACTRC `find . -name '*.rc' -or -name '*.ui'` >> rc.cpp || exit 11
3 | $XGETTEXT `find . -name '*.cpp' | grep -v '/tests/'` -o $podir/webenginepart.pot
4 | rm -f rc.cpp
5 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/TODO:
--------------------------------------------------------------------------------
1 | * Proper support for KWebKitPart in the following Konqueror plugins:
2 | - adblock This plugin's GUI needs to be changed to use the KPart plugin
3 | extensions so that it is not khtml specific. Other than that
4 | kwebkitpart supports the ad filtering functionalities supported
5 | by khtml.
6 |
7 | * Add KPartStatusBarExtension support for the following plugins/features:
8 | - Popup blocker (non-plugin)
9 |
10 | * Implement some means of showing information about the webkit rendering engine:
11 | - KWebKitPart's version #
12 | - QtWebKit's version #
13 | - UserAgent string ???
14 |
15 | * Look through all of Konqueror's web configuration options and make sure we
16 | honor all those we possibly can. Here is a non-complete list of features
17 | that are either partially implemented or not implemented at all:
18 | - Change cursor over links (TODO, QtWebKit ???).
19 | - Smooth scrolling support (TODO, QtWebKit ???).
20 | - Underline links support (Partial, does not work as intended).
21 | - Enable access key navigation with Ctrl key (TODO, QtWebKit ???).
22 | - Animations (TODO, QtWebKit ???).
23 | - Draw frames around not completely loaded images (TODO, QtWebKit ???).
24 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/icons/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include(ECMInstallIcons)
2 | ecm_install_icons(${ICON_INSTALL_DIR})
3 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/icons/hi128-apps-webengine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/webenginepart/icons/hi128-apps-webengine.png
--------------------------------------------------------------------------------
/konqueror/webenginepart/icons/hi16-apps-webengine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/webenginepart/icons/hi16-apps-webengine.png
--------------------------------------------------------------------------------
/konqueror/webenginepart/icons/hi22-apps-webengine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/webenginepart/icons/hi22-apps-webengine.png
--------------------------------------------------------------------------------
/konqueror/webenginepart/icons/hi32-apps-webengine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/webenginepart/icons/hi32-apps-webengine.png
--------------------------------------------------------------------------------
/konqueror/webenginepart/icons/hi48-apps-webengine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/webenginepart/icons/hi48-apps-webengine.png
--------------------------------------------------------------------------------
/konqueror/webenginepart/icons/hi64-apps-webengine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KDE/kde-baseapps/c5bd2d667b4baa4f241eef09870e3c1ba3159649/konqueror/webenginepart/icons/hi64-apps-webengine.png
--------------------------------------------------------------------------------
/konqueror/webenginepart/scripts/codingstyle.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # Kdelibs coding style is defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style
4 | #
5 |
6 | PWD=$(pwd)
7 | cd $PWD
8 |
9 | echo "Applying astyle rules..."
10 | astyle -v --indent=spaces=4 \
11 | --brackets=linux \
12 | --indent-labels \
13 | --pad=oper --unpad=paren \
14 | --one-line=keep-statements \
15 | --convert-tabs --indent-preprocessor \
16 | `find -type f -name '*.cpp' -or -name '*.h' -or -name '*.cc' | grep -Ev "\./.+/settings/"`
17 |
18 | echo "Done!"
19 |
20 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/scripts/create_release_package.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | VERSION=${1}
4 | GITREPO=${2}
5 | OUTPUTDIR=${3}
6 |
7 | if [ -z ${VERSION} ] || [ -z {GITREPO} ]; then
8 | echo "Usage: `basename ${0}` []"
9 | exit 1
10 | fi
11 |
12 | if [ -z $OUTPUTDIR ] || [ ! -d $OUTPUTDIR ]; then
13 | OUTPUTDIR="${PWD}"
14 | fi
15 |
16 | git archive --format=tar --prefix=kwebkitpart-${VERSION}/ ${GITREPO} | bzip2 -9 > ${OUTPUTDIR}/kwebkitpart-${VERSION}.tar.bz2
17 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/src/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR})
2 |
3 | set(kwebenginepartlib_LIB_SRCS
4 | webenginepart.cpp
5 | webenginepart_ext.cpp
6 | webengineview.cpp
7 | webenginepage.cpp
8 | websslinfo.cpp
9 | webhistoryinterface.cpp
10 | settings/webenginesettings.cpp
11 | settings/webengine_filter.cpp
12 | ui/searchbar.cpp
13 | ui/passwordbar.cpp
14 | ui/featurepermissionbar.cpp
15 | )
16 |
17 | qt5_wrap_ui(kwebenginepartlib_LIB_SRCS
18 | ui/searchbar.ui
19 | )
20 |
21 | add_library(kwebenginepartlib ${kwebenginepartlib_LIB_SRCS})
22 |
23 | generate_export_header(kwebenginepartlib)
24 |
25 | target_link_libraries(kwebenginepartlib Qt5::Core Qt5::DBus Qt5::Gui Qt5::Widgets Qt5::WebEngineWidgets Qt5::PrintSupport KF5::Parts KF5::SonnetCore)
26 |
27 | target_include_directories(kwebenginepartlib PUBLIC
28 | "$"
29 | )
30 |
31 | install(TARGETS kwebenginepartlib ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
32 |
33 | add_library(webenginepart MODULE webenginepartfactory.cpp)
34 |
35 | target_link_libraries(webenginepart kwebenginepartlib)
36 |
37 | install(TARGETS webenginepart DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/parts)
38 |
39 | install(FILES webenginepart.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
40 |
41 | install(FILES webenginepart.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/webenginepart)
42 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/src/utils.h:
--------------------------------------------------------------------------------
1 | #ifndef WEBENGINEPART_UTILS_H
2 | #define WEBENGINEPART_UTILS_H
3 |
4 | namespace Utils
5 | {
6 |
7 | #define QL1S(x) QLatin1String(x)
8 | #define QL1C(x) QLatin1Char(x)
9 |
10 | inline bool isBlankUrl(const QUrl& url)
11 | {
12 | return (url.isEmpty() || url.url() == QL1S("about:blank"));
13 | }
14 |
15 | }
16 | #endif // WEBENGINEPART_UTILS_H
17 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/src/webenginepart.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Type=Service
3 | Comment=Embeddable HTML component
4 | Comment[ca]=Component HTML incrustable
5 | Comment[ca@valencia]=Component HTML incrustable
6 | Comment[cs]=Zapouzdřitelná HTML komponenta
7 | Comment[de]=Einbettungsfähige HTML-Komponente
8 | Comment[en_GB]=Embeddable HTML component
9 | Comment[es]=Componente HTML empotrable
10 | Comment[nb]=Innebyggbar HTML-komponent
11 | Comment[nl]=In te bedden HTML-component
12 | Comment[nn]=Innebyggbar HTML-komponent
13 | Comment[pl]=Osadzalny składnik HTML
14 | Comment[pt]=Componente incorporada de HTML
15 | Comment[sk]=Vložiteľný HTML komponent
16 | Comment[sl]=Vgradljiv sestavni del HTML
17 | Comment[sv]=Inbäddningsbar HTML-komponent
18 | Comment[uk]=Придатний до вбудовування компонент HTML
19 | Comment[x-test]=xxEmbeddable HTML componentxx
20 | Comment[zh_TW]=可內嵌的 HTML 元件
21 | Icon=webengine
22 | MimeType=text/html;application/xml;application/xhtml+xml;
23 | Name=WebEngine
24 | Name[ca]=WebEngine
25 | Name[ca@valencia]=WebEngine
26 | Name[cs]=WebEngine
27 | Name[de]=Webengine
28 | Name[en_GB]=WebEngine
29 | Name[es]=Motor Web
30 | Name[nl]=WebEngine
31 | Name[nn]=Vevmotor
32 | Name[pl]=SilnikSieciowy
33 | Name[pt]=Motor Web
34 | Name[sk]=WebEngine
35 | Name[sl]=Spletni pogon
36 | Name[sv]=Webbgränssnitt
37 | Name[uk]=Вебрушій
38 | Name[x-test]=xxWebEnginexx
39 | Name[zh_TW]=WebEngine
40 | X-KDE-Default-UserAgent=Mozilla/5.0 (%PLATFORM%; %SECURITY%; %OSNAME% %OSVERSION% %SYSTYPE%; %LANGUAGE%) AppleWebKit/534.34 (KHTML, like Gecko) %APPVERSION% Safari/534.34
41 | X-KDE-ServiceTypes=KParts/ReadOnlyPart,Browser/View
42 | X-KDE-Library=kf5/parts/webenginepart
43 | InitialPreference=12
44 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/src/webenginepart.rc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | HTML Toolbar
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/src/webenginepartfactory.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the KDE project.
3 | *
4 | * Copyright (C) 2008 Laurent Montel
5 | *
6 | * This library is free software; you can redistribute it and/or modify it
7 | * under the terms of the GNU Lesser General Public License as published by the
8 | * Free Software Foundation; either version 2.1 of the License, or (at your
9 | * option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful, but WITHOUT
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 | * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 | * details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library. If not, see .
18 | *
19 | */
20 |
21 | #ifndef WEBENGINEPARTFACTORY
22 | #define WEBENGINEPARTFACTORY
23 |
24 | #include
25 |
26 | #include
27 |
28 | class QWidget;
29 |
30 | class WebEngineFactory : public KPluginFactory
31 | {
32 | Q_OBJECT
33 | Q_PLUGIN_METADATA(IID "org.kde.KPluginFactory" FILE "")
34 | Q_INTERFACES(KPluginFactory)
35 | public:
36 | virtual ~WebEngineFactory();
37 | QObject *create(const char* iface, QWidget *parentWidget, QObject *parent, const QVariantList& args, const QString &keyword) Q_DECL_OVERRIDE;
38 |
39 | private Q_SLOTS:
40 | void slotDestroyed(QObject* object);
41 | void slotSaveHistory(QObject* widget, const QByteArray&);
42 |
43 | private:
44 | QHash m_historyBufContainer;
45 | };
46 |
47 | #endif // WEBENGINEPARTFACTORY
48 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/src/webhistoryinterface.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the KDE project.
3 | *
4 | * Copyright (C) 2011 Dawit Alemayehu
5 | *
6 | * This library is free software; you can redistribute it and/or modify it
7 | * under the terms of the GNU Lesser General Public License as published by the
8 | * Free Software Foundation; either version 2.1 of the License, or (at your
9 | * option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful, but WITHOUT
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 | * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 | * details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library. If not, see .
18 | *
19 | */
20 |
21 | #include "webhistoryinterface.h"
22 |
23 | #include
24 |
25 |
26 | WebHistoryInterface::WebHistoryInterface(QObject* parent)
27 | {
28 | }
29 |
30 | void WebHistoryInterface::addHistoryEntry(const QString& url)
31 | {
32 | KParts::HistoryProvider::self()->insert(url);
33 | }
34 |
35 | bool WebHistoryInterface::historyContains(const QString& url) const
36 | {
37 | return KParts::HistoryProvider::self()->contains(url);
38 | }
39 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/src/webhistoryinterface.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the KDE project.
3 | *
4 | * Copyright (C) 2011 Dawit Alemayehu
5 | *
6 | * This library is free software; you can redistribute it and/or modify it
7 | * under the terms of the GNU Lesser General Public License as published by the
8 | * Free Software Foundation; either version 2.1 of the License, or (at your
9 | * option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful, but WITHOUT
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 | * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 | * details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library. If not, see .
18 | *
19 | */
20 | #ifndef WEBHISTORYINTERFACE_H
21 | #define WEBHISTORYINTERFACE_H
22 |
23 | #include
24 |
25 |
26 | class WebHistoryInterface
27 | {
28 | public:
29 | WebHistoryInterface(QObject* parent = Q_NULLPTR);
30 | void addHistoryEntry (const QString & url);
31 | bool historyContains (const QString & url) const;
32 | };
33 |
34 | #endif //WEBHISTORYINTERFACE_H
35 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/testfiles/embed_tag_test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | <EMBED> tests
4 |
5 |
6 | KDE e.V. Report 2011 Q2
7 |
8 |
9 |
10 |
11 | KDE e.V. Report 2011 Q1
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/testfiles/frameset_test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | <FRAMESET> test
4 |
5 |
9 |
10 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/testfiles/frametest/frame_a.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Frame A
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/testfiles/frametest/frame_b.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Frame B
5 |
6 |
7 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/testfiles/frametest/frame_c.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Frame C
5 | Go to KDE website
6 |
7 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/testfiles/frametest/frame_navigation.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Frame a
4 | Frame b
5 | Frame c
6 | Invalid frame
7 | bugs.kde.org
8 |
9 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/testfiles/js.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Javascript Link Tests
4 |
38 |
39 |
40 |
44 | Javascript Link Tests
45 | resizeTo
46 | moveTo
47 | promptAndAlertMessage
48 | status
49 | JS open new window
50 | JS open new frameset
51 |
52 |
53 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/testfiles/meta_tag_refresh_test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Meta redirect test
4 |
5 |
6 |
7 | You will be redirected to kde.org in 10 seconds.
8 |
9 | If the stop button is active (not disabled) after the page has completely loaded, it
10 | means the rendering engine allows you to cancel <META> based redirect requests.
11 | Otherwise, you are not able to stop redirects or refresh requests set by web pages.
12 |
13 |
14 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/tests/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_executable(webenginepart_tester webenginepart_tester.cpp)
2 | target_link_libraries(webenginepart_tester kwebenginepartlib Qt5::Core Qt5::Gui Qt5::Widgets Qt5::WebEngineWidgets KF5::I18n KF5::KDELibs4Support)
3 |
--------------------------------------------------------------------------------
/konqueror/webenginepart/webenginepart.lsm:
--------------------------------------------------------------------------------
1 | Begin3
2 | Title: webenginepart
3 | Version: 1.2.0
4 | Entered-date: 06APR2011
5 | Description: A WebEngine browser component for KDE (KPart)
6 | Keywords: webengine, webenginepart
7 | Author: Trolltech ASA
8 | Urs Wolfer
9 | Laurent Montel
10 | Dawit Alemayehu
11 | Sune Vuorela
12 | Maintained-by: Sune Vuorela
13 | Primary-site:
14 | Home-Page:
15 | Original-site: None
16 | Platforms: KF5 and higher
17 | Copying-policy: LGPL
18 | End
19 |
--------------------------------------------------------------------------------