1
/* Copyright (C) 2004, 2005, 2006, 2007, 2008 Bart Hakvoort
1
/* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Bart Hakvoort
3
3
* This program is free software; you can redistribute it and/or modify
4
4
* it under the terms of the GNU General Public License as published by
40
40
dispatcher_update_gui_elements .connect(
41
41
sigc::mem_fun( this, &Dialog_Progress::dispatcher_on_update_gui_elements ) ) ;
43
Glib::ustring str_temp = "<span weight=\"bold\" size=\"larger\">" ;
44
str_temp += _("Applying pending operations") ;
45
str_temp += "</span>\n\n" ;
46
str_temp += _("Applying all listed operations.") ;
48
str_temp += _("Depending on the amount and type of operations this might take a long time.") ;
50
this ->get_vbox() ->pack_start( * Utils::mk_label( str_temp ), Gtk::PACK_SHRINK );
43
vbox = manage( new Gtk::VBox() ) ;
44
vbox ->set_border_width( 10 ) ;
45
this ->get_vbox() ->pack_start( *vbox, Gtk::PACK_SHRINK ) ;
47
Glib::ustring str_temp = _("Depending on the amount and type of operations this might take a long time.") ;
49
vbox ->pack_start( * Utils::mk_label( str_temp ), Gtk::PACK_SHRINK );
52
51
label_current .set_alignment( Gtk::ALIGN_LEFT );
53
this ->get_vbox() ->pack_start( label_current, Gtk::PACK_SHRINK ) ;
52
vbox ->pack_start( label_current, Gtk::PACK_SHRINK ) ;
55
54
progressbar_current .set_pulse_step( 0.01 ) ;
56
this->get_vbox() ->pack_start( progressbar_current, Gtk::PACK_SHRINK );
55
vbox ->pack_start( progressbar_current, Gtk::PACK_SHRINK );
58
57
label_current_sub .set_alignment( Gtk::ALIGN_LEFT );
59
this ->get_vbox() ->pack_start( label_current_sub, Gtk::PACK_SHRINK );
58
vbox ->pack_start( label_current_sub, Gtk::PACK_SHRINK );
61
this ->get_vbox() ->pack_start( * Utils::mk_label( "<b>" + Glib::ustring( _("Completed Operations:") ) + "</b>" ),
60
vbox ->pack_start( * Utils::mk_label( "<b>" + Glib::ustring( _("Completed Operations:") ) + "</b>" ),
62
61
Gtk::PACK_SHRINK );
63
this ->get_vbox() ->pack_start( progressbar_all, Gtk::PACK_SHRINK );
62
vbox ->pack_start( progressbar_all, Gtk::PACK_SHRINK );
65
64
//create some icons here, instead of recreating them every time
66
65
icon_execute = render_icon( Gtk::Stock::EXECUTE, Gtk::ICON_SIZE_LARGE_TOOLBAR ) ;
104
103
sigc::mem_fun(*this, &Dialog_Progress::on_expander_changed) );
105
104
expander_details .add( scrolledwindow ) ;
107
this ->get_vbox() ->pack_start( expander_details, Gtk::PACK_EXPAND_WIDGET ) ;
108
this ->get_vbox() ->set_spacing( 5 ) ;
106
vbox ->pack_start( expander_details, Gtk::PACK_EXPAND_WIDGET ) ;
107
vbox ->set_spacing( 5 ) ;
110
109
this ->add_button( Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL ) ;