2004-12-15 16:38:37 +00:00
|
|
|
/* Copyright (C) 2004 Bart
|
|
|
|
*
|
|
|
|
* 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 Library 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DIALOG_FILESYSTEMS
|
|
|
|
#define DIALOG_FILESYSTEMS
|
2006-03-24 19:08:41 +00:00
|
|
|
//FIXME add more info ( at least 'detect' which will be any filesystem we _can_ detect (and should therefore have
|
|
|
|
//it's own class) )
|
2005-11-25 12:59:47 +00:00
|
|
|
#include "../include/Utils.h"
|
2004-12-15 16:38:37 +00:00
|
|
|
|
|
|
|
#include <gtkmm/dialog.h>
|
|
|
|
#include <gtkmm/treeview.h>
|
2004-12-18 15:51:48 +00:00
|
|
|
#include <gtkmm/liststore.h>
|
2004-12-15 16:38:37 +00:00
|
|
|
|
|
|
|
namespace GParted
|
|
|
|
{
|
|
|
|
|
|
|
|
class Dialog_Filesystems : public Gtk::Dialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2006-03-24 19:08:41 +00:00
|
|
|
Dialog_Filesystems() ;
|
2004-12-15 16:38:37 +00:00
|
|
|
void Load_Filesystems( const std::vector< FS > & FILESYSTEMS ) ;
|
2006-03-24 19:08:41 +00:00
|
|
|
~Dialog_Filesystems() ;
|
2004-12-15 16:38:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void Show_Filesystem( const FS & fs ) ;
|
|
|
|
|
|
|
|
Gtk::TreeView treeview_filesystems;
|
|
|
|
Gtk::TreeRow treerow;
|
2004-12-18 15:51:48 +00:00
|
|
|
Glib::RefPtr<Gtk::ListStore> liststore_filesystems;
|
2004-12-15 16:38:37 +00:00
|
|
|
|
|
|
|
struct treeview_filesystems_Columns : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
|
|
|
Gtk::TreeModelColumn<Glib::ustring> filesystem;
|
|
|
|
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > create;
|
|
|
|
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > grow;
|
|
|
|
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > shrink;
|
|
|
|
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > move;
|
|
|
|
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > copy;
|
|
|
|
|
2006-03-24 19:08:41 +00:00
|
|
|
treeview_filesystems_Columns()
|
|
|
|
{
|
|
|
|
add( filesystem ); add( create ); add( grow );
|
|
|
|
add( shrink ); add( move ); add( copy );
|
|
|
|
}
|
2004-12-15 16:38:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
treeview_filesystems_Columns treeview_filesystems_columns ;
|
|
|
|
};
|
|
|
|
|
|
|
|
} //GParted
|
|
|
|
|
|
|
|
#endif //DIALOG_FILESYSTEMS
|