Commit graph

236 commits

Author SHA1 Message Date
Bart Hakvoort
ff3dd1accc added basic support for mounting unmounted partitions on mountpoints found
* include/Win_GParted.h,
  src/Win_GParted.cc: added basic support for mounting unmounted
  partitions on mountpoints found in /etc/fstab
2006-03-09 19:37:50 +00:00
Bart Hakvoort
8777cbd125 removed the frame from the visualdiskwidget and changed some visual
* include/DrawingAreaVisualDisk.h,
  include/Makefile.am,
  include/Win_GParted.h
  src/DrawingAreaVisualDisk.cc,
  src/Makefile.am
  src/Win_GParted.cc: removed the frame from the visualdiskwidget and
  changed some visual details. Also changed visual representation of
  selected partition. The latter might be considered as a work in
  progress.
* include/FrameVisualDisk.h,
  src/FrameVisualDisk.cc: Removed.
2006-03-09 13:12:44 +00:00
Bart Hakvoort
b179990dc9 show greyed-out mountpoint of unmounted partitions in the treeview as an
* include/GParted_Core.h,
  include/TreeView_Detail.h,
  src/GParted_Core.cc,
  src/TreeView_Detail.cc: show greyed-out mountpoint of unmounted
  partitions in the treeview as an improved way to identify
  partitions. (#333027)
* src/Win_GParted.cc: cleanups
2006-03-07 11:55:27 +00:00
Bart Hakvoort
0fd04602c1 support showing of warning icon even when a partition is mounted.
* include/TreeView_Detail.h,
  src/TreeView_Detail.cc: support showing of warning icon even when a
  partition is mounted.
2006-03-06 13:39:21 +00:00
Bart Hakvoort
170eb4b4a4 extended scan for mountpoints (see #333370)
* include/GParted_Core.h,
  src/GParted_Core.cc: extended scan for mountpoints (see #333370)
2006-03-05 21:08:49 +00:00
Bart Hakvoort
2773e874e3 improved the algorithm to deal with lost pixels after seeing some problems
* include/FrameVisualDisk.h,
  src/FrameVisualDisk.cc: improved the algorithm to deal with lost
  pixels after seeing some problems with rather insane
  partitiontables.
* src/Dialog_Partition_Info.cc: minor cleanup
* src/GParted_Core.cc: show error in partitioninfo if statvfs fails
* src/TreeView_Detail.cc: added FIXME
2006-03-02 21:55:04 +00:00
Bart Hakvoort
9830c8f63e did lots of work on the resizer, it's behaviour should be more natural and
* include/Frame_Resizer_Base.h,
  include/Frame_Resizer_Extended.h,
  src/Dialog_Base_Partition.cc,
  src/Dialog_Partition_Copy.cc,
  src/Dialog_Partition_New.cc,
  src/Dialog_Partition_Resize_Move.cc,
  src/Frame_Resizer_Base.cc,
  src/Frame_Resizer_Extended.cc: did lots of work on the resizer, it's
  behaviour should be more natural and satisfying now. (see also
  #331591)
* src/Win_GParted.cc: extended partition was resizable even when it's
  busy. fixed.
* src/ntfs.cc: made scan output more readable.
* src/FrameVisualDisk.cc: added FIXME
2006-03-01 19:16:13 +00:00
Bart Hakvoort
896c5e275e catch libparted exceptions and display them in the operationdetails if an
* include/GParted_Core.h,
  src/GParted_Core.cc: catch libparted exceptions and display them in
  the operationdetails if an operation has failed.
* src/Dialog_Progress.cc: small cosmetic change to the errordialog.
2006-02-25 16:30:43 +00:00
Bart Hakvoort
29a7744fe2 improved errorhandling in Set_Used_Sectors() in the filesystemclasses
* improved errorhandling in Set_Used_Sectors() in the filesystemclasses
2006-02-25 12:25:18 +00:00
Bart Hakvoort
391ca32a2b in some places i still used MiB's instead of sectors to store sizes. this
* in some places i still used MiB's instead of sectors to store sizes.
  this has been fixed everywhere. Only the spinbuttons still use
  MiB's. I have a few ideas on how to solve this, but i'll take it up
  with #usability first.
2006-02-25 10:09:30 +00:00
Bart Hakvoort
283b40b892 prevent crasher when visual_disks is empty. load devices at startup on
* src/FrameVisualDisk.cc: prevent crasher when visual_disks is empty.
* include/Win_GParted.h,
  src/Win_GParted.cc: load devices at startup on signal_show instead
  of dispatching it from the c'tor.
  Also did some cleanups in the behaviour of opening and closing of
  the operationslist.
2006-02-22 22:05:15 +00:00
Bart Hakvoort
d457bf3645 deal with the rare situation when 2 partitions are mounted on the same
* include/GParted_Core.h,
  src/GParted_Core.cc,
  src/Win_GParted.cc: deal with the rare situation when 2 partitions
  are mounted on the same mountpoint. (see also #330327)
2006-02-20 14:41:05 +00:00
Bart Hakvoort
c2eb2f7cad store flags in a list instead of a string. cleanups
* include/GParted_Core.h,
  include/Partition.h,
  src/Dialog_Partition_Info.cc,
  src/GParted_Core.cc,
  src/Partition.cc,
  src/TreeView_Detail.cc: store flags in a list instead of a string.
* Makefile.am,
  src/Makefile.am: cleanups
2006-02-17 23:20:28 +00:00
Bart Hakvoort
f6b01f342f added FIXME cleanups (mostly messagebox related) added some more
* include/Utils.h: added FIXME
* include/Win_GParted.h,
  src/Win_GParted.cc: cleanups (mostly messagebox related)
* src/GParted_Core.cc: added some more progressfeedback to create and
  resize
2006-02-17 21:18:07 +00:00
Bart Hakvoort
d7a16d3c2f support partitions with multiple mountpoints (see also #330327)
* include/GParted_Core.h,
  include/Partition.h,
  src/Dialog_Partition_Info.cc,
  src/GParted_Core.cc,
  src/Partition.cc,
  src/TreeView_Detail.cc,
  src/Win_GParted.cc: support partitions with multiple mountpoints
  (see also #330327)
2006-02-15 22:32:54 +00:00
Bart Hakvoort
828d7a9e5b wrap mount/umount/swapon/swapoff instead of implementing it ourselves
* wrap mount/umount/swapon/swapoff instead of implementing it
  ourselves (#330641)
* moved execute_command() to Utils and made the filesystems use it. All
  in all this decreased the size of the binary with 10% and made stuff
  more readable.
2006-02-15 16:05:26 +00:00
Bart Hakvoort
49b31334cf removed legend after discussion with usability guys
* removed legend after discussion with usability guys
2006-02-10 23:47:02 +00:00
Bart Hakvoort
f36b01f138 finally fixed #169683!! ( party, party! :p ) cleanups
* src/TreeView_Detail.cc: finally fixed #169683!! ( party, party! :p )
* include/Win_GParted.h,
  src/Win_GParted.cc,
  src/main.cc: cleanups
2006-02-10 22:16:31 +00:00
Bart Hakvoort
a764f10df7 it shouldn't be possible to remove an extended partition which contains
* include/Win_GParted.h,
  src/Win_GParted.cc: it shouldn't be possible to remove an extended
  partition which contains logicals.
* src/TreeView_Detail.cc: only show mountpoint column when there is
  mountinfo.
2006-02-09 17:02:40 +00:00
Bart Hakvoort
1a46adf114 added support for activating swap (#392672)
* include/Win_GParted.h,
  src/Win_GParted.cc: added support for activating swap (#392672)
2006-02-08 20:36:18 +00:00
Bart Hakvoort
dbaf6df531 removed warning about busy device. It's not really needed and it confuses
* src/Win_GParted.cc: removed warning about busy device. It's not
  really needed and it confuses people.
* include/Operation.h: set default status of operationdetails to NONE
* include/Dialog_Progress.h,
  src/Dialog_Progress.cc: implemented export of operationdetails to
  external file. This can be very usefull for debugging. (#329968)
2006-02-07 15:17:44 +00:00
Bart Hakvoort
4161252b32 added support for commandline arguments (#329414)
* include/GParted_Core.h,
  include/Win_GParted.h,
  src/GParted_Core.cc,
  src/Win_GParted.cc,
  src/main.cc: added support for commandline arguments (#329414)
2006-02-02 13:50:37 +00:00
Bart Hakvoort
35593e5747 added mountpointcolumn (#304688) added submenu 'Devices' which allows one
* include/TreeView_Detail.h,
  src/TreeView_Detail.cc: added mountpointcolumn (#304688)
* include/Win_GParted.h,
  src/Win_GParted.cc: added submenu 'Devices' which allows one to
  select devices from the menu (#329415)
2006-02-02 10:59:44 +00:00
Bart Hakvoort
934b348b84 added markup to operationdetails
* include/Dialog_Progress.h,
  src/Dialog_Progress.cc,
  src/FileSystem.cc: added markup to operationdetails
2006-01-28 15:09:50 +00:00
Bart Hakvoort
e00e9cfa61 deal correctly with the progressdialog's delete_event.
* include/Dialog_Progress.h,
  src/Dialog_Progress.cc,
  src/Win_GParted.cc: deal correctly with the progressdialog's
  delete_event.
2006-01-26 22:49:37 +00:00
Bart Hakvoort
8a2624c3b8 cleanups
* include/Dialog_Partition_Info.h,
  include/Win_GParted.h,
  src/Win_GParted.cc: cleanups
2006-01-26 20:58:55 +00:00
Bart Hakvoort
a56902a6d3 added FIXME fixed Update_Number()
* include/Partition.h: added FIXME
* src/Partition.cc: fixed Update_Number()
2006-01-26 20:26:25 +00:00
Bart Hakvoort
1f854ffef3 made some changes to progressdialog behaviour.
* include/Dialog_Progress.h,
  src/Dialog_Progress.cc,
  src/Win_GParted.cc: made some changes to progressdialog behaviour.
2006-01-26 15:54:44 +00:00
Bart Hakvoort
b08a1a838d implemented real 'cancel'.
* include/Dialog_Progress.h,
  src/Dialog_Progress.cc: implemented real 'cancel'.
2006-01-25 23:30:43 +00:00
Bart Hakvoort
06cab31e44 fixed small issue with mounting. (discovered on the livecd)
* include/Utils.h,
  src/Utils.cc,
  src/jfs.cc,
  src/xfs.cc: fixed small issue with mounting. (discovered on the
  livecd)
2006-01-25 14:50:26 +00:00
Bart Hakvoort
591a8f3db0 :get_tmp_dir() instead of hardcoding it as '/tmp' :find_program_in_path()
* use Glib::get_tmp_dir() instead of hardcoding it as '/tmp'
* use Glib::find_program_in_path() instead af a system/which combi
* display current device in windowtitle
2006-01-24 12:31:58 +00:00
Bart Hakvoort
52dfb1c364 correct partitiontype of destination is now set while copying resizing now
* correct partitiontype of destination is now set while copying
* resizing now return correct status (sometimes it would report
  succes even when some of the suboperationes failed)
* fixed some issues with resizing and cylindersizes.
2006-01-22 21:16:36 +00:00
Bart Hakvoort
045edbbe95 :spawn_sync instead of popen(). also made the filesystems call
* removed Execute_Command() and replaced it by execute_command().
  The latter uses Glib::spawn_sync instead of popen().
  also made the filesystems call execute_command rather than calling
  Glib::spawn_sync themselves.
2006-01-22 13:23:58 +00:00
Bart Hakvoort
7d4b6a2eea :sector_to_unit() and use it in several places fixed errors with
* implemented Utils::sector_to_unit() and use it in several places
* (finally) fixed errors with ntfsresizing (had a lot to do with
  difference between MB and MiB)
* resizing of reiserfs now shows more detailed feedback
* support for TebiByte (TiB) unit
2006-01-22 00:07:27 +00:00
Bart Hakvoort
97a9a5fa87 p
* added detailed progressfeedback. It still needs some polishing, but
  is already far better then the old situation. And what's more, it's
  finally threadsafe :p
2006-01-19 19:15:15 +00:00
Bart Hakvoort
388ffffff0 added visual feedback when unmounting or deactivating swap. This can be
* include/Win_GParted.h,
  src/Win_GParted.cc: added visual feedback when unmounting or
  deactivating swap. This can be usefull when it takes longer then
  usual.
2006-01-08 15:20:14 +00:00
Bart Hakvoort
1e6ad5884a removed separator in accordance to the HIG it's now possible to deactivate
* src/Dialog_Partition_Info.cc: removed separator in accordance to the
  HIG
* include/Win_GParted.h,
  src/Win_GParted.cc: it's now possible to deactivate swap from within
  gparted.
* src/GParted_Core.cc: sleep one second after deletion of a partition to
  give the kernel some time to reread the partitiontable.
2006-01-07 21:23:09 +00:00
Bart Hakvoort
f9ab3cdd3c commented 'ss .imbue( std::locale( "" ) )' (#157871) cleanups allow forced
* src/Utils.cc: commented 'ss .imbue( std::locale( "" ) )' (#157871)
* src/Win_GParted.cc,
  src/TreeView_Detail.cc,
  src/Dialog_Base_Partition.cc: cleanups
* include/Dialog_Partition_New.h,
  include/Partition.h,
  src/Dialog_Partition_New.cc,
  src/GParted_Core.cc,
  src/Partition.cc: allow forced partitionsizes (aka: do not round to
  cylinder). (#169486)
2006-01-07 15:04:42 +00:00
Bart Hakvoort
7052e18d79 replaced 'device_partitions' with 'partitions' use new Device::partitions
* include/Device.h,
  src/Device.cc: replaced 'device_partitions' with 'partitions'
* src/Win_GParted.cc: use new Device::partitions
* include/Partition.h,
  src/Partition.cc: added 'realpath'
* src/Dialog_Partition_Info.cc: use Partition::realpath..
* include/GParted_Core.h,
  src/GParted_Core.cc:use ped_partition_get_path() instead of
  constructing it ourselves. (#325800)
  Also use global maps for mountpoints and shortpaths to prevent
  fileaccess from happening more then once per scan.
2006-01-05 20:01:34 +00:00
Bart Hakvoort
2a972b06b8 added get_length() from now on values >=1024MB are displayed in GB's
* include/Partition.h,
  src/Partition.cc: added get_length()
* include/Utils.h,
  src/Utils.cc,
  src/Dialog_Partition_Info.cc,
  src/Operation.cc,
  src/TreeView_Detail.cc,
  src/VBox_VisualDisk.cc,
  src/Win_GParted.cc: from now on values >=1024MB are displayed in
  GB's (#319840)
2006-01-04 18:54:46 +00:00
Bart Hakvoort
fb672f5219 happy new year ;) fixed some alignment issues removed confirmationdialogs
* happy new year ;)
* src/TreeView_Detail.cc: fixed some alignment issues
* include/GParted_Core.h,
  src/GParted_Core.cc,
  include/Operation.h,
  src/Operation.cc,
  include/Win_GParted.h,
  src/Win_GParted.cc: removed confirmationdialogs for delete and
  convert partitions (#319841).
  Also renamed 'convert' to 'format' to reflect the actual
  functionality.
2006-01-02 15:18:29 +00:00
Bart Hakvoort
3a4b43e0ad replaced deprecated OptionMenu with ComboBox. also fixed some issues which
* include/Win_GParted.h,
  src/Win_GParted.cc: replaced deprecated OptionMenu with ComboBox.
  also fixed some issues which arised when no devices were detected.
2005-12-29 23:35:37 +00:00
Bart Hakvoort
23aa549c7c :spawn_command_line_sync() + general cleanups in the set_used_sectors()
* replaced popen() with Glib::spawn_command_line_sync() + general
  cleanups in the set_used_sectors() functions.
2005-12-28 16:43:06 +00:00
Bart Hakvoort
4fc49c2760 merry christmas cleanups replaced popen() with
* merry christmas
* src/GParted_Core.cc,
  src/VBox_VisualDisk.cc,
  src/Win_GParted.cc: cleanups
* include/FileSystem.h,
  src/FileSystem.cc,
  src/ext2.cc,
  src/ext3.cc: replaced popen() with Glib::spawn_command_line_sync()
2005-12-24 23:55:54 +00:00
Bart Hakvoort
7ef6e3e5c8 emit proper signals for several events. cleanups..
* include/TreeView_Detail.h,
  src/TreeView_Detail.cc,
  include/VBox_VisualDisk.h,
  src/VBox_VisualDisk.cc,
  include/Win_GParted.h,
  src/Win_GParted.cc: emit proper signals for several events.
* include/Partition.h,
  src/Partition.cc: cleanups..
2005-12-24 00:06:05 +00:00
Bart Hakvoort
adc76a7686 overloaded operator == rewrote the graphical partitiondisplay. It now
* include/Partition.h,
  src/Partition.cc: overloaded operator ==
* include/VBox_VisualDisk.h,
  src/VBox_VisualDisk.cc: rewrote the graphical partitiondisplay. It
  now supports resizing and the extended partition is also selectable.
  see also #312656
* include/Win_GParted.h,
  src/Win_GParted.cc: use the new graphical partitiondisplay.
* src/TreeView_Detail.cc: minor cleanups
2005-12-22 22:20:55 +00:00
Bart Hakvoort
52f1c4899f replaced deprecated Gtk::Optionmenu with Gtk::ComboBoxText
* include/Dialog_Disklabel.h,
  src/Dialog_Disklabel.cc: replaced deprecated Gtk::Optionmenu with
  Gtk::ComboBoxText
2005-12-15 16:16:48 +00:00
Bart Hakvoort
9564cf841b added get_color_as_pixbuf() to create colored squares of custom sizes.
* include/Utils.h,
  src/Utils.cc: added get_color_as_pixbuf() to create colored squares
  of custom sizes. These can be use troughout the app to represent
  filesystems. e.g. in the treeview and convertmenu.
* include/TreeView_Detail.h,
  src/TreeView_Detail.cc,
  include/VBox_VisualDisk.h,
  src/VBox_VisualDisk.cc,
  include/Win_GParted.h,
  src/Win_GParted.cc: use Utils::get_color_as_pixbuf() instead of
  custom drawn widgets.
2005-12-15 15:10:34 +00:00
Bart Hakvoort
93300e2b32 use mkdir instead of wrapping CLI tool
* include/FileSystem.h,
  src/jfs.cc,
  src/xfs.cc: use mkdir instead of wrapping CLI tool
2005-12-14 15:15:51 +00:00
Bart Hakvoort
7f57bb1090 added mount() and unmount() use Utils::mount and Utils::umount instead of
* include/Utils.h,
  src/Utils.cc: added mount() and unmount()
* src/Win_GParted.cc,
  src/jfs.cc,
  src/xfs.cc: use Utils::mount and Utils::umount instead of wrapping
  CLI tools.
2005-12-14 14:47:58 +00:00
Bart Hakvoort
25db5b2ec0 did some cleanups added get_index_extended to get the ext_index in a
* include/GParted_Core.h,
  src/GParted_Core.cc: did some cleanups
* include/Operation.h,
  src/Operation.cc: added get_index_extended to get the ext_index in a
  uniform way instead of calculating it every time ourselves.
2005-12-14 01:58:15 +00:00
Bart Hakvoort
808b777019 replaced the inline Utils functions with static functions. This shaves a
* replaced the inline Utils functions with static functions.
  This shaves a few kbytes (24 in fact) off the binary and is a bit
  cleaner code-wise (imho).
2005-12-13 21:30:13 +00:00
Bart Hakvoort
391f802577 added include/Utils.h replaced get_sym_path with get_short_path for
* po/POTFILES.in: added include/Utils.h
* include/GParted_Core.h,
  src/GParted_Core.cc: replaced get_sym_path with get_short_path for
  cleaner code and better performance.
2005-12-11 18:46:43 +00:00
Bart Hakvoort
a6a47c7df5 use statvfs instead of this ugly df-wrapping.
* include/GParted_Core.h,
  src/GParted_Core.cc: use statvfs instead of this ugly df-wrapping.
2005-12-11 00:05:28 +00:00
Bart Hakvoort
7aee5aed95 added 'Glib::ustring mountpoint' implemented set_mountpoints() to set
* include/Partition.h,
  src/Partition.cc: added 'Glib::ustring mountpoint'
* include/GParted_Core.h,
  src/GParted_Core.cc: implemented set_mountpoints() to set mountpoint
  in partitions.
* include/Dialog_Partition_Info.h,
  src/Dialog_Partition_Info.cc: use Partition::mountpoint instead of
  finding it ourselves.
2005-12-08 17:03:29 +00:00
Bart Hakvoort
642f0a145b from now on each partition has a reference to it's device. make use of new
* include/Partition.h,
  src/Partition.cc: from now on each partition has a reference to it's
  device.
* src/Win_GParted.cc,
  src/Dialog_Partition_New.cc: make use of new Set() from partition
* include/GParted_Core.h,
  src/GParted_Core.cc: since ped_file_system_clobber() ignored reiser4
  i've implemented a custom 'filesystem signature remover'.
  Also made use of the fact a partition now knows on which device it
  lives.
* src/Operation.cc: the get_string() didn't use
  Get_Filesystem_String() and thus returned faulty strings. Also did
  some cleanups.
2005-12-07 22:44:40 +00:00
Bart Hakvoort
7e4efd3c2e rewrote quite some stuff to use an enum to indentify filesystems instead
* rewrote quite some stuff to use an enum to indentify filesystems
  instead of stringcomparisons.
2005-12-07 11:21:27 +00:00
Bart Hakvoort
d32802166b implemented a 'wait_for_node()' function after reading
* include/GParted_Core.h,
  src/GParted_Core.cc: implemented a 'wait_for_node()' function after
  reading http://bugs.gentoo.org/show_bug.cgi?id=102343. I couldn't
  reproduce the bug myself, but i hope this wil solve it.
  Also made 'set_partition_type()' return a boolean for improved
  errorchecking.
2005-11-29 14:50:20 +00:00
Bart Hakvoort
1bbcf787b1 Added a menu 'Edit' which contains 'Undo' and 'Apply'. (#322550)
* include/Win_GParted.h,
  src/Win_GParted.cc: Added a menu 'Edit' which contains 'Undo' and
  'Apply'. (#322550)
2005-11-27 19:48:00 +00:00
Bart Hakvoort
cc18d11ad5 hmmz, lots of shimmery internals.. Instead of using a boolean to indicate
* hmmz, lots of shimmery internals..
  Instead of using a boolean to indicate support for certain
  features i now use and enum (NONE, LIBPARTED, EXTENDED).
  This allowed me to clean up some stuff that annoyed me ;)
  Still.. the core could use a bit more love...
2005-11-27 00:57:11 +00:00
Bart Hakvoort
7cc702dbdf removed Dialog_About.[h,cc] from now on we use Gtk::AboutDialog instead of
* include/Makefile.am,
  include/Win_GParted.h,
  src/Makefile.am: removed Dialog_About.[h,cc]
* src/Win_GParted.cc: from now on we use Gtk::AboutDialog instead of
  our own AboutDialog. Also use Gtk::Stock items instead of hardcoded
  paths to images (about and harddisk).
2005-11-25 22:41:49 +00:00
Bart Hakvoort
8264dea990 gparted finally has a logo/icon ;) (thanks to Alain Clement) see also
* gparted finally has a logo/icon ;) (thanks to Alain Clement)
  see also #162092
2005-11-25 14:53:23 +00:00
Bart Hakvoort
e59276389e added *.swp some modifications to pass 'make distcheck' minor cleanups
* include/.cvsignore,
  src/.cvsignore: added *.swp
* Makefile.am,
  include/Dialog_Filesystems.h: some modifications to pass 'make
  distcheck'
* src/GParted_Core.cc: minor cleanups
2005-11-25 12:59:47 +00:00
Bart Hakvoort
1382c7bc17 cleanups correct partitiontype is now set after creation or conversion.
* include/FileSystem.h: cleanups
* include/GParted_Core.h,
  src/GParted_Core.cc: correct partitiontype is now set after creation
  or conversion. (#322281)
2005-11-24 15:59:31 +00:00
Bart Hakvoort
0de39fb11b removed INSTALL some fixes to make 'make dist' work (thanks to Daniel
* removed INSTALL
* compose/.cvsignore,
  compose/Makefile.am,
  Makefile.am,
  configure.in,
  include/Makefile.am: some fixes to make 'make dist' work (thanks to Daniel Holbach)
2005-10-05 22:37:17 +00:00
Bart Hakvoort
2b47fea3de fixed a11y thingy (#316108) get labeltypes from libparted instead of
* src/Dialog_Filesystems.cc: fixed a11y thingy (#316108)
* include/GParted_Core.h,
  src/GParted_Core.cc,
  include/Dialog_Disklabel.h,
  src/Dialog_Disklabel.cc,
  src/Win_GParted.cc : get labeltypes from libparted instead of hardcoding them,
  also changed some text (#315979)
2005-09-13 17:09:20 +00:00
Bart Hakvoort
61cd0ce778 lots of stuff and cleanups, including fixing getting used/unused space of
* lots of stuff and cleanups, including fixing getting used/unused space of hfs/hfs+/fat16/fat32
* also fixes bug #161362
2005-09-13 14:56:00 +00:00
Bart Hakvoort
a98126d69b quick 'fix' for crashers in some locales (#157871) basicly the same +
* compose/ucompose.hpp: quick 'fix' for crashers in some locales (#157871)
* include/Utils.h: basicly the same + minor cleanups
* src/GParted_Core.cc: replaced C-style cast with static_cast..
2005-08-31 02:30:25 +00:00
Bart Hakvoort
758f5e63a8 Fixed a bunch of bugs (some of them crashers) which showed up if no
* Fixed a bunch of bugs (some of them crashers) which showed up if no devices were detected.
2005-02-01 17:04:03 +00:00
Bart Hakvoort
2fa009cbae Replaced menu "Operations" with "Device" and "Partition". Also implemented
* include/Win_GParted.h,
  src/Win_GParted.cc: Replaced menu "Operations" with "Device" and "Partition". Also implemented a 'set-disklabel feature'.
* src/Dialog_Disklabel.cc: changed title and header to be more generic (was specific for a new disk).
2005-01-30 14:31:29 +00:00
Bart Hakvoort
d375f5bf4e finally got around to fix this annoying 'flickering' while using the
* include/Frame_Resizer_Base.h,
  include/Frame_Resizer_Extended.h,
  src/Frame_Resizer_Base.cc,
  src/Frame_Resizer_Extended.cc: finally got around to fix this annoying 'flickering' while using the resizer :)
2005-01-25 14:26:54 +00:00
Bart Hakvoort
f25b28be07 Fixed bug in copy functionality (due to unset ORIG_START startsector
* include/Dialog_Base_Partition.h,
  src/Dialog_Base_Partition.cc,
  src/Dialog_Partition_Copy.cc,
  src/Dialog_Partition_Resize_Move.cc: Fixed bug in copy functionality (due to unset ORIG_START startsector wasn't set correctly). Also have ORIG*
  initialized in ctor of dialogbase to prevent such errors from ever happening again (this one only showed up with gcc-3.3.5) .
2005-01-22 17:23:52 +00:00
Bart Hakvoort
fb4af15865 used static_cast<> instead of C-style type conversion. install gparted
* include/Utils.h: used static_cast<> instead of C-style type conversion.
* src/Makefile.am: install gparted binary in bin/ instead of sbin/ (as soon as i've time i want to implement a read-only modus)
2005-01-18 21:27:59 +00:00
Bart Hakvoort
6ba0ac3574 Added menu 'Operations' to menubar. This menu is a duplicate of the
* include/Win_GParted.h,
  src/Win_GParted.cc: Added menu 'Operations' to menubar. This menu is a duplicate of the popupmenu and imho a bit unnecessary, but lots of
  people requested this.. :)  Besides this, i removed 'menu_devices' and performed a few other cleanups.
2005-01-09 19:33:48 +00:00
Bart Hakvoort
b839708add As explained in the previous entry i've decided to add reiser4 detection
* include/GParted_Core.h,
  src/GParted_Core.cc: As explained in the previous entry i've decided to add reiser4 detection to gparted as well..
2004-12-29 16:38:45 +00:00
Bart Hakvoort
eda1386b8c / ) Also, libparted isn't able to detect reiser4 yet, a patch to fix this
* Added support for reiser4 (only creation atm, since the other functionality appears to be non-free software :/ )
  Also, libparted isn't able to detect reiser4 yet, a patch to fix this is underway, but i should probably add reiser4 detection to gparted as well.
2004-12-29 00:09:58 +00:00
Bart Hakvoort
c87cba6ee5 Changed 'bool Create( const Glib::ustring & device_path, const Partition &
* The Filesystemclasses: Changed 'bool Create( const Glib::ustring & device_path, const Partition & new_partition )'
to 'bool Create( const Partition & new_partition )'. Since i now use external tools for all filesystems, the partitionpath will suffice.
2004-12-28 13:29:01 +00:00
Bart Hakvoort
67cd381a03 fixed some issues with linux-swap. From now on you need 'mkswap' to
* include/GParted_Core.h,
  src/GParted_Core.cc,
  src/linux_swap.cc: fixed some issues with linux-swap. From now on you need 'mkswap' to create/resize/move linux-swap.
2004-12-28 12:59:46 +00:00
Bart Hakvoort
e5d2cb0eb7 Removed the ugly Get_Highest_Logical_Busy() from Device and added a
* include/Device.h,
  src/Device.cc,
  src/GParted_Core.cc,
  src/Win_GParted.cc: Removed the ugly Get_Highest_Logical_Busy() from Device and added a classvariable instead. This one is set in
  GParted_Core and used wherever needed. I also removed Device::busy, and used the new variable to check if a device is busy.
2004-12-27 18:56:57 +00:00
Bart Hakvoort
174f0cff77 Added cylsize to Device and made Operation contain a Device instead of
* Added cylsize to Device and made Operation contain a Device instead of only the path and lenght.
  This way i was able to dump Get_Cyl_Size in the Core. Besides that, i used cylsize in WinGparted and made a lot of
  cosmetic changes. Most of them were pretty useless, but hey, i'm bored ;)
2004-12-27 12:08:01 +00:00
Bart Hakvoort
2ed3e0e8c4 moved inline Get_FS from Utils.h to GParted_Core, saves a few K in exe
* src/GParted_Core.cc,
  src/Win_GParted.cc,
  include/Utils.h,
  include/GParted_Core.h: moved inline Get_FS from Utils.h to GParted_Core, saves a few K in exe size ;)
2004-12-25 21:40:18 +00:00
Bart Hakvoort
8d412f95bd Replaced treestore with liststore. I decided i didn't need a treeview
* include/Dialog_Filesystems.h,
  src/Dialog_Filesystems.cc: Replaced treestore with liststore. I decided i didn't need a treeview after all...
* src/Dialog_About.cc: Replaced "Gnome Partition Editor based on libparted" with "Gnome Partition Editor"
* src/xfs.cc: fixed small error with creation of xfs filesystems (adrighem)
2004-12-18 15:51:48 +00:00
Bart Hakvoort
5cdc28b68f Removed 'deep_scan' flag. From now on all scans are 'deep scans'. Gui is
* include/GParted_Core.h,
  src/GParted_Core.cc: Removed 'deep_scan' flag. From now on all scans are 'deep scans'.
* include/Win_GParted.h,
  src/Win_GParted.cc: Gui is now loaded before anything else. (#161054)
2004-12-17 19:45:04 +00:00
Bart Hakvoort
3703fd3783 P )
* some minor internal codechanges, which should save a few bytes of mem here and there.
  (i was in a nitpicking mood :P )
2004-12-15 21:53:14 +00:00
Bart Hakvoort
10e8f3338d :get_fs now returns a const reference. in copy and resizedialog
* Gparted_Core::get_fs now returns a const reference.
* in copy and resizedialog filesystems with MAX set now have a max size of MAX - one cylinder .
2004-12-15 20:43:58 +00:00
Bart Hakvoort
188b27bc50 Added dialog (accessable from 'gparted' menu) which shows supported
* Added dialog (accessable from 'gparted' menu) which shows supported operations for the various filesystems.
  I plan to put some more info in it, like what is missing etc..
2004-12-15 16:38:37 +00:00
Bart Hakvoort
d100935b55 :Set_Valid_Operations()
* Refined checks for functionality a bit. e.g. even if a filesystem can't be read, it's still possible to grow it
  (but shrinking gets disabled). Also removed that stupid grow_only flag from Utils.h and reordered Win_GParted::Set_Valid_Operations()
2004-12-15 10:33:12 +00:00
Bart Hakvoort
8a0ed3b6ac added support for jfs (create, copy, grow) and hfs (create, copy) fixed a
* added support for jfs (create, copy, grow) and hfs (create, copy)
* fixed a bug in copying xfs filesystems.
* fixed a number of small bugs/annoying issues.
2004-12-14 22:49:44 +00:00
Bart Hakvoort
d44aa2cf45 )
* Added support for xfs. this means creating and growing xfs filesystems. Shrinking requires some hacking with dump_xfs etc..
  i'll add that at a later point. :)
2004-12-13 21:24:12 +00:00
Bart Hakvoort
4815b17153 Replaced boolean 'resize' with 'shrink' and 'grow'. It seems some
* Replaced boolean 'resize' with 'shrink' and 'grow'. It seems some filesystems only support growing (e.g. xfs) so i need
  two flags to control the behaviour of the filesystemclasses.
2004-12-13 13:58:51 +00:00
Bart Hakvoort
47f357a8c4 Removed a couple of unnecesarry variables. (saves a few bytes in memory =)
* include/GParted_Core.h,
  src/GParted_Core.cc: Removed a couple of unnecesarry variables. (saves a few bytes in memory =) )
2004-12-13 11:17:40 +00:00
Bart Hakvoort
f4f3e371ad modified layoutscan a bit for improved handling of metadata. modified
* include/GParted_Core.h,
  src/GParted_Core.cc: modified layoutscan a bit for improved handling of metadata.
* include/Operation.h,
  src/Operation.cc: modified Insert_Unallocated() to prevent potential crasher.
2004-12-12 20:36:00 +00:00
Bart Hakvoort
e3a9b2d14c The fixes from 12-09 unearthed a number of long forgotten issues and
* The fixes from 12-09 unearthed a number of long forgotten issues and annoyances. Hopefully they're all resolved now.
2004-12-12 14:57:04 +00:00
Bart Hakvoort
a42a0c2fee Fixed a bunch of issues with min. and max. sizes of filesystems.
* Fixed a bunch of issues with min. and max. sizes of filesystems.
2004-12-10 20:42:23 +00:00
Bart Hakvoort
951797caa7 added MIN and MAX to filesystemstruct to set min. and max sizes of a
* added MIN and MAX to filesystemstruct to set min. and max sizes of a filesystem. So instead of checking per filesystem
  i now simply check the fs.MIN or fs.MAX. this results in less and cleaner code. Also this will come in handy when adding
  support for new filesystems. (This also fixed several minor bugs with filesystemsizes and gained some improvement in resizer
  performance)
2004-12-09 22:56:33 +00:00
Bart Hakvoort
f0eb17b8db Execute_Command() now returns exit status of executed command returnvalue
* include/FileSystem.h,
  src/FileSystem.cc: Execute_Command() now returns exit status of executed command
* the filesystemclasses: returnvalue (bool) is now set according to the return status of the command
2004-11-30 21:05:48 +00:00
Bart Hakvoort
286579d578 Every devicescan now tests on beforehand if the kernel is able to reread
* Every devicescan now tests on beforehand if the kernel is able to reread the partitiontable. If the kernel is unable to do
  this, i disallow most operations. This may seem weird and even a bad thing to do, but the fact is it protects
  the innocent user from a lot of potential damage. Till the linuxkernel is able to reread partitiontables no matter what, this seems
  to be the best option. Of course a dialog with information will popup whenever such a situation is encountered.
  In a next release i might consider adding an 'advanced mode' for users who know what they're doing.
2004-11-29 13:20:05 +00:00
Bart Hakvoort
038c5c5d99 P (special thanks to mantiena-baltix for bringing this issue to my
* Harddisks without disklabel are now properly initizalized and shown in the menu. When one tries to create a new partition on
  such a disk a dialog pops up with some blabla about disklabels and offers to create a disklabel. sweet :P (special thanks to mantiena-baltix
  for bringing this issue to my attention)
* fixed minor annoyance with refreshing detailed deviceinfo after a 'deep refresh'
2004-11-27 23:31:19 +00:00
Bart Hakvoort
8e92e4b381 marked some strings for translation ('unknown', 'used', 'unused') and
* include/Utils.h,
  src/GParted_Core.cc,
  src/Partition.cc,
  src/TreeView_Detail.cc,
  src/VBox_VisualDisk.cc: marked some strings for translation ('unknown', 'used', 'unused') and replaced lowercase 'unallocated' with '---'.
2004-11-24 15:05:36 +00:00
Bart Hakvoort
e71d5c5887 fixed nasty error with resizing 'fixed-start filesystems'. added a check
* include/GParted_Core.h,
  src/GParted_Core.cc: fixed nasty error with resizing 'fixed-start filesystems'.
* src/Partition.cc: added a check to prevent unused space from being bigger then total space.
* src/ntfs.cc: removed -Q from mkntfs. -Q bypassed some safetychecks to gain performance and (so i heard later) also had a
  tendency of failing ;) (Adrighem)
2004-11-24 10:32:56 +00:00
Bart Hakvoort
88a637f13d added full ntfs support. (couldn't test it very will due to the absence of
* include/GParted_Core.h,
  src/GParted_Core.cc,
  src/Makefile.am,
  include/ntfs.h,
  src/ntfs.cc: added full ntfs support. (couldn't test it very will due to the absence of a win32 box :P )
2004-11-23 16:20:59 +00:00
Bart Hakvoort
d6be9833ff fixed crasher with unknown filesystems.
* include/Utils.h: fixed crasher with unknown filesystems.
2004-11-22 20:40:19 +00:00
Bart Hakvoort
bd02bca613 P ). Resizing of ext2/3 works perfect now. I've even tested it on the
* Again way too many chances to create a detailed entry (i'm glad i'm the only dev atm :P ).
  Resizing of ext2/3 works perfect now. I've even tested it on the partition holding my SG seasons =)
  Implemented checking of filesystems (only internally used atm).
  Done some overall tweaking, finetuning etc.. release 0.0.7 is getting shape.
2004-11-21 21:49:38 +00:00
Bart Hakvoort
4438e3264e Removed bool Get_Any_Busy() in favor of public bool busy which is set in
* include/Device.h,
  src/Device.cc: Removed bool Get_Any_Busy() in favor of public bool busy which is set in gparted_core.
  This also fixed a small bug with incorrect mountdetection of logical partitions.
  Also added a Reset() function to properly reset the contents of a device. to zero/empty .
* include/GParted_Core.h,
  src/GParted_Core.cc: 'busyness' of a device is now determined in get_devices().
  Renamed get_partitions() to set_device_partitions to reflect its proper function.
  When a new partition is created to contain a copied filesystem the size is now properly set. This fixes
  a very annoying bug which no one knew about except for me =) .
* src/Win_GParted.cc: use boolean busy from device instead of Get_Any_Busy() .
2004-11-19 11:55:38 +00:00
Bart Hakvoort
410ab30975 availability of 'tune2fs' command wasn't detected correctly. fixed make
* src/ext3.cc: availability of 'tune2fs' command wasn't detected correctly. fixed
* src/fat32.cc: make use of dosfs tools (mkdosfs -F32) instead of libparted's Fat-creator.
* po/POTFILES.in: added src/GParted_Core.cc
2004-11-17 14:12:18 +00:00
Bart Hakvoort
4ccf831ec7 P) It still needs a lot of love, but the foundations are laid =)
* Rewrote a large part of gparteds internal code. Filesystemssupport is now much more separated from the rest of gparted and
  adding support for other filesystems should be a piece of cake now (hope that's true :P)
  It still needs a lot of love, but the foundations are laid =)
2004-11-17 13:00:25 +00:00
Bart Hakvoort
067c1154aa make use of reference arguments instead of return values in some
* include/Operation.h,
  src/Operation.cc: make use of reference arguments instead of return values in some functions.
  Also fixed a small bug with deletion of a virtual (new) logical partition.
* include/VBox_VisualDisk.h,
  src/VBox_VisualDisk.cc: logical filesystems weren't shown in the legend, fixed.
* src/Frame_Resizer_Base.cc: fixed small bug with custom cursors.
* src/TreeView_Detail.cc: removed obsolete, already commented code.
* src/Win_GParted.cc: make use of reference arguments instead of return values in some functions. (see Operation)
2004-11-07 13:13:11 +00:00
Bart Hakvoort
43bfe092c9 added umount option. Also include unistd.h to solve some issues with gcc
* include/Win_GParted.h,
  src/Win_GParted.cc: added umount option. Also include unistd.h to solve some issues with gcc 3.2.x
2004-11-06 19:48:24 +00:00
Bart Hakvoort
24dccdd8f3 instead of listing all partition in one list, logical partitions are now
* instead of listing all partition in one list, logical partitions are now stored in a sublist in extended partition object.
This makes partitionhandling in gparted more natural and transparant. It also allowed me to clean up this ugly Operation class ;)
2004-11-06 11:55:03 +00:00
Bart Hakvoort
4caae3dc85 removed color_string replaced color_string with Get_Color from Utils.h
* include/Partition.h,
  src/Partition.cc: removed color_string
* src/VBox_VisualDisk.cc,
  src/TreeView_Detail.cc: replaced color_string with Get_Color from Utils.h
2004-10-31 12:06:02 +00:00
Bart Hakvoort
dd1f3d8b42 added checks for libuuid and libdl. Also refined libparted check a bit.
* configure.in: added checks for libuuid and libdl. Also refined libparted check a bit.
* include/Partition.h,
  src/Partition.cc: removed Get_Color()
* include/Utils.h: added inline Glib::ustring Get_Color( const Glib::ustring & filesystem )
* src/Dialog_Partition_New.cc,
  src/Win_GParted.cc: make use of Get_Color from Utils.h
* src/Device.cc: fixed a crasher with (at least) pl_PL locale.
2004-10-30 22:17:20 +00:00
Bart Hakvoort
32cd2f2548 fixed some bugs with minimum size of resizable partition + some
* include/Dialog_Partition_Resize_Move.h,
  src/Dialog_Partition_Resize_Move.cc: fixed some bugs with minimum size of resizable partition + some codecleanups.
2004-10-21 11:13:37 +00:00
Bart Hakvoort
dde4f4d709 First load gui and then scan devices, this resulted in way faster startup
* include/Win_GParted.h,
  src/Win_GParted.cc: First load gui and then scan devices, this resulted in way faster startup and is more satisfactory (imho)
  Also did some minor code cleanups and rearranged some functions needed for applying operations.
* src/Dialog_Progress.cc: few minor code cleanups.
2004-10-16 15:42:08 +00:00
Bart Hakvoort
7046811770 minor (code) change in displaying errormessage. Made
* include/Operation.h,
  src/Operation.h: minor (code) change in displaying errormessage. Made Apply_Resize_Move_Extended_To_Visual() a bit more
  readable (and thus debugable). This whole class could still use a soft, caring hand though :P
* src/Device.cc: Unallocate space < 1MB wasn't filtered out. fixed.
* src/Partition.cc (Set_Used): Unused wasn't set properly. fixed.
2004-10-14 10:25:17 +00:00
Bart Hakvoort
fa5698e115 logic unallocated space wasn't read correctly, fixed. added
* src/Device.cc (Read_Disk_Layout): logic unallocated space wasn't read correctly, fixed.
* include/Win_GParted.h: added open_operationslist() and menu_view_operations() .
* src/Win_GParted.cc: tweaked operationlist behaviour a bit. Also added 'Operations" toggle-item to View menu.
2004-10-11 14:19:56 +00:00
Bart Hakvoort
9c328738c9 made 'deep-scan' optional in Read_Disk_Layout. Removed obsolete (already)
* include/Device.h,
  src/Device.cc: made 'deep-scan' optional in Read_Disk_Layout. Removed obsolete (already) commented function.
* include/Partition.h,
  src/Partition.cc: Took used sectors out of Set() and added a Set_Used() function instead. Also added Reset() .
* src/Dialog_Partition_New.cc: minor change to make use of the new Set() in Partition..
* include/Win_GParted.h,
  src/Win_GParted.cc: show pulsing progressbar while refreshing devices.
2004-10-11 10:23:24 +00:00
Bart Hakvoort
bcb05b8540 removed inheritance from sigc::trackable. (this is already done by
* include/Frame_Resizer_Base.h: removed inheritance from sigc::trackable. (this is already done by Glib::Object). * src/Dialog_Partition_Copy.cc, src/Frame_Resizer_Base.cc: fixed issues with resizing reiserfs filesystems.
2004-10-08 19:53:35 +00:00
Bart Hakvoort
4d47390878 added colorsupport to mklabel in Util.h and replaced self-made widget with UTF-8 block in VBox_VisualDisk.cc/.h 2004-10-07 14:12:34 +00:00
Bart Hakvoort
bd3152788f implemented mk_label wherever possible 2004-10-06 19:06:43 +00:00
Bart Hakvoort
18b47725f8 enabled support for reiserfs 2004-10-06 15:32:40 +00:00
Bart Hakvoort
530a636ac0 minor,completely irrelevant change =) 2004-10-02 19:30:20 +00:00
Bart Hakvoort
d57a8eced7 removed unnecessary headerfiles 2004-10-02 13:18:25 +00:00
Bart Hakvoort
05ee2f2254 added convenience function. Also fixed a small bug with incorrect labelvalue of fat16 upper limit 2004-10-02 11:34:18 +00:00
Bart Hakvoort
72f91cbc39 removed all stringstreams from the project (they were possibly responsible
* removed all stringstreams from the project (they were possibly responsible for rare chrashes in certain locales)
2004-10-02 09:39:16 +00:00
Bart Hakvoort
a1dfbee2b3 cosmetics (mostly tabfixes)
* almost all files: cosmetics (mostly tabfixes)
2004-10-01 21:09:19 +00:00
Bart Hakvoort
0d2ee545a7 added colored squares to the tree to highlight filesystems. 2004-09-30 18:26:34 +00:00
Bart Hakvoort
8ae5ebb2e6 several (mostly) i18n related fixes/cleanups 2004-09-29 12:33:40 +00:00
Bart Hakvoort
57e7ca3160 several small thingies, mostly i18n related 2004-09-28 21:12:20 +00:00
Bart Hakvoort
208a25c470 changed representation of hardisk info 2004-09-27 20:12:47 +00:00
Bart Hakvoort
45603da944 removed expander. The diskinfo is now always visible. 2004-09-25 21:59:53 +00:00
Bart Hakvoort
201fdcb8e8 more i18n and some code cleanups 2004-09-25 14:12:07 +00:00
Bart Hakvoort
04e770ff17 changed some sentences on translators request 2004-09-25 01:10:21 +00:00
Bart Hakvoort
d63ef08b75 make use of glibmm/i18n.h instead of libintl.h 2004-09-23 20:26:09 +00:00
Bart Hakvoort
d499008318 stripped i18n.h a bit 2004-09-23 15:31:00 +00:00
Bart Hakvoort
cf33622e8a enabled i18n support 2004-09-20 15:46:21 +00:00
Bart Hakvoort
26d433260d Initial revision 2004-09-19 20:24:53 +00:00