disabled resizing of this dialog renamed 'Filesystems' to 'Features' in

* src/DialogManageFlags.cc: disabled resizing of this dialog
* include/DialogFeatures.h,
  include/Makefile.am,
  include/Win_GParted.h,
  src/DialogFeatures.cc,
  src/Makefile.am,
  src/Win_GParted.cc: renamed 'Filesystems' to 'Features' in the
  featuredialog to better reflect the actual functionality
* include/Dialog_Filesystems.h,
  src/Dialog_Filesystems.cc: removed
This commit is contained in:
Bart Hakvoort 2006-04-05 09:33:04 +00:00
parent 9ca2e680d7
commit 17e088553d
9 changed files with 46 additions and 31 deletions

View File

@ -1,3 +1,16 @@
2006-04-05 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/DialogManageFlags.cc: disabled resizing of this dialog
* include/DialogFeatures.h,
include/Makefile.am,
include/Win_GParted.h,
src/DialogFeatures.cc,
src/Makefile.am,
src/Win_GParted.cc: renamed 'Filesystems' to 'Features' in the
featuredialog to better reflect the actual functionality
* include/Dialog_Filesystems.h,
src/Dialog_Filesystems.cc: removed
2006-04-04 Bart Hakvoort <hakvoort@cvs.gnome.org> 2006-04-04 Bart Hakvoort <hakvoort@cvs.gnome.org>
* configure.in: bumped to gparted-0.2.4 * configure.in: bumped to gparted-0.2.4

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2004 Bart /* Copyright (C) 2004-2006 Bart 'plors' Hakvoort
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -15,8 +15,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef DIALOG_FILESYSTEMS #ifndef DIALOG_FEATURES
#define DIALOG_FILESYSTEMS #define DIALOG_FEATURES
#include "../include/Utils.h" #include "../include/Utils.h"
@ -27,15 +27,16 @@
namespace GParted namespace GParted
{ {
class Dialog_Filesystems : public Gtk::Dialog class DialogFeatures : public Gtk::Dialog
{ {
public: public:
Dialog_Filesystems() ; DialogFeatures() ;
void Load_Filesystems( const std::vector<FS> & FILESYSTEMS ) ; ~DialogFeatures() ;
~Dialog_Filesystems() ;
void load_filesystems( const std::vector<FS> & FILESYSTEMS ) ;
private: private:
void Show_Filesystem( const FS & fs ) ; void show_filesystem( const FS & fs ) ;
Gtk::TreeView treeview_filesystems; Gtk::TreeView treeview_filesystems;
Gtk::TreeRow treerow; Gtk::TreeRow treerow;
@ -74,4 +75,4 @@ private:
} //GParted } //GParted
#endif //DIALOG_FILESYSTEMS #endif //DIALOG_FEATURES

View File

@ -4,12 +4,12 @@ EXTRA_DIST = \
Device.h \ Device.h \
Dialog_Base_Partition.h \ Dialog_Base_Partition.h \
Dialog_Disklabel.h \ Dialog_Disklabel.h \
Dialog_Filesystems.h \
Dialog_Partition_Copy.h \ Dialog_Partition_Copy.h \
Dialog_Partition_Info.h \ Dialog_Partition_Info.h \
Dialog_Partition_New.h \ Dialog_Partition_New.h \
Dialog_Partition_Resize_Move.h \ Dialog_Partition_Resize_Move.h \
Dialog_Progress.h \ Dialog_Progress.h \
DialogFeatures.h \
DialogManageFlags.h \ DialogManageFlags.h \
DrawingAreaVisualDisk.h \ DrawingAreaVisualDisk.h \
FileSystem.h \ FileSystem.h \
@ -38,5 +38,5 @@ EXTRA_DIST = \
ntfs.h \ ntfs.h \
reiser4.h \ reiser4.h \
reiserfs.h \ reiserfs.h \
ufs.h \ ufs.h \
xfs.h xfs.h

View File

@ -127,7 +127,7 @@ private:
void on_show() ; void on_show() ;
void menu_gparted_refresh_devices(); void menu_gparted_refresh_devices();
void menu_gparted_filesystems(); void menu_gparted_features();
void menu_gparted_quit(); void menu_gparted_quit();
void menu_view_harddisk_info(); void menu_view_harddisk_info();
void menu_view_operations(); void menu_view_operations();

View File

@ -3,12 +3,12 @@
gparted.desktop.in gparted.desktop.in
src/Dialog_Base_Partition.cc src/Dialog_Base_Partition.cc
src/Dialog_Disklabel.cc src/Dialog_Disklabel.cc
src/Dialog_Filesystems.cc
src/Dialog_Partition_Copy.cc src/Dialog_Partition_Copy.cc
src/Dialog_Partition_Info.cc src/Dialog_Partition_Info.cc
src/Dialog_Partition_New.cc src/Dialog_Partition_New.cc
src/Dialog_Partition_Resize_Move.cc src/Dialog_Partition_Resize_Move.cc
src/Dialog_Progress.cc src/Dialog_Progress.cc
src/DialogFeatures.cc
src/DialogManageFlags.cc src/DialogManageFlags.cc
src/GParted_Core.cc src/GParted_Core.cc
src/OperationCopy.cc src/OperationCopy.cc

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2004 Bart /* Copyright (C) 2004-2006 Bart 'plors' Hakvoort
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -15,16 +15,16 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../include/Dialog_Filesystems.h" #include "../include/DialogFeatures.h"
#include <gtkmm/stock.h> #include <gtkmm/stock.h>
namespace GParted namespace GParted
{ {
Dialog_Filesystems::Dialog_Filesystems() DialogFeatures::DialogFeatures()
{ {
set_title( _("Filesystems") ) ; set_title( _("Features") ) ;
set_has_separator( false ) ; set_has_separator( false ) ;
set_resizable( false ) ; set_resizable( false ) ;
@ -52,15 +52,15 @@ Dialog_Filesystems::Dialog_Filesystems()
show_all_children() ; show_all_children() ;
} }
void Dialog_Filesystems::Load_Filesystems( const std::vector<FS> & FILESYSTEMS ) void DialogFeatures::load_filesystems( const std::vector<FS> & FILESYSTEMS )
{ {
liststore_filesystems ->clear() ; liststore_filesystems ->clear() ;
for ( unsigned short t = 0; t < FILESYSTEMS .size() -1 ; t++ ) for ( unsigned short t = 0; t < FILESYSTEMS .size() -1 ; t++ )
Show_Filesystem( FILESYSTEMS[ t ] ) ; show_filesystem( FILESYSTEMS[ t ] ) ;
} }
void Dialog_Filesystems::Show_Filesystem( const FS & fs ) void DialogFeatures::show_filesystem( const FS & fs )
{ {
treerow = *( liststore_filesystems ->append() ); treerow = *( liststore_filesystems ->append() );
treerow[ treeview_filesystems_columns .filesystem ] = Utils::get_filesystem_string( fs .filesystem ) ; treerow[ treeview_filesystems_columns .filesystem ] = Utils::get_filesystem_string( fs .filesystem ) ;
@ -75,7 +75,7 @@ void Dialog_Filesystems::Show_Filesystem( const FS & fs )
treerow[ treeview_filesystems_columns .check ] = fs .check ? icon_yes : icon_no ; treerow[ treeview_filesystems_columns .check ] = fs .check ? icon_yes : icon_no ;
} }
Dialog_Filesystems::~Dialog_Filesystems() DialogFeatures::~DialogFeatures()
{ {
} }

View File

@ -30,7 +30,7 @@ DialogManageFlags::DialogManageFlags( const Partition & partition, std::map<Glib
set_title( String::ucompose( _("Manage flags on %1"), partition .get_path() ) ); set_title( String::ucompose( _("Manage flags on %1"), partition .get_path() ) );
set_has_separator( false ) ; set_has_separator( false ) ;
set_default_size( 300, -1 ) ; set_resizable( false ) ;
Glib::ustring str_temp = "<span weight=\"bold\" size=\"larger\">" ; Glib::ustring str_temp = "<span weight=\"bold\" size=\"larger\">" ;
str_temp += String::ucompose( _("Manage flags on %1"), partition .get_path() ) ; str_temp += String::ucompose( _("Manage flags on %1"), partition .get_path() ) ;
@ -49,6 +49,7 @@ DialogManageFlags::DialogManageFlags( const Partition & partition, std::map<Glib
static_cast<Gtk::CellRendererToggle *>( treeview_flags .get_column_cell_renderer( 0 ) ) static_cast<Gtk::CellRendererToggle *>( treeview_flags .get_column_cell_renderer( 0 ) )
->signal_toggled() .connect( sigc::mem_fun( *this, &DialogManageFlags::on_flag_toggled ) ) ; ->signal_toggled() .connect( sigc::mem_fun( *this, &DialogManageFlags::on_flag_toggled ) ) ;
treeview_flags .set_size_request( 300, -1 ) ;
get_vbox() ->pack_start( treeview_flags, Gtk::PACK_SHRINK ) ; get_vbox() ->pack_start( treeview_flags, Gtk::PACK_SHRINK ) ;
this ->partition = partition ; this ->partition = partition ;

View File

@ -13,12 +13,12 @@ gparted_SOURCES = \
Device.cc \ Device.cc \
Dialog_Base_Partition.cc \ Dialog_Base_Partition.cc \
Dialog_Disklabel.cc \ Dialog_Disklabel.cc \
Dialog_Filesystems.cc \
Dialog_Partition_Copy.cc \ Dialog_Partition_Copy.cc \
Dialog_Partition_Info.cc \ Dialog_Partition_Info.cc \
Dialog_Partition_New.cc \ Dialog_Partition_New.cc \
Dialog_Partition_Resize_Move.cc \ Dialog_Partition_Resize_Move.cc \
Dialog_Progress.cc \ Dialog_Progress.cc \
DialogFeatures.cc \
DialogManageFlags.cc \ DialogManageFlags.cc \
DrawingAreaVisualDisk.cc \ DrawingAreaVisualDisk.cc \
FileSystem.cc \ FileSystem.cc \
@ -47,7 +47,7 @@ gparted_SOURCES = \
ntfs.cc \ ntfs.cc \
reiser4.cc \ reiser4.cc \
reiserfs.cc \ reiserfs.cc \
ufs.cc \ ufs.cc \
xfs.cc xfs.cc
gparted_LDFLAGS = -lparted -lgthread-2.0 gparted_LDFLAGS = -lparted -lgthread-2.0

View File

@ -17,7 +17,7 @@
#include "../include/Win_GParted.h" #include "../include/Win_GParted.h"
#include "../include/Dialog_Progress.h" #include "../include/Dialog_Progress.h"
#include "../include/Dialog_Filesystems.h" #include "../include/DialogFeatures.h"
#include "../include/Dialog_Disklabel.h" #include "../include/Dialog_Disklabel.h"
#include "../include/Dialog_Partition_Resize_Move.h" #include "../include/Dialog_Partition_Resize_Move.h"
#include "../include/Dialog_Partition_Copy.h" #include "../include/Dialog_Partition_Copy.h"
@ -118,7 +118,7 @@ void Win_GParted::init_menubar()
menu ->items() .push_back( Gtk::Menu_Helpers::ImageMenuElem( _("Devices"), *image ) ) ; menu ->items() .push_back( Gtk::Menu_Helpers::ImageMenuElem( _("Devices"), *image ) ) ;
menu ->items() .push_back( Gtk::Menu_Helpers::SeparatorElem( ) ); menu ->items() .push_back( Gtk::Menu_Helpers::SeparatorElem( ) );
menu ->items() .push_back( Gtk::Menu_Helpers::MenuElem( _("Filesystems"), sigc::mem_fun( *this, &Win_GParted::menu_gparted_filesystems ) ) ); menu ->items() .push_back( Gtk::Menu_Helpers::MenuElem( _("Features"), sigc::mem_fun( *this, &Win_GParted::menu_gparted_features ) ) );
menu ->items() .push_back( Gtk::Menu_Helpers::SeparatorElem( ) ); menu ->items() .push_back( Gtk::Menu_Helpers::SeparatorElem( ) );
menu ->items() .push_back( Gtk::Menu_Helpers::StockMenuElem( Gtk::Stock::QUIT, sigc::mem_fun(*this, &Win_GParted::menu_gparted_quit) ) ); menu ->items() .push_back( Gtk::Menu_Helpers::StockMenuElem( Gtk::Stock::QUIT, sigc::mem_fun(*this, &Win_GParted::menu_gparted_quit) ) );
menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_GParted"), *menu ) ); menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_GParted"), *menu ) );
@ -130,7 +130,7 @@ void Win_GParted::init_menubar()
menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_Edit"), *menu ) ); menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_Edit"), *menu ) );
//view //view
menu = manage( new Gtk::Menu( ) ) ; menu = manage( new Gtk::Menu() ) ;
menu ->items() .push_back( Gtk::Menu_Helpers::CheckMenuElem( _("Harddisk Information"), sigc::mem_fun(*this, &Win_GParted::menu_view_harddisk_info) ) ); menu ->items() .push_back( Gtk::Menu_Helpers::CheckMenuElem( _("Harddisk Information"), sigc::mem_fun(*this, &Win_GParted::menu_view_harddisk_info) ) );
menu ->items() .push_back( Gtk::Menu_Helpers::CheckMenuElem( _("Operations"), sigc::mem_fun(*this, &Win_GParted::menu_view_operations) ) ); menu ->items() .push_back( Gtk::Menu_Helpers::CheckMenuElem( _("Operations"), sigc::mem_fun(*this, &Win_GParted::menu_view_operations) ) );
menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_View"), *menu ) ); menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_View"), *menu ) );
@ -1037,16 +1037,16 @@ void Win_GParted::menu_gparted_refresh_devices()
} }
} }
void Win_GParted::menu_gparted_filesystems() void Win_GParted::menu_gparted_features()
{ {
Dialog_Filesystems dialog ; DialogFeatures dialog ;
dialog .set_transient_for( *this ) ; dialog .set_transient_for( *this ) ;
dialog .Load_Filesystems( gparted_core .get_filesystems() ) ; dialog .load_filesystems( gparted_core .get_filesystems() ) ;
while ( dialog .run() == Gtk::RESPONSE_OK ) while ( dialog .run() == Gtk::RESPONSE_OK )
{ {
gparted_core .find_supported_filesystems() ; gparted_core .find_supported_filesystems() ;
dialog .Load_Filesystems( gparted_core .get_filesystems() ) ; dialog .load_filesystems( gparted_core .get_filesystems() ) ;
//recreate format menu... //recreate format menu...
menu_partition .items()[ 8 ] .remove_submenu() ; menu_partition .items()[ 8 ] .remove_submenu() ;