gparted/include/Dialog_Progress.h

68 lines
1.9 KiB
C
Raw Normal View History

2004-09-19 14:24:53 -06:00
/* 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 Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef DIALOG_PARTITION_PROGRESS
#define DIALOG_PARTITION_PROGRESS
2004-09-20 09:46:21 -06:00
#include "../include/i18n.h"
2004-10-06 13:06:43 -06:00
#include "../include/Utils.h"
2004-09-20 09:46:21 -06:00
2004-09-19 14:24:53 -06:00
#include <gtkmm/dialog.h>
#include <gtkmm/progressbar.h>
#include <gtkmm/stock.h>
#include <gtkmm/label.h>
#include <gtkmm/togglebutton.h>
#include <gtkmm/textview.h>
#include <gtkmm/textbuffer.h>
#include <gtkmm/scrolledwindow.h>
2004-09-19 14:24:53 -06:00
2004-10-06 13:06:43 -06:00
namespace GParted
{
2004-09-19 14:24:53 -06:00
class Dialog_Progress : public Gtk::Dialog
{
public:
Dialog_Progress( int count_operations, Glib::RefPtr<Gtk::TextBuffer> textbuffer );
2004-10-06 13:06:43 -06:00
~Dialog_Progress( );
2004-09-19 14:24:53 -06:00
void Set_Operation( );
2004-09-19 14:24:53 -06:00
Glib::ustring current_operation;
int TIME_LEFT ;
2004-09-19 14:24:53 -06:00
private:
bool Show_Progress( ) ;
bool Pulse( ) { progressbar_current .pulse( ) ; return true ; }
void tglbtn_details_toggled( ) ;
2004-10-06 13:06:43 -06:00
Gtk::Label label_current ;
2004-09-19 14:24:53 -06:00
Gtk::ProgressBar progressbar_all, progressbar_current ;
Gtk::ToggleButton tglbtn_details ;
Gtk::TextView textview_details ;
Gtk::ScrolledWindow scrolledwindow ;
void signal_textbuffer_insert( const Gtk::TextBuffer::iterator & iter, const Glib::ustring & text, int ) ;
2004-09-19 14:24:53 -06:00
double fraction, fraction_current;
2004-09-19 14:24:53 -06:00
int count_operations, current_operation_number;
sigc::connection conn ;
2004-09-19 14:24:53 -06:00
};
2004-10-06 13:06:43 -06:00
}//GParted
2004-09-19 14:24:53 -06:00
#endif //DIALOG_PARTITION_PROGRESS