move FileSystemSupportDialogWidget to a file of its own

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128905
This commit is contained in:
Volker Lanz 2010-05-20 16:09:29 +00:00
parent bdfce5576f
commit 08da1fac60
4 changed files with 69 additions and 18 deletions

View File

@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2008 by Volker Lanz <vl@fidra.de> *
* Copyright (C) 2008, 2010 by Volker Lanz <vl@fidra.de> *
* *
* 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 *
@ -18,11 +18,11 @@
***************************************************************************/
#include "gui/filesystemsupportdialog.h"
#include "gui/filesystemsupportdialogwidget.h"
#include "fs/filesystem.h"
#include "fs/filesystemfactory.h"
#include <kdebug.h>
#include <klocale.h>
#include <kpushbutton.h>

View File

@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2008 by Volker Lanz <vl@fidra.de> *
* Copyright (C) 2008, 2010 by Volker Lanz <vl@fidra.de> *
* *
* 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 *
@ -21,14 +21,14 @@
#define FILESYSTEMSUPPORTDIALOG__H
#include "ui_filesystemsupportdialogwidgetbase.h"
#include <QWidget>
#include <kdialog.h>
class KPushButton;
class FileSystemSupportDialogWidget;
/** Show supported Operations
Dialog to show which Operations are supported for which type of FileSystem.
@ -40,19 +40,6 @@ class FileSystemSupportDialog : public KDialog
Q_OBJECT
Q_DISABLE_COPY(FileSystemSupportDialog)
private:
class FileSystemSupportDialogWidget : public QWidget, public Ui::FileSystemSupportDialogWidgetBase
{
public:
FileSystemSupportDialogWidget(QWidget* parent) : QWidget(parent) { setupUi(this); }
public:
QTreeWidget& tree() { Q_ASSERT(m_Tree); return *m_Tree; }
const QTreeWidget& tree() const { Q_ASSERT(m_Tree); return *m_Tree; }
KPushButton& buttonRescan() { Q_ASSERT(m_ButtonRescan); return *m_ButtonRescan; }
const KPushButton& buttonRescan() const { Q_ASSERT(m_ButtonRescan); return *m_ButtonRescan; }
};
public:
FileSystemSupportDialog(QWidget* parent);
~FileSystemSupportDialog();

View File

@ -0,0 +1,26 @@
/***************************************************************************
* Copyright (C) 2008,2010 by Volker Lanz <vl@fidra.de> *
* *
* 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. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "gui/filesystemsupportdialogwidget.h"
FileSystemSupportDialogWidget::FileSystemSupportDialogWidget(QWidget* parent) :
QWidget(parent)
{
setupUi(this);
}

View File

@ -0,0 +1,38 @@
/***************************************************************************
* Copyright (C) 2008,2010 by Volker Lanz <vl@fidra.de> *
* *
* 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. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#if !defined(FILESYSTEMSUPPORTDIALOGWIDGET__H)
#define FILESYSTEMSUPPORTDIALOGWIDGET__H
#include "ui_filesystemsupportdialogwidgetbase.h"
class FileSystemSupportDialogWidget : public QWidget, public Ui::FileSystemSupportDialogWidgetBase
{
public:
FileSystemSupportDialogWidget(QWidget* parent);
public:
QTreeWidget& tree() { Q_ASSERT(m_Tree); return *m_Tree; }
const QTreeWidget& tree() const { Q_ASSERT(m_Tree); return *m_Tree; }
KPushButton& buttonRescan() { Q_ASSERT(m_ButtonRescan); return *m_ButtonRescan; }
const KPushButton& buttonRescan() const { Q_ASSERT(m_ButtonRescan); return *m_ButtonRescan; }
};
#endif