<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][14315] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=14315">14315</a></dd>
<dt>Author</dt> <dd>jmesquita</dd>
<dt>Date</dt> <dd>2009-07-21 22:40:40 -0500 (Tue, 21 Jul 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>ENHANCEMENT: Ability to search the console. Searching using Regex is also available.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunkcontribjmesquitafsguifsguipro">freeswitch/trunk/contrib/jmesquita/fsgui/fsgui.pro</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguiresourcesfs_guiui">freeswitch/trunk/contrib/jmesquita/fsgui/resources/fs_gui.ui</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcconsolepagecpp">freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcfs_guicpp">freeswitch/trunk/contrib/jmesquita/fsgui/src/fs_gui.cpp</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcincludeconsolepageh">freeswitch/trunk/contrib/jmesquita/fsgui/src/include/consolepage.h</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcincludefs_guih">freeswitch/trunk/contrib/jmesquita/fsgui/src/include/fs_gui.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#freeswitchtrunkcontribjmesquitafsguiresourcesfinddialogui">freeswitch/trunk/contrib/jmesquita/fsgui/resources/finddialog.ui</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcfinddialogcpp">freeswitch/trunk/contrib/jmesquita/fsgui/src/finddialog.cpp</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcincludefinddialogh">freeswitch/trunk/contrib/jmesquita/fsgui/src/include/finddialog.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkcontribjmesquitafsguifsguipro"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/fsgui.pro (14314 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/fsgui.pro        2009-07-22 00:15:36 UTC (rev 14314)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/fsgui.pro        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -13,7 +13,8 @@
</span><span class="cx">     src/consolepage.cpp \
</span><span class="cx">     src/preferencesdialog.cpp \
</span><span class="cx">     src/completers.cpp \
</span><del>-    src/pastebindialog.cpp
</del><ins>+    src/pastebindialog.cpp \
+    src/finddialog.cpp
</ins><span class="cx"> INCLUDEPATH += ../../../libs/esl/src/include \
</span><span class="cx">     src/include
</span><span class="cx"> HEADERS += src/include/fs_gui.h \
</span><span class="lines">@@ -23,12 +24,14 @@
</span><span class="cx">     src/include/global_defines.h \
</span><span class="cx">     src/include/preferencesdialog.h \
</span><span class="cx">     src/include/completers.h \
</span><del>-    src/include/pastebindialog.h
</del><ins>+    src/include/pastebindialog.h \
+    src/include/finddialog.h
</ins><span class="cx"> FORMS += resources/fs_gui.ui \
</span><span class="cx">     resources/server_manager.ui \
</span><span class="cx">     resources/consolepage.ui \
</span><span class="cx">     resources/preferencesdialog.ui \
</span><del>-    resources/pastebindialog.ui
</del><ins>+    resources/pastebindialog.ui \
+    resources/finddialog.ui
</ins><span class="cx"> LIBS += -L../../../libs/esl \
</span><span class="cx">     -lesl
</span><span class="cx"> RESOURCES += resources/resources.qrc
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguiresourcesfinddialogui"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/contrib/jmesquita/fsgui/resources/finddialog.ui (0 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/resources/finddialog.ui                                (rev 0)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/resources/finddialog.ui        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -0,0 +1,117 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;ui version=&quot;4.0&quot;&gt;
+ &lt;class&gt;findDialog&lt;/class&gt;
+ &lt;widget class=&quot;QDialog&quot; name=&quot;findDialog&quot;&gt;
+  &lt;property name=&quot;geometry&quot;&gt;
+   &lt;rect&gt;
+    &lt;x&gt;0&lt;/x&gt;
+    &lt;y&gt;0&lt;/y&gt;
+    &lt;width&gt;298&lt;/width&gt;
+    &lt;height&gt;171&lt;/height&gt;
+   &lt;/rect&gt;
+  &lt;/property&gt;
+  &lt;property name=&quot;windowTitle&quot;&gt;
+   &lt;string&gt;Find&lt;/string&gt;
+  &lt;/property&gt;
+  &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_2&quot;&gt;
+   &lt;item&gt;
+    &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox&quot;&gt;
+     &lt;property name=&quot;title&quot;&gt;
+      &lt;string&gt;Find Text&lt;/string&gt;
+     &lt;/property&gt;
+     &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout&quot;&gt;
+      &lt;item&gt;
+       &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_2&quot;&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLabel&quot; name=&quot;label&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Find What?&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLineEdit&quot; name=&quot;lineFind&quot;/&gt;
+        &lt;/item&gt;
+       &lt;/layout&gt;
+      &lt;/item&gt;
+      &lt;item&gt;
+       &lt;layout class=&quot;QGridLayout&quot; name=&quot;gridLayout&quot;&gt;
+        &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+         &lt;widget class=&quot;QCheckBox&quot; name=&quot;checkRegex&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Regular Expression&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+         &lt;widget class=&quot;QCheckBox&quot; name=&quot;checkEntire&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Entire Word&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+         &lt;widget class=&quot;QCheckBox&quot; name=&quot;checkCase&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Case Sensitive&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+       &lt;/layout&gt;
+      &lt;/item&gt;
+     &lt;/layout&gt;
+    &lt;/widget&gt;
+   &lt;/item&gt;
+   &lt;item&gt;
+    &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout&quot;&gt;
+     &lt;item&gt;
+      &lt;spacer name=&quot;horizontalSpacer&quot;&gt;
+       &lt;property name=&quot;orientation&quot;&gt;
+        &lt;enum&gt;Qt::Horizontal&lt;/enum&gt;
+       &lt;/property&gt;
+       &lt;property name=&quot;sizeHint&quot; stdset=&quot;0&quot;&gt;
+        &lt;size&gt;
+         &lt;width&gt;40&lt;/width&gt;
+         &lt;height&gt;20&lt;/height&gt;
+        &lt;/size&gt;
+       &lt;/property&gt;
+      &lt;/spacer&gt;
+     &lt;/item&gt;
+     &lt;item&gt;
+      &lt;widget class=&quot;QPushButton&quot; name=&quot;btnFind&quot;&gt;
+       &lt;property name=&quot;text&quot;&gt;
+        &lt;string&gt;Find&lt;/string&gt;
+       &lt;/property&gt;
+      &lt;/widget&gt;
+     &lt;/item&gt;
+     &lt;item&gt;
+      &lt;widget class=&quot;QPushButton&quot; name=&quot;btnCancel&quot;&gt;
+       &lt;property name=&quot;text&quot;&gt;
+        &lt;string&gt;Cancel&lt;/string&gt;
+       &lt;/property&gt;
+      &lt;/widget&gt;
+     &lt;/item&gt;
+    &lt;/layout&gt;
+   &lt;/item&gt;
+  &lt;/layout&gt;
+ &lt;/widget&gt;
+ &lt;resources/&gt;
+ &lt;connections&gt;
+  &lt;connection&gt;
+   &lt;sender&gt;btnCancel&lt;/sender&gt;
+   &lt;signal&gt;clicked(bool)&lt;/signal&gt;
+   &lt;receiver&gt;findDialog&lt;/receiver&gt;
+   &lt;slot&gt;reject()&lt;/slot&gt;
+   &lt;hints&gt;
+    &lt;hint type=&quot;sourcelabel&quot;&gt;
+     &lt;x&gt;378&lt;/x&gt;
+     &lt;y&gt;358&lt;/y&gt;
+    &lt;/hint&gt;
+    &lt;hint type=&quot;destinationlabel&quot;&gt;
+     &lt;x&gt;530&lt;/x&gt;
+     &lt;y&gt;380&lt;/y&gt;
+    &lt;/hint&gt;
+   &lt;/hints&gt;
+  &lt;/connection&gt;
+ &lt;/connections&gt;
+&lt;/ui&gt;
</ins></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguiresourcesfs_guiui"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/resources/fs_gui.ui (14314 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/resources/fs_gui.ui        2009-07-22 00:15:36 UTC (rev 14314)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/resources/fs_gui.ui        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -75,6 +75,8 @@
</span><span class="cx">     &lt;property name=&quot;title&quot;&gt;
</span><span class="cx">      &lt;string&gt;&amp;amp;Edit&lt;/string&gt;
</span><span class="cx">     &lt;/property&gt;
</span><ins>+    &lt;addaction name=&quot;actionFind&quot;/&gt;
+    &lt;addaction name=&quot;separator&quot;/&gt;
</ins><span class="cx">     &lt;addaction name=&quot;actionPreferences&quot;/&gt;
</span><span class="cx">    &lt;/widget&gt;
</span><span class="cx">    &lt;widget class=&quot;QMenu&quot; name=&quot;menu_Tools&quot;&gt;
</span><span class="lines">@@ -165,6 +167,17 @@
</span><span class="cx">     &lt;string&gt;Ctrl+Y&lt;/string&gt;
</span><span class="cx">    &lt;/property&gt;
</span><span class="cx">   &lt;/action&gt;
</span><ins>+  &lt;action name=&quot;actionFind&quot;&gt;
+   &lt;property name=&quot;enabled&quot;&gt;
+    &lt;bool&gt;false&lt;/bool&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;text&quot;&gt;
+    &lt;string&gt;&amp;amp;Find&lt;/string&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;shortcut&quot;&gt;
+    &lt;string&gt;Ctrl+F&lt;/string&gt;
+   &lt;/property&gt;
+  &lt;/action&gt;
</ins><span class="cx">  &lt;/widget&gt;
</span><span class="cx">  &lt;layoutdefault spacing=&quot;6&quot; margin=&quot;11&quot;/&gt;
</span><span class="cx">  &lt;resources/&gt;
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcconsolepagecpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp (14314 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp        2009-07-22 00:15:36 UTC (rev 14314)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -91,6 +91,10 @@
</span><span class="cx"> {
</span><span class="cx">     return m_ui-&gt;textConsole-&gt;toPlainText();
</span><span class="cx"> }
</span><ins>+QTextEdit *consolePage::getTextDocument()
+{
+    return m_ui-&gt;textConsole;
+}
</ins><span class="cx"> void consolePage::doConnect()
</span><span class="cx"> {
</span><span class="cx">     eslConnection-&gt;doConnect();
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcfinddialogcpp"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/contrib/jmesquita/fsgui/src/finddialog.cpp (0 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/finddialog.cpp                                (rev 0)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/finddialog.cpp        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -0,0 +1,69 @@
</span><ins>+#include &lt;QtGui&gt;
+#include &quot;finddialog.h&quot;
+#include &quot;ui_finddialog.h&quot;
+
+findDialog::findDialog(QWidget *parent, QTextEdit *console) :
+    QDialog(parent),
+    m_ui(new Ui::findDialog),
+    editConsole(console),
+    pos(0)
+{
+    m_ui-&gt;setupUi(this);
+
+    connect(m_ui-&gt;btnFind, SIGNAL(clicked()),
+            this, SLOT(findClicked()));
+    connect(this, SIGNAL(rejected()),
+            this, SLOT(cancelClicked()));
+}
+
+findDialog::~findDialog()
+{
+    delete m_ui;
+}
+
+void findDialog::changeEvent(QEvent *e)
+{
+    QDialog::changeEvent(e);
+    switch (e-&gt;type()) {
+    case QEvent::LanguageChange:
+        m_ui-&gt;retranslateUi(this);
+        break;
+    default:
+        break;
+    }
+}
+void findDialog::findClicked()
+{
+    QTextCursor findCursor;
+    QFlags&lt;QTextDocument::FindFlag&gt; options = 0;
+    if (m_ui-&gt;checkCase-&gt;isChecked())
+        options = options|QTextDocument::FindCaseSensitively;
+    if (m_ui-&gt;checkEntire-&gt;isChecked())
+        options = options|QTextDocument::FindWholeWords;
+
+    if (m_ui-&gt;checkRegex-&gt;isChecked())
+    {
+        findCursor = editConsole-&gt;document()-&gt;find(QRegExp(m_ui-&gt;lineFind-&gt;text()), pos, options);
+    }
+    else
+    {
+        findCursor = editConsole-&gt;document()-&gt;find(m_ui-&gt;lineFind-&gt;text(), pos, options);
+    }
+    if (findCursor.isNull())
+    {
+        QMessageBox::warning(this, tr(&quot;Find ...&quot;),
+                    tr(&quot;Nothing found&quot;),
+                    QMessageBox::Ok);
+        pos = 0;
+        m_ui-&gt;btnFind-&gt;setText(tr(&quot;Find again&quot;));
+        return;
+    }
+    pos = findCursor.position();
+    editConsole-&gt;setTextCursor(findCursor);
+    m_ui-&gt;btnFind-&gt;setText(tr(&quot;Find next&quot;));
+}
+void findDialog::cancelClicked()
+{
+    pos = 0;
+    m_ui-&gt;btnFind-&gt;setText(tr(&quot;Find&quot;));
+}
</ins></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcfs_guicpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/fs_gui.cpp (14314 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/fs_gui.cpp        2009-07-22 00:15:36 UTC (rev 14314)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/fs_gui.cpp        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -39,6 +39,7 @@
</span><span class="cx"> #include &quot;fs_gui.h&quot;
</span><span class="cx"> #include &quot;ui_fs_gui.h&quot;
</span><span class="cx"> #include &quot;consolepage.h&quot;
</span><ins>+#include &quot;finddialog.h&quot;
</ins><span class="cx"> #include &lt;QtNetwork&gt;
</span><span class="cx"> 
</span><span class="cx"> Cfsgui::Cfsgui(QWidget *parent) :
</span><span class="lines">@@ -47,7 +48,8 @@
</span><span class="cx">     serverDialog(NULL),
</span><span class="cx">     prefDialog(NULL),
</span><span class="cx">     fileDialog(NULL),
</span><del>-    pasteDialog(NULL)
</del><ins>+    pasteDialog(NULL),
+    findDlg(NULL)
</ins><span class="cx"> {
</span><span class="cx"> 
</span><span class="cx">     m_ui-&gt;setupUi(this);
</span><span class="lines">@@ -64,6 +66,10 @@
</span><span class="cx">             this, SLOT(doDisconnect()));
</span><span class="cx">     connect(m_ui-&gt;actionSaveLog, SIGNAL(triggered()),
</span><span class="cx">             this, SLOT(saveLog()));
</span><ins>+    connect(m_ui-&gt;actionPreferences, SIGNAL(triggered()),
+            this, SLOT(showPreferences()));
+    connect(m_ui-&gt;actionFind, SIGNAL(triggered()),
+            this, SLOT(showFind()));
</ins><span class="cx">     connect(m_ui-&gt;actionPastebinLog, SIGNAL(triggered()),
</span><span class="cx">             this, SLOT(pastebinLog()));
</span><span class="cx">     connect(m_ui-&gt;actionAbout, SIGNAL(triggered()),
</span><span class="lines">@@ -75,8 +81,6 @@
</span><span class="cx">             this, SLOT(closeTab(int)));
</span><span class="cx">     connect(m_ui-&gt;tabWidget, SIGNAL(currentChanged(int)),
</span><span class="cx">             this, SLOT(changeTab(int)));
</span><del>-    connect(m_ui-&gt;actionPreferences, SIGNAL(triggered()),
-            this, SLOT(showPreferences()));
</del><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> Cfsgui::~Cfsgui()
</span><span class="lines">@@ -170,6 +174,7 @@
</span><span class="cx">     m_ui-&gt;actionDisconnect-&gt;setEnabled(true);
</span><span class="cx">     m_ui-&gt;actionSaveLog-&gt;setEnabled(true);
</span><span class="cx">     m_ui-&gt;actionPastebinLog-&gt;setEnabled(true);
</span><ins>+    m_ui-&gt;actionFind-&gt;setEnabled(true);
</ins><span class="cx"> }
</span><span class="cx"> void Cfsgui::gotDisconnected()
</span><span class="cx"> {
</span><span class="lines">@@ -177,7 +182,22 @@
</span><span class="cx">     m_ui-&gt;actionDisconnect-&gt;setDisabled(true);
</span><span class="cx">     m_ui-&gt;actionSaveLog-&gt;setDisabled(true);
</span><span class="cx">     m_ui-&gt;actionPastebinLog-&gt;setDisabled(true);
</span><ins>+    m_ui-&gt;actionFind-&gt;setDisabled(true);
</ins><span class="cx"> }
</span><ins>+void Cfsgui::showFind()
+{
+    consolePage *tab = static_cast&lt;consolePage *&gt;(m_ui-&gt;tabWidget-&gt;widget(m_ui-&gt;tabWidget-&gt;currentIndex()));
+    if (tab)
+    {
+        if (!findDlg)
+        {
+            findDlg = new findDialog(this, tab-&gt;getTextDocument());
+        }
+        findDlg-&gt;show();
+        findDlg-&gt;raise();
+        findDlg-&gt;activateWindow();
+    }
+}
</ins><span class="cx"> void Cfsgui::backgroundColorChanged()
</span><span class="cx"> {
</span><span class="cx">     for (int i = 0; i &lt; m_ui-&gt;tabWidget-&gt;count(); i++)
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcincludeconsolepageh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/include/consolepage.h (14314 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/include/consolepage.h        2009-07-22 00:15:36 UTC (rev 14314)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/include/consolepage.h        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -26,6 +26,7 @@
</span><span class="cx">     void doConnect();
</span><span class="cx">     void doDisconnect();
</span><span class="cx">     QString getConsoleText();
</span><ins>+    QTextEdit *getTextDocument();
</ins><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     virtual void changeEvent(QEvent *e);
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcincludefinddialogh"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/contrib/jmesquita/fsgui/src/include/finddialog.h (0 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/include/finddialog.h                                (rev 0)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/include/finddialog.h        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+#ifndef FINDDIALOG_H
+#define FINDDIALOG_H
+
+#include &lt;QtGui/QDialog&gt;
+
+namespace Ui {
+    class findDialog;
+}
+
+class QTextEdit;
+
+class findDialog : public QDialog {
+    Q_OBJECT
+    Q_DISABLE_COPY(findDialog)
+public:
+    explicit findDialog(QWidget *parent, QTextEdit *console);
+    virtual ~findDialog();
+
+protected:
+    virtual void changeEvent(QEvent *e);
+
+private:
+    Ui::findDialog *m_ui;
+    QTextEdit *editConsole;
+    int pos;
+
+private slots:
+    void findClicked();
+    void cancelClicked();
+};
+
+#endif // FINDDIALOG_H
</ins></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcincludefs_guih"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/include/fs_gui.h (14314 => 14315)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/include/fs_gui.h        2009-07-22 00:15:36 UTC (rev 14314)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/include/fs_gui.h        2009-07-22 03:40:40 UTC (rev 14315)
</span><span class="lines">@@ -48,6 +48,8 @@
</span><span class="cx">     class Cfsgui;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+class findDialog;
+
</ins><span class="cx"> class Cfsgui : public QMainWindow {
</span><span class="cx">     Q_OBJECT
</span><span class="cx">     Q_DISABLE_COPY(Cfsgui)
</span><span class="lines">@@ -73,6 +75,7 @@
</span><span class="cx">     void doDisconnect();
</span><span class="cx">     void gotDisconnected();
</span><span class="cx">     void gotConnected();
</span><ins>+    void showFind();
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     Ui::Cfsgui *m_ui;
</span><span class="lines">@@ -80,6 +83,7 @@
</span><span class="cx">     preferencesDialog *prefDialog;
</span><span class="cx">     QFileDialog *fileDialog;
</span><span class="cx">     pastebinDialog *pasteDialog;
</span><ins>+    findDialog *findDlg;
</ins><span class="cx">     void saveWindowSettings();
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>