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
|
2014-01-23 03:59:48 -07:00
|
|
|
* GNU General Public License for more details.
|
2004-12-15 09:38:37 -07:00
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-01-23 03:59:48 -07:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2004-12-15 09:38:37 -07:00
|
|
|
*/
|
2013-05-27 05:20:16 -06:00
|
|
|
|
|
|
|
#ifndef GPARTED_DIALOGFEATURES_H
|
|
|
|
#define GPARTED_DIALOGFEATURES_H
|
2006-04-02 08:35:21 -06:00
|
|
|
|
2019-04-20 02:25:34 -06:00
|
|
|
|
2018-01-18 09:26:20 -07:00
|
|
|
#include "FileSystem.h"
|
2004-12-15 09:38:37 -07:00
|
|
|
|
|
|
|
#include <gtkmm/dialog.h>
|
2013-09-28 02:17:39 -06:00
|
|
|
#include <gtkmm/frame.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>
|
2013-12-03 13:14:56 -07:00
|
|
|
#include <gtkmm/scrolledwindow.h>
|
2019-04-20 02:25:34 -06:00
|
|
|
#include <glibmm/ustring.h>
|
|
|
|
#include <gdkmm/pixbuf.h>
|
|
|
|
#include <vector>
|
|
|
|
|
2004-12-15 09:38:37 -07:00
|
|
|
|
|
|
|
namespace GParted
|
|
|
|
{
|
|
|
|
|
2021-07-24 12:39:13 -06:00
|
|
|
|
2006-04-05 03:33:04 -06:00
|
|
|
class DialogFeatures : public Gtk::Dialog
|
2004-12-15 09:38:37 -07:00
|
|
|
{
|
|
|
|
public:
|
2021-07-24 12:39:13 -06:00
|
|
|
DialogFeatures();
|
|
|
|
~DialogFeatures();
|
2006-04-05 03:33:04 -06:00
|
|
|
|
2019-04-17 13:00:11 -06:00
|
|
|
void load_filesystems(const std::vector<FS>& fss);
|
|
|
|
|
2004-12-15 09:38:37 -07:00
|
|
|
private:
|
2019-04-19 13:16:40 -06:00
|
|
|
void load_one_filesystem(const FS& fs);
|
2004-12-15 09:38:37 -07:00
|
|
|
|
2021-07-24 12:39:13 -06:00
|
|
|
Gtk::Frame legend_frame;
|
2004-12-15 09:38:37 -07:00
|
|
|
Gtk::TreeView treeview_filesystems;
|
|
|
|
Gtk::TreeRow treerow;
|
2013-12-03 13:14:56 -07:00
|
|
|
Gtk::ScrolledWindow filesystems_scrolled ;
|
2004-12-18 08:51:48 -07:00
|
|
|
Glib::RefPtr<Gtk::ListStore> liststore_filesystems;
|
2021-07-24 12:39:13 -06:00
|
|
|
|
|
|
|
struct treeview_filesystems_Columns : public Gtk::TreeModelColumnRecord
|
2004-12-15 09:38:37 -07:00
|
|
|
{
|
2019-12-02 11:35:18 -07:00
|
|
|
Gtk::TreeModelColumn<Glib::ustring> fsname;
|
2021-07-24 12:39:13 -06:00
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> create;
|
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> grow;
|
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> online_grow;
|
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> shrink;
|
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> online_shrink;
|
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> move;
|
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> copy;
|
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> check;
|
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> label;
|
2021-07-22 03:39:50 -06:00
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> online_label;
|
2021-07-24 12:39:13 -06:00
|
|
|
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> uuid;
|
|
|
|
Gtk::TreeModelColumn<Glib::ustring> software;
|
|
|
|
|
|
|
|
treeview_filesystems_Columns()
|
2006-03-24 12:08:41 -07:00
|
|
|
{
|
2019-12-02 11:35:18 -07:00
|
|
|
add(fsname);
|
2021-07-24 12:39:13 -06:00
|
|
|
add(create);
|
|
|
|
add(grow);
|
|
|
|
add(online_grow);
|
|
|
|
add(shrink);
|
|
|
|
add(online_shrink);
|
|
|
|
add(move);
|
|
|
|
add(copy);
|
|
|
|
add(check);
|
|
|
|
add(label);
|
2021-07-22 03:39:50 -06:00
|
|
|
add(online_label);
|
2021-07-24 12:39:13 -06:00
|
|
|
add(uuid);
|
|
|
|
add(software);
|
2006-03-24 12:08:41 -07:00
|
|
|
}
|
2004-12-15 09:38:37 -07:00
|
|
|
};
|
2006-04-02 08:04:44 -06:00
|
|
|
|
2021-07-24 12:39:13 -06:00
|
|
|
treeview_filesystems_Columns treeview_filesystems_columns;
|
|
|
|
|
|
|
|
Glib::RefPtr<Gdk::Pixbuf> icon_yes, icon_no, icon_blank;
|
2004-12-15 09:38:37 -07:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:39:13 -06:00
|
|
|
|
2004-12-15 09:38:37 -07:00
|
|
|
} //GParted
|
|
|
|
|
2013-05-27 05:20:16 -06:00
|
|
|
#endif /* GPARTED_DIALOGFEATURES_H */
|