"Fossies" - the Fresh Open Source Software Archive

Member "regexxer-0.10/src/statusline.h" (6 Oct 2011, 1811 Bytes) of package /linux/privat/old/regexxer-0.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "statusline.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (c) 2002-2007  Daniel Elstner  <daniel.kitta@gmail.com>
    3  *
    4  * This file is part of regexxer.
    5  *
    6  * regexxer is free software; you can redistribute it and/or modify
    7  * it under the terms of the GNU General Public License as published by
    8  * the Free Software Foundation; either version 2 of the License, or
    9  * (at your option) any later version.
   10  *
   11  * regexxer is distributed in the hope that it will be useful,
   12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  * GNU General Public License for more details.
   15  *
   16  * You should have received a copy of the GNU General Public License
   17  * along with regexxer; if not, write to the Free Software Foundation,
   18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
   19  */
   20 
   21 #ifndef REGEXXER_STATUSLINE_H_INCLUDED
   22 #define REGEXXER_STATUSLINE_H_INCLUDED
   23 
   24 #include <gtkmm/box.h>
   25 #include <string>
   26 
   27 namespace Gtk
   28 {
   29 class Button;
   30 class ProgressBar;
   31 class Statusbar;
   32 }
   33 
   34 
   35 namespace Regexxer
   36 {
   37 
   38 class CounterBox;
   39 
   40 class StatusLine : public Gtk::HBox
   41 {
   42 public:
   43   StatusLine();
   44   virtual ~StatusLine();
   45 
   46   void set_file_index(int file_index);
   47   void set_file_count(int file_count);
   48 
   49   void set_match_index(int match_index);
   50   void set_match_count(int match_count);
   51 
   52   void set_file_encoding(const std::string& file_encoding);
   53 
   54   void pulse_start();
   55   void pulse();
   56   void pulse_stop();
   57 
   58   sigc::signal<void> signal_cancel_clicked;
   59 
   60 protected:
   61   virtual void on_hierarchy_changed(Gtk::Widget* previous_toplevel);
   62 
   63 private:
   64   Gtk::Button*        stop_button_;
   65   Gtk::ProgressBar*   progressbar_;
   66   CounterBox*         file_counter_;
   67   CounterBox*         match_counter_;
   68   Gtk::Statusbar*     statusbar_;
   69 };
   70 
   71 } // namespace Regexxer
   72 
   73 #endif /* REGEXXER_STATUSLINE_H_INCLUDED */