File indexing completed on 2024-12-22 04:15:05
0001 /* 0002 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "DbExplorer.h" 0008 0009 #include <cmath> 0010 0011 #include <klocalizedstring.h> 0012 #include <kis_debug.h> 0013 #include <kpluginfactory.h> 0014 #include <kis_icon.h> 0015 #include <KisViewManager.h> 0016 #include <kis_action.h> 0017 #include "DlgDbExplorer.h" 0018 0019 K_PLUGIN_FACTORY_WITH_JSON(DbExplorerFactory, "kritadbexplorer.json", registerPlugin<DbExplorer>();) 0020 0021 DbExplorer::DbExplorer(QObject *parent, const QVariantList &) 0022 : KisActionPlugin(parent) 0023 { 0024 KisAction *action = createAction("dbexplorer"); 0025 connect(action, SIGNAL(triggered()), this, SLOT(slotDbExplorer())); 0026 } 0027 0028 0029 DbExplorer::~DbExplorer() 0030 { 0031 } 0032 0033 void DbExplorer::slotDbExplorer() 0034 { 0035 DlgDbExplorer dlgDbExplorer(viewManager()->mainWindowAsQWidget()); 0036 dlgDbExplorer.exec(); 0037 } 0038 0039 #include "DbExplorer.moc"