"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/Dialog_Base_Partition.h" between
gparted-1.0.0.tar.gz and gparted-1.1.0.tar.gz

About: GParted is a graphical partition editor for creating, reorganizing, and deleting disk partitions (using GNU libparted).

Dialog_Base_Partition.h  (gparted-1.0.0):Dialog_Base_Partition.h  (gparted-1.1.0)
skipping to change at line 21 skipping to change at line 21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef GPARTED_DIALOG_BASE_PARTITION_H #ifndef GPARTED_DIALOG_BASE_PARTITION_H
#define GPARTED_DIALOG_BASE_PARTITION_H #define GPARTED_DIALOG_BASE_PARTITION_H
#include "Device.h"
#include "Frame_Resizer_Extended.h" #include "Frame_Resizer_Extended.h"
#include "FileSystem.h" #include "FileSystem.h"
#include "OptionComboBox.h" #include "OptionComboBox.h"
#include "Partition.h" #include "Partition.h"
#include <gtkmm/dialog.h> #include <gtkmm/dialog.h>
#include <gtkmm/stock.h> #include <gtkmm/stock.h>
#include <gtkmm/label.h> #include <gtkmm/label.h>
#include <gtkmm/spinbutton.h> #include <gtkmm/spinbutton.h>
#include <gtkmm/grid.h> #include <gtkmm/grid.h>
#include <gtkmm/box.h> #include <gtkmm/box.h>
namespace GParted namespace GParted
{ {
class Dialog_Base_Partition : public Gtk::Dialog class Dialog_Base_Partition : public Gtk::Dialog
{ {
public: public:
Dialog_Base_Partition( ) ; Dialog_Base_Partition(const Device& device);
~Dialog_Base_Partition( ) ; ~Dialog_Base_Partition( ) ;
void Set_Resizer( bool extended ) ; void Set_Resizer( bool extended ) ;
const Partition & Get_New_Partition(); const Partition & Get_New_Partition();
protected: protected:
enum SPINBUTTON { enum SPINBUTTON {
BEFORE = 0, BEFORE = 0,
SIZE = 1, SIZE = 1,
AFTER = 2 AFTER = 2
}; };
enum CONFIRMBUTTON { enum CONFIRMBUTTON {
RESIZE_MOVE = 0, RESIZE_MOVE = 0,
NEW = 1, NEW = 1,
PASTE = 2 PASTE = 2
}; };
void prepare_new_partition(); void prepare_new_partition();
static void snap_to_alignment(const Device& device, Partition& partition)
;
static void snap_to_cylinder(const Device& device, Partition& partition);
static void snap_to_mebibyte(const Device& device, Partition& partition);
void Set_Confirm_Button( CONFIRMBUTTON button_type ) ; void Set_Confirm_Button( CONFIRMBUTTON button_type ) ;
void Set_MinMax_Text( Sector min, Sector max ) ; void Set_MinMax_Text( Sector min, Sector max ) ;
double MB_PER_PIXEL ; double MB_PER_PIXEL ;
Sector TOTAL_MB ; Sector TOTAL_MB ;
Frame_Resizer_Base *frame_resizer_base; Frame_Resizer_Base *frame_resizer_base;
Partition * new_partition; Partition * new_partition;
Sector START; //the first sector of the first relevant partition ( this i s either current or current -1 ) needed in Get_Resized_Partition() Sector START; //the first sector of the first relevant partition ( this i s either current or current -1 ) needed in Get_Resized_Partition()
skipping to change at line 93 skipping to change at line 97
int MB_Needed_for_Boot_Record( const Partition & partition ) ; int MB_Needed_for_Boot_Record( const Partition & partition ) ;
//signal handlers //signal handlers
void on_signal_move( int, int ); void on_signal_move( int, int );
void on_signal_resize( int, int, Frame_Resizer_Base::ArrowType ); void on_signal_resize( int, int, Frame_Resizer_Base::ArrowType );
void on_spinbutton_value_changed( SPINBUTTON ) ; void on_spinbutton_value_changed( SPINBUTTON ) ;
bool fixed_start, GRIP ; bool fixed_start, GRIP ;
double before_value ; double before_value ;
const Device& m_device;
FS fs ; FS fs ;
FS_Limits fs_limits; // Working copy of file system min/max size limits FS_Limits fs_limits; // Working copy of file system min/max size limits
private: private:
Dialog_Base_Partition( const Dialog_Base_Partition & src ); // Not implemented copy constructor Dialog_Base_Partition( const Dialog_Base_Partition & src ); // Not implemented copy constructor
Dialog_Base_Partition & operator=( const Dialog_Base_Partition & rhs ); // Not implemented copy assignment operator Dialog_Base_Partition & operator=( const Dialog_Base_Partition & rhs ); // Not implemented copy assignment operator
void Check_Change( ) ; void Check_Change( ) ;
Gtk::Box vbox_resize_move; Gtk::Box vbox_resize_move;
 End of changes. 4 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)