2004-09-19 14:24:53 -06: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
|
2014-01-23 03:59:48 -07:00
|
|
|
* GNU General Public License for more details.
|
2004-09-19 14:24:53 -06: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-09-19 14:24:53 -06:00
|
|
|
*/
|
|
|
|
|
2013-05-27 05:20:16 -06:00
|
|
|
#ifndef GPARTED_DIALOG_PARTITION_INFO_H
|
|
|
|
#define GPARTED_DIALOG_PARTITION_INFO_H
|
2004-09-19 14:24:53 -06:00
|
|
|
|
|
|
|
//what kind of info would one prefer to see here?
|
|
|
|
//my guess is, it's best to keep the amount of info minimal and wait for users requests
|
|
|
|
|
2016-10-18 16:45:28 -06:00
|
|
|
#include "Partition.h"
|
|
|
|
#include "i18n.h"
|
2004-09-19 14:24:53 -06:00
|
|
|
|
|
|
|
#include <gtkmm/dialog.h>
|
|
|
|
#include <gtkmm/stock.h>
|
|
|
|
#include <gtkmm/frame.h>
|
|
|
|
#include <gtkmm/drawingarea.h>
|
2014-04-14 12:56:51 -06:00
|
|
|
#include <gtkmm/scrolledwindow.h>
|
2004-09-19 14:24:53 -06:00
|
|
|
#include <gtkmm/table.h>
|
|
|
|
|
|
|
|
#define BORDER 8
|
2014-04-14 12:56:51 -06:00
|
|
|
|
2004-09-19 14:24:53 -06:00
|
|
|
namespace GParted
|
2014-04-14 12:56:51 -06:00
|
|
|
{
|
2004-09-19 14:24:53 -06:00
|
|
|
|
|
|
|
class Dialog_Partition_Info : public Gtk::Dialog
|
|
|
|
{
|
|
|
|
public:
|
2004-10-06 13:06:43 -06:00
|
|
|
Dialog_Partition_Info( const Partition & partition );
|
2004-09-19 14:24:53 -06:00
|
|
|
~Dialog_Partition_Info();
|
|
|
|
|
|
|
|
private:
|
2006-01-26 13:58:55 -07:00
|
|
|
void init_drawingarea() ;
|
|
|
|
void Display_Info();
|
2004-09-19 14:24:53 -06:00
|
|
|
|
2018-08-02 10:41:40 -06:00
|
|
|
// Signal handler
|
2004-10-06 13:06:43 -06:00
|
|
|
bool drawingarea_on_expose( GdkEventExpose *ev );
|
2004-09-19 14:24:53 -06:00
|
|
|
|
2015-05-24 04:23:06 -06:00
|
|
|
const Partition & partition; // (Alias to element in Win_GParted::display_partitions[] vector).
|
2004-09-19 14:24:53 -06:00
|
|
|
|
|
|
|
Gtk::HBox *hbox ;
|
|
|
|
Gtk::DrawingArea drawingarea ;
|
|
|
|
Gtk::Frame *frame ;
|
2014-04-14 12:56:51 -06:00
|
|
|
Gtk::VBox info_msg_vbox ;
|
|
|
|
Gtk::ScrolledWindow info_scrolled ;
|
2004-09-19 14:24:53 -06:00
|
|
|
|
|
|
|
Glib::RefPtr<Pango::Layout> pango_layout;
|
|
|
|
|
2012-01-10 07:44:03 -07:00
|
|
|
Gdk::Color color_partition, color_used, color_unused, color_unallocated, color_text ;
|
2004-09-19 14:24:53 -06:00
|
|
|
|
2012-01-10 07:44:03 -07:00
|
|
|
int used, unused, unallocated ;
|
2004-09-19 14:24:53 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
} //GParted
|
|
|
|
|
2013-05-27 05:20:16 -06:00
|
|
|
#endif /* GPARTED_DIALOG_PARTITION_INFO_H */
|