diff --git a/src/projects/k3bprojectplugindialog.cpp b/src/projects/k3bprojectplugindialog.cpp index 994424f49..84841f6e6 100644 --- a/src/projects/k3bprojectplugindialog.cpp +++ b/src/projects/k3bprojectplugindialog.cpp @@ -1,61 +1,60 @@ /* * * Copyright (C) 2005-2009 Sebastian Trueg * * This file is part of the K3b project. * Copyright (C) 1998-2009 Sebastian Trueg * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * See the file "COPYING" for the exact licensing terms. */ #include "k3bprojectplugindialog.h" #include "k3bprojectplugin.h" #include K3b::ProjectPluginDialog::ProjectPluginDialog( K3b::ProjectPlugin* plugin, K3b::Doc* doc, QWidget* parent ) : K3b::InteractionDialog( parent, QString(), QString(), START_BUTTON|CANCEL_BUTTON, START_BUTTON, - plugin->metaObject()->className() ), - m_plugin(plugin) + plugin->metaObject()->className() ) { m_pluginGui = plugin->createGUI( doc, this ); Q_ASSERT( m_pluginGui ); Q_ASSERT( m_pluginGui->qWidget() ); setMainWidget( m_pluginGui->qWidget() ); setTitle( m_pluginGui->title(), m_pluginGui->subTitle() ); } K3b::ProjectPluginDialog::~ProjectPluginDialog() { } void K3b::ProjectPluginDialog::slotStartClicked() { m_pluginGui->activate(); } void K3b::ProjectPluginDialog::saveSettings( KConfigGroup config ) { m_pluginGui->saveSettings( config ); } void K3b::ProjectPluginDialog::loadSettings( const KConfigGroup& config ) { m_pluginGui->readSettings( config ); } diff --git a/src/projects/k3bprojectplugindialog.h b/src/projects/k3bprojectplugindialog.h index 8a085c58a..a79970372 100644 --- a/src/projects/k3bprojectplugindialog.h +++ b/src/projects/k3bprojectplugindialog.h @@ -1,44 +1,43 @@ /* * * Copyright (C) 2005 Sebastian Trueg * * This file is part of the K3b project. * Copyright (C) 1998-2007 Sebastian Trueg * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * See the file "COPYING" for the exact licensing terms. */ #ifndef _K3B_PROJECTPLUGIN_DIALOG_H_ #define _K3B_PROJECTPLUGIN_DIALOG_H_ #include "k3binteractiondialog.h" namespace K3b { class ProjectPlugin; class ProjectPluginGUIBase; class Doc; class ProjectPluginDialog : public InteractionDialog { Q_OBJECT public: ProjectPluginDialog( ProjectPlugin*, Doc*, QWidget* ); ~ProjectPluginDialog(); protected Q_SLOTS: void slotStartClicked(); void saveSettings( KConfigGroup config ); void loadSettings( const KConfigGroup& config ); private: - ProjectPlugin* m_plugin; ProjectPluginGUIBase* m_pluginGui; }; } #endif