Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

regexdlg.h

#ifndef REGEXDLG_H
#define REGEXDLG_H

#include <wx/wxprec.h>

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

//(*Headers(regex_dialog)
#include <wx/checkbox.h>
#include <wx/choice.h>
#include <wx/dialog.h>
#include <wx/html/htmlwin.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
//*)

#include <wx/html/htmlwin.h>

#ifndef CB_PRECOMP
  #include <wx/listctrl.h> // wxListEvent
  #include <wx/choice.h>
  #include <wx/checkbox.h>
  #include <wx/regex.h>
#endif

class RegExDlg: public wxDialog
{
      public:

            RegExDlg(wxWindow* parent,wxWindowID id = -1);
            virtual ~RegExDlg();

            //(*Identifiers(regex_dialog)
            //*)

            void EndModal(int retCode);

      protected:

            //(*Handlers(regex_dialog)
            void RunBenchmark(wxCommandEvent& event);
            void OnInit(wxInitDialogEvent& event);
            void OnRegExItemActivated(wxListEvent& event);
        void OnUpdateUI(wxUpdateUIEvent& event);
            //*)

      private:


        wxArrayString GetBuiltinMatches(const wxString& text);
        wxArrayString GetPregMatches(const wxString& text);

        //(*Declarations(regex_dialog)
        wxTextCtrl* m_regex;
        wxTextCtrl* m_quoted;
        wxChoice* m_library;
        wxCheckBox* m_nocase;
        wxCheckBox* m_newlines;
        wxTextCtrl* m_text;
        wxHtmlWindow* m_output;
        //*)

        wxRegEx m_wxre;

            DECLARE_EVENT_TABLE()
};

#endif

Generated by  Doxygen 1.6.0   Back to index