Patch #2973 2010-04-02 22:25

cryogen

Fixed regex testbed dialogue fields not resizing
Download
2973-Fixed_regex_te.patch (8.6 KB)
Category
Plugin::Refinement
Status
Closed
Close date
2010-08-31 14:07
Assigned to
biplab
Index: src/plugins/contrib/regex_testbed/regexdlg.cpp
===================================================================
--- src/plugins/contrib/regex_testbed/regexdlg.cpp    (revision 6195)
+++ src/plugins/contrib/regex_testbed/regexdlg.cpp    (working copy)
@@ -201,7 +201,7 @@
         return ret;
 
     for(size_t i = 0; i < m_wxre.GetMatchCount(); ++i)
-        if(!!m_wxre.GetMatch(text, i))
+        if(m_wxre.GetMatch(text, i))
             ret.Add(m_wxre.GetMatch(text, i));
 
     return ret;
Index: src/plugins/contrib/regex_testbed/regexdlg.xrc
===================================================================
--- src/plugins/contrib/regex_testbed/regexdlg.xrc    (revision 6195)
+++ src/plugins/contrib/regex_testbed/regexdlg.xrc    (working copy)
@@ -1,93 +1,104 @@
 <resource>
-    <object class="wxScrollingDialog" name="regex_dialog">
-        <title>Regular expression utility</title>
-        <centered>1</centered>
-        <style>wxSTAY_ON_TOP|wxDEFAULT_DIALOG_STYLE</style>
-        <object class="wxFlexGridSizer">
-            <cols>1</cols>
-            <growablecols>0</growablecols>
-            <growablerows>4</growablerows>
-            <object class="sizeritem">
-                <object class="wxStaticText" name="ID_3">
-                    <label>Regular expression:</label>
-                </object>
-                <flag>wxALL|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
-                <border>10</border>
-            </object>
-            <object class="sizeritem">
-                <object class="wxTextCtrl" name="ID_REGEX">
-                    <size>80,-1</size>
-                </object>
-                <flag>wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
-                <border>10</border>
-            </object>
-            <object class="sizeritem">
-                <object class="wxTextCtrl" name="ID_QUOTED">
-                    <size>80,-1</size>
-                </object>
-                <flag>wxTOP|wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
-                <border>10</border>
-            </object>
-            <object class="sizeritem">
-                <object class="wxBoxSizer">
-                    <object class="sizeritem">
-                        <object class="wxStaticText" name="ID_1">
-                            <label>Regex library:</label>
-                        </object>
-                        <flag>wxBOTTOM|wxLEFT|wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
-                        <border>10</border>
-                    </object>
-                    <object class="sizeritem">
-                        <object class="wxChoice" name="ID_LIBRARY">
-                            <content>
-                                <item>wxWidgets (wxRE_EXTENDED)</item>
-                                <item>wxWidgets (wxRE_ADVANCED)</item>
-                                <item>wxWidgets (wxRE_BASIC)</item>
-                            </content>
-                        </object>
-                        <flag>wxBOTTOM|wxLEFT|wxRIGHT|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
-                        <border>10</border>
-                    </object>
-                    <object class="sizeritem">
-                        <object class="wxCheckBox" name="ID_NOCASE">
-                            <label>Case insensitive</label>
-                        </object>
-                        <flag>wxBOTTOM|wxLEFT|wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
-                        <border>10</border>
-                    </object>
-                    <object class="sizeritem">
-                        <object class="wxCheckBox" name="ID_NEWLINES">
-                            <label>Match newlines</label>
-                        </object>
-                        <flag>wxBOTTOM|wxLEFT|wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
-                        <border>10</border>
-                    </object>
-                </object>
-                <flag>wxTOP|wxBOTTOM|wxRIGHT|wxEXPAND|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
-                <border>5</border>
-            </object>
-            <object class="sizeritem">
-                <object class="wxStaticText" name="ID_STATICTEXT1">
-                    <label>Text:</label>
-                </object>
-                <flag>wxTOP|wxLEFT|wxRIGHT|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
-                <border>10</border>
-            </object>
-            <object class="sizeritem">
-                <object class="wxTextCtrl" name="ID_TEXT">
-                    <style>wxTE_MULTILINE</style>
-                    <size>600,60</size>
-                </object>
-                <flag>wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
-                <border>10</border>
-            </object>
-            <object class="sizeritem">
-                <object class="wxHtmlWindow" name="ID_OUT">
-
download for full patch...
biplab 2010-08-31 14:07

Patch# 3051 was applied by other dev.