1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
/* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GPARTED_DIALOG_PARTITION_INFO_H
#define GPARTED_DIALOG_PARTITION_INFO_H
//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
#include "Partition.h"
#include "i18n.h"
#include <gtkmm/dialog.h>
#include <gtkmm/stock.h>
#include <gtkmm/frame.h>
#include <gtkmm/drawingarea.h>
#include <gtkmm/scrolledwindow.h>
#define BORDER 8
namespace GParted
{
class Dialog_Partition_Info : public Gtk::Dialog
{
public:
Dialog_Partition_Info( const Partition & partition );
private:
void init_drawingarea() ;
void Display_Info();
// Signal handler
bool drawingarea_on_draw(const Cairo::RefPtr<Cairo::Context>& cr);
const Partition& partition; // (Alias to element in Win_GParted::m_display_device.partitions[] vector).
Gtk::Box *hbox;
Gtk::DrawingArea drawingarea ;
Gtk::Frame *frame ;
Gtk::Box info_msg_vbox;
Gtk::ScrolledWindow info_scrolled ;
Glib::RefPtr<Pango::Layout> pango_layout;
Gdk::RGBA color_partition;
Gdk::RGBA color_used;
Gdk::RGBA color_unused;
Gdk::RGBA color_unallocated;
Gdk::RGBA color_text;
int used, unused, unallocated ;
};
} // namespace GParted
#endif /* GPARTED_DIALOG_PARTITION_INFO_H */
|