/* * Copyright (c) 2002-2007 Daniel Elstner * * This file is part of regexxer. * * regexxer 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. * * regexxer 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with regexxer; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef REGEXXER_STATUSLINE_H_INCLUDED #define REGEXXER_STATUSLINE_H_INCLUDED #include #include namespace Gtk { class Button; class ProgressBar; class Statusbar; } namespace Regexxer { class CounterBox; class StatusLine : public Gtk::HBox { public: StatusLine(); virtual ~StatusLine(); void set_file_index(int file_index); void set_file_count(int file_count); void set_match_index(int match_index); void set_match_count(int match_count); void set_file_encoding(const std::string& file_encoding); void pulse_start(); void pulse(); void pulse_stop(); sigc::signal signal_cancel_clicked; protected: virtual void on_hierarchy_changed(Gtk::Widget* previous_toplevel); private: Gtk::Button* stop_button_; Gtk::ProgressBar* progressbar_; CounterBox* file_counter_; CounterBox* match_counter_; Gtk::Statusbar* statusbar_; }; } // namespace Regexxer #endif /* REGEXXER_STATUSLINE_H_INCLUDED */