"Fossies" - the Fresh Open Source Software Archive

Member "regexxer-0.10/src/prefdialog.h" (6 Oct 2011, 2048 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 "prefdialog.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_PREFDIALOG_H_INCLUDED
   22 #define REGEXXER_PREFDIALOG_H_INCLUDED
   23 
   24 #include "signalutils.h"
   25 
   26 #include <sigc++/sigc++.h>
   27 #include <glibmm/ustring.h>
   28 #include <memory>
   29 
   30 namespace Gtk
   31 {
   32 class CheckButton;
   33 class ColorButton;
   34 class Dialog;
   35 class Entry;
   36 class FontButton;
   37 class Widget;
   38 class Window;
   39 }
   40 
   41 namespace Regexxer
   42 {
   43 
   44 class PrefDialog : public sigc::trackable
   45 {
   46 public:
   47   explicit PrefDialog(Gtk::Window& parent);
   48   virtual ~PrefDialog();
   49 
   50   Gtk::Dialog* get_dialog() { return dialog_.get(); }
   51 
   52 private:
   53   std::auto_ptr<Gtk::Dialog>  dialog_;
   54   Gtk::FontButton*            button_textview_font_;
   55   Gtk::ColorButton*           button_match_color_;
   56   Gtk::ColorButton*           button_current_color_;
   57   Gtk::Entry*                 entry_fallback_;
   58   bool                        entry_fallback_changed_;
   59 
   60   void load_xml();
   61   void connect_signals();
   62 
   63   void on_response(int response_id);
   64 
   65   void on_conf_value_changed(const Glib::ustring& key);
   66   void initialize_configuration();
   67 
   68   void on_textview_font_set();
   69   void on_match_color_set();
   70   void on_current_color_set();
   71   void on_entry_fallback_changed();
   72   void on_entry_fallback_activate();
   73 };
   74 
   75 } // namespace Regexxer
   76 
   77 #endif /* REGEXXER_PREFDIALOG_H_INCLUDED */