2009-11-05 11:08:32 -07:00
|
|
|
/* Copyright (C) 2004-2006 Bart 'plors' Hakvoort
|
|
|
|
* Copyright (C) 2008 Curtis Gedak
|
2004-12-15 09:38:37 -07:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2006-04-05 03:33:04 -06:00
|
|
|
#ifndef DIALOG_FEATURES
|
|
|
|
#define DIALOG_FEATURES
|
2006-04-02 08:35:21 -06:00
|
|
|
|
2005-11-25 05:59:47 -07:00
|
|
|
#include "../include/Utils.h"
|
2004-12-15 09:38:37 -07:00
|
|
|
|
|
|
|
#include <gtkmm/dialog.h>
|
2008-11-14 13:18:46 -07:00
|
|
|
#include <gtkmm/expander.h>
|
2004-12-15 09:38:37 -07:00
|
|
|
#include <gtkmm/treeview.h>
|
2004-12-18 08:51:48 -07:00
|
|
|
#include <gtkmm/liststore.h>
|
2006-08-27 13:29:24 -06:00
|
|
|
#include <gtkmm/image.h>
|
2004-12-15 09:38:37 -07:00
|
|
|
|
|
|
|
namespace GParted
|
|
|
|
{
|
|
|
|
|
2006-04-05 03:33:04 -06:00
|
|
|
class DialogFeatures : public Gtk::Dialog
|
2004-12-15 09:38:37 -07:00
|
|
|
{
|
|
|
|
public:
|
2006-04-05 03:33:04 -06:00
|
|
|
DialogFeatures() ;
|
|
|
|
~DialogFeatures() ;
|
|
|
|
|
|
|
|
void load_filesystems( const std::vector<FS> & FILESYSTEMS ) ;
|
2004-12-15 09:38:37 -07:00
|
|
|
|
|
|
|
private:
|
2006-04-05 03:33:04 -06:00
|
|
|
void show_filesystem( const FS & fs ) ;
|
2004-12-15 09:38:37 -07:00
|
|
|
|
2008-11-14 13:18:46 -07:00
|
|
|
Gtk::Expander expander_legend ;
|
2004-12-15 09:38:37 -07:00
|
|
|
Gtk::TreeView treeview_filesystems;
|
|
|
|
Gtk::TreeRow treerow;
|
2004-12-18 08:51:48 -07:00
|
|
|
Glib::RefPtr<Gtk::ListStore> liststore_filesystems;
|
2004-12-15 09:38:37 -07:00
|
|
|
|
|
|
|
struct treeview_filesystems_Columns : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
|
|
|
Gtk::TreeModelColumn<Glib::ustring> filesystem;
|
2006-04-02 08:04:44 -06:00
|
|
|
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-04-03 12:48:53 -06:00
|
|
|
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > check ;
|
2008-04-07 13:41:18 -06:00
|
|
|
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > label ;
|
2012-01-22 13:49:52 -07:00
|
|
|
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > uuid ;
|
2008-11-14 13:18:46 -07:00
|
|
|
Gtk::TreeModelColumn<Glib::ustring> software ;
|
2004-12-15 09:38:37 -07:00
|
|
|
|
2006-03-24 12:08:41 -07:00
|
|
|
treeview_filesystems_Columns()
|
|
|
|
{
|
2006-04-02 08:04:44 -06:00
|
|
|
add( filesystem );
|
|
|
|
add( create ) ;
|
|
|
|
add( grow ) ;
|
|
|
|
add( shrink ) ;
|
|
|
|
add( move ) ;
|
|
|
|
add( copy ) ;
|
2006-04-03 12:48:53 -06:00
|
|
|
add( check ) ;
|
2008-04-07 13:41:18 -06:00
|
|
|
add( label ) ;
|
2012-01-22 13:49:52 -07:00
|
|
|
add( uuid ) ;
|
2008-11-14 13:18:46 -07:00
|
|
|
add( software ) ;
|
2006-03-24 12:08:41 -07:00
|
|
|
}
|
2004-12-15 09:38:37 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
treeview_filesystems_Columns treeview_filesystems_columns ;
|
2006-04-02 08:04:44 -06:00
|
|
|
|
|
|
|
Glib::RefPtr<Gdk::Pixbuf> icon_yes, icon_no ;
|
2004-12-15 09:38:37 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} //GParted
|
|
|
|
|
2006-04-05 03:33:04 -06:00
|
|
|
#endif //DIALOG_FEATURES
|