diff options
Diffstat (limited to 'doc/html/filterentrydialog_8cpp-source.html')
-rw-r--r-- | doc/html/filterentrydialog_8cpp-source.html | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/filterentrydialog_8cpp-source.html b/doc/html/filterentrydialog_8cpp-source.html index bf3a7ce..082a084 100644 --- a/doc/html/filterentrydialog_8cpp-source.html +++ b/doc/html/filterentrydialog_8cpp-source.html @@ -32,25 +32,25 @@ <a name="l00015"></a>00015 <span class="comment"> * *</span> <a name="l00016"></a>00016 <span class="comment"> ***************************************************************************/</span> <a name="l00017"></a>00017 -<a name="l00018"></a>00018 <span class="preprocessor">#include <qvalidator.h></span> -<a name="l00019"></a>00019 <span class="preprocessor">#include <qlineedit.h></span> -<a name="l00020"></a>00020 <span class="preprocessor">#include <qcombobox.h></span> -<a name="l00021"></a>00021 <span class="preprocessor">#include <qcheckbox.h></span> -<a name="l00022"></a>00022 <span class="preprocessor">#include <qgroupbox.h></span> -<a name="l00023"></a>00023 <span class="preprocessor">#include <qspinbox.h></span> -<a name="l00024"></a>00024 <span class="preprocessor">#include <qpushbutton.h></span> +<a name="l00018"></a>00018 <span class="preprocessor">#include <ntqvalidator.h></span> +<a name="l00019"></a>00019 <span class="preprocessor">#include <ntqlineedit.h></span> +<a name="l00020"></a>00020 <span class="preprocessor">#include <ntqcombobox.h></span> +<a name="l00021"></a>00021 <span class="preprocessor">#include <ntqcheckbox.h></span> +<a name="l00022"></a>00022 <span class="preprocessor">#include <ntqgroupbox.h></span> +<a name="l00023"></a>00023 <span class="preprocessor">#include <ntqspinbox.h></span> +<a name="l00024"></a>00024 <span class="preprocessor">#include <ntqpushbutton.h></span> <a name="l00025"></a>00025 <a name="l00026"></a>00026 <span class="preprocessor">#include <kdebug.h></span> -<a name="l00027"></a>00027 <span class="preprocessor">#include <klocale.h></span> -<a name="l00028"></a>00028 <span class="preprocessor">#include <kmessagebox.h></span> +<a name="l00027"></a>00027 <span class="preprocessor">#include <tdelocale.h></span> +<a name="l00028"></a>00028 <span class="preprocessor">#include <tdemessagebox.h></span> <a name="l00029"></a>00029 <span class="preprocessor">#include <kregexpeditorinterface.h></span> -<a name="l00030"></a>00030 <span class="preprocessor">#include <kparts/part.h></span> -<a name="l00031"></a>00031 <span class="preprocessor">#include <kparts/componentfactory.h></span> +<a name="l00030"></a>00030 <span class="preprocessor">#include <tdeparts/part.h></span> +<a name="l00031"></a>00031 <span class="preprocessor">#include <tdeparts/componentfactory.h></span> <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="preprocessor">#include "filterelem.h"</span> <a name="l00034"></a>00034 <span class="preprocessor">#include "filterentrydialog.h"</span> <a name="l00035"></a>00035 -<a name="l00036"></a><a class="code" href="classFilterEntryDialog.html#8afdfaa4c1f8c87fe62d0539362d4096">00036</a> <a class="code" href="classFilterEntryDialog.html#8afdfaa4c1f8c87fe62d0539362d4096">FilterEntryDialog::FilterEntryDialog</a>(QWidget *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="classFilterElem.html">FilterElem</a>* elem ) : +<a name="l00036"></a><a class="code" href="classFilterEntryDialog.html#8afdfaa4c1f8c87fe62d0539362d4096">00036</a> <a class="code" href="classFilterEntryDialog.html#8afdfaa4c1f8c87fe62d0539362d4096">FilterEntryDialog::FilterEntryDialog</a>(TQWidget *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="classFilterElem.html">FilterElem</a>* elem ) : <a name="l00037"></a>00037 <a class="code" href="classFilterEntryDlg.html">FilterEntryDlg</a>(parent,name), _elem (elem) <a name="l00038"></a>00038 { <a name="l00039"></a>00039 <a class="code" href="classFilterEntryDlg.html#b53212305f82709bdcb7a0b89109067b">_editName</a>->setText (elem-><a class="code" href="classFilterElem.html#252af203fd2bf1784359034c73a7f6c8">toString</a>()); @@ -74,7 +74,7 @@ <a name="l00057"></a>00057 <a class="code" href="classFilterEntryDialog.html#06db22e10498d15b0522482f64b1bb2e">slotItem2Selected</a> (elem-><a class="code" href="classFilterElem.html#e872e95b54e1af0c6773c92cec688020">_filter2</a>.<a class="code" href="classFilterRecord.html#a9ca58948529c51e27397ef9b105c6d2">_type</a>); <a name="l00058"></a>00058 <a class="code" href="classFilterEntryDialog.html#cb27cf3391fbaa0c98248029da8c9d85">slotSecondCondition</a> (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#91c7d695c13e14fd53b74f01ed082679">_secondCondition</a>); <a name="l00059"></a>00059 -<a name="l00060"></a>00060 <span class="keywordflow">if</span> (KTrader::self()->query(<span class="stringliteral">"KRegExpEditor/KRegExpEditor"</span>).isEmpty()) +<a name="l00060"></a>00060 <span class="keywordflow">if</span> (TDETrader::self()->query(<span class="stringliteral">"KRegExpEditor/KRegExpEditor"</span>).isEmpty()) <a name="l00061"></a>00061 { <a name="l00062"></a>00062 <a class="code" href="classFilterEntryDlg.html#d1f54136c4b3a91a01de4715f8eba058">_buttonEditRegExp1</a>->hide(); <a name="l00063"></a>00063 <a class="code" href="classFilterEntryDlg.html#607041668b5763bd8d64c51dc46e2b18">_buttonEditRegExp2</a>->hide(); @@ -103,7 +103,7 @@ <a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="keywordflow">if</span> (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#a0dc9e7d0ab4a85f5426f091eb459565">_filter1</a>.<a class="code" href="classFilterRecord.html#eecf987a35d4f17c91c8fd69f4afb139">_RegExp</a>) <a name="l00088"></a>00088 { -<a name="l00089"></a>00089 QRegExp exp (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#a0dc9e7d0ab4a85f5426f091eb459565">_filter1</a>.<a class="code" href="classFilterRecord.html#72d4a650ab06738f169b562e5adbbaaa">_match</a>); +<a name="l00089"></a>00089 TQRegExp exp (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#a0dc9e7d0ab4a85f5426f091eb459565">_filter1</a>.<a class="code" href="classFilterRecord.html#72d4a650ab06738f169b562e5adbbaaa">_match</a>); <a name="l00090"></a>00090 <span class="keywordflow">if</span> (!exp.isValid()) <a name="l00091"></a>00091 { <a name="l00092"></a>00092 KMessageBox::sorry (<span class="keyword">this</span>, i18n (<span class="stringliteral">"Condition"</span>) + <span class="stringliteral">":\n"</span> + exp.errorString()); @@ -112,7 +112,7 @@ <a name="l00095"></a>00095 } <a name="l00096"></a>00096 <span class="keywordflow">if</span> (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#91c7d695c13e14fd53b74f01ed082679">_secondCondition</a> && <a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#e872e95b54e1af0c6773c92cec688020">_filter2</a>.<a class="code" href="classFilterRecord.html#eecf987a35d4f17c91c8fd69f4afb139">_RegExp</a>) <a name="l00097"></a>00097 { -<a name="l00098"></a>00098 QRegExp exp (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#e872e95b54e1af0c6773c92cec688020">_filter2</a>.<a class="code" href="classFilterRecord.html#72d4a650ab06738f169b562e5adbbaaa">_match</a>); +<a name="l00098"></a>00098 TQRegExp exp (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#e872e95b54e1af0c6773c92cec688020">_filter2</a>.<a class="code" href="classFilterRecord.html#72d4a650ab06738f169b562e5adbbaaa">_match</a>); <a name="l00099"></a>00099 <span class="keywordflow">if</span> (!exp.isValid()) <a name="l00100"></a>00100 { <a name="l00101"></a>00101 KMessageBox::sorry (<span class="keyword">this</span>, i18n (<span class="stringliteral">"second Condition"</span>) + <span class="stringliteral">":\n"</span> + exp.errorString()); @@ -133,9 +133,9 @@ <a name="l00116"></a>00116 <span class="keywordflow">if</span> (type == FilterRecord::size) <a name="l00117"></a>00117 { <a name="l00118"></a>00118 <span class="keywordtype">int</span> dummy; -<a name="l00119"></a>00119 QString match (<a class="code" href="classFilterEntryDlg.html#c123c8dc1c93f960ee8eb5bcda9c7d10">_editMatch1</a>->text()); -<a name="l00120"></a>00120 QIntValidator* validator = <span class="keyword">new</span> QIntValidator (<a class="code" href="classFilterEntryDlg.html#c123c8dc1c93f960ee8eb5bcda9c7d10">_editMatch1</a>); -<a name="l00121"></a>00121 <span class="keywordflow">if</span> (validator->validate (match, dummy) == QValidator::Invalid) +<a name="l00119"></a>00119 TQString match (<a class="code" href="classFilterEntryDlg.html#c123c8dc1c93f960ee8eb5bcda9c7d10">_editMatch1</a>->text()); +<a name="l00120"></a>00120 TQIntValidator* validator = <span class="keyword">new</span> TQIntValidator (<a class="code" href="classFilterEntryDlg.html#c123c8dc1c93f960ee8eb5bcda9c7d10">_editMatch1</a>); +<a name="l00121"></a>00121 <span class="keywordflow">if</span> (validator->validate (match, dummy) == TQValidator::Invalid) <a name="l00122"></a>00122 <a class="code" href="classFilterEntryDlg.html#c123c8dc1c93f960ee8eb5bcda9c7d10">_editMatch1</a>->clear(); <a name="l00123"></a>00123 <a class="code" href="classFilterEntryDlg.html#c123c8dc1c93f960ee8eb5bcda9c7d10">_editMatch1</a>->setValidator (validator); <a name="l00124"></a>00124 <a class="code" href="classFilterEntryDlg.html#21d063a47d1c8dc6d2f1387e36dc0e29">_checkCaseSensitive1</a>->setEnabled (<span class="keyword">false</span>); @@ -155,9 +155,9 @@ <a name="l00138"></a>00138 <span class="keywordflow">if</span> (type == FilterRecord::size) <a name="l00139"></a>00139 { <a name="l00140"></a>00140 <span class="keywordtype">int</span> dummy; -<a name="l00141"></a>00141 QString match (<a class="code" href="classFilterEntryDlg.html#125f104edaa77af22c802d1d5c4ead27">_editMatch2</a>->text()); -<a name="l00142"></a>00142 QIntValidator* validator = <span class="keyword">new</span> QIntValidator (<a class="code" href="classFilterEntryDlg.html#125f104edaa77af22c802d1d5c4ead27">_editMatch2</a>); -<a name="l00143"></a>00143 <span class="keywordflow">if</span> (validator->validate (match, dummy) == QValidator::Invalid) +<a name="l00141"></a>00141 TQString match (<a class="code" href="classFilterEntryDlg.html#125f104edaa77af22c802d1d5c4ead27">_editMatch2</a>->text()); +<a name="l00142"></a>00142 TQIntValidator* validator = <span class="keyword">new</span> TQIntValidator (<a class="code" href="classFilterEntryDlg.html#125f104edaa77af22c802d1d5c4ead27">_editMatch2</a>); +<a name="l00143"></a>00143 <span class="keywordflow">if</span> (validator->validate (match, dummy) == TQValidator::Invalid) <a name="l00144"></a>00144 <a class="code" href="classFilterEntryDlg.html#125f104edaa77af22c802d1d5c4ead27">_editMatch2</a>->clear(); <a name="l00145"></a>00145 <a class="code" href="classFilterEntryDlg.html#125f104edaa77af22c802d1d5c4ead27">_editMatch2</a>->setValidator (validator); <a name="l00146"></a>00146 <a class="code" href="classFilterEntryDlg.html#7bb75b57a7e6026de7a729d3c3e00eb5">_checkCaseSensitive2</a>->setEnabled (<span class="keyword">false</span>); @@ -195,13 +195,13 @@ <a name="l00178"></a>00178 <a class="code" href="classFilterEntryDlg.html#b53212305f82709bdcb7a0b89109067b">_editName</a>->setText (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#252af203fd2bf1784359034c73a7f6c8">toString</a>()); <a name="l00179"></a>00179 } <a name="l00180"></a>00180 -<a name="l00181"></a><a class="code" href="classFilterEntryDialog.html#598df103af53b46357e7f5b72ca56989">00181</a> <span class="keywordtype">void</span> <a class="code" href="classFilterEntryDialog.html#598df103af53b46357e7f5b72ca56989">FilterEntryDialog::slotMatch1Changed</a>(<span class="keyword">const</span> QString& match) +<a name="l00181"></a><a class="code" href="classFilterEntryDialog.html#598df103af53b46357e7f5b72ca56989">00181</a> <span class="keywordtype">void</span> <a class="code" href="classFilterEntryDialog.html#598df103af53b46357e7f5b72ca56989">FilterEntryDialog::slotMatch1Changed</a>(<span class="keyword">const</span> TQString& match) <a name="l00182"></a>00182 { <a name="l00183"></a>00183 <a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#a0dc9e7d0ab4a85f5426f091eb459565">_filter1</a>.<a class="code" href="classFilterRecord.html#72d4a650ab06738f169b562e5adbbaaa">_match</a> = match; <a name="l00184"></a>00184 <a class="code" href="classFilterEntryDlg.html#b53212305f82709bdcb7a0b89109067b">_editName</a>->setText (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#252af203fd2bf1784359034c73a7f6c8">toString</a>()); <a name="l00185"></a>00185 } <a name="l00186"></a>00186 -<a name="l00187"></a><a class="code" href="classFilterEntryDialog.html#fa9fdfabc86df022db4359efe31e8d8f">00187</a> <span class="keywordtype">void</span> <a class="code" href="classFilterEntryDialog.html#fa9fdfabc86df022db4359efe31e8d8f">FilterEntryDialog::slotMatch2Changed</a>(<span class="keyword">const</span> QString& match) +<a name="l00187"></a><a class="code" href="classFilterEntryDialog.html#fa9fdfabc86df022db4359efe31e8d8f">00187</a> <span class="keywordtype">void</span> <a class="code" href="classFilterEntryDialog.html#fa9fdfabc86df022db4359efe31e8d8f">FilterEntryDialog::slotMatch2Changed</a>(<span class="keyword">const</span> TQString& match) <a name="l00188"></a>00188 { <a name="l00189"></a>00189 <a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#e872e95b54e1af0c6773c92cec688020">_filter2</a>.<a class="code" href="classFilterRecord.html#72d4a650ab06738f169b562e5adbbaaa">_match</a> = match; <a name="l00190"></a>00190 <a class="code" href="classFilterEntryDlg.html#b53212305f82709bdcb7a0b89109067b">_editName</a>->setText (<a class="code" href="classFilterEntryDialog.html#9d49564214ed9c9c7ee9be3b2983cca8">_elem</a>-><a class="code" href="classFilterElem.html#252af203fd2bf1784359034c73a7f6c8">toString</a>()); @@ -220,10 +220,10 @@ <a name="l00203"></a>00203 <a name="l00204"></a><a class="code" href="classFilterEntryDialog.html#fb51ce872b6f69e25d69ae885bdbda35">00204</a> <span class="keywordtype">void</span> <a class="code" href="classFilterEntryDialog.html#fb51ce872b6f69e25d69ae885bdbda35">FilterEntryDialog::slotEditRegExp1</a>() <a name="l00205"></a>00205 { -<a name="l00206"></a>00206 QDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>( <span class="stringliteral">"KRegExpEditor/KRegExpEditor"</span> ); +<a name="l00206"></a>00206 TQDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( <span class="stringliteral">"KRegExpEditor/KRegExpEditor"</span> ); <a name="l00207"></a>00207 <span class="keywordflow">if</span> ( editorDialog ) <a name="l00208"></a>00208 { -<a name="l00209"></a>00209 <span class="comment">// kdeutils was installed, so the dialog was found fetch the editor interface</span> +<a name="l00209"></a>00209 <span class="comment">// tdeutils was installed, so the dialog was found fetch the editor interface</span> <a name="l00210"></a>00210 KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>( editorDialog->qt_cast( <span class="stringliteral">"KRegExpEditorInterface"</span> ) ); <a name="l00211"></a>00211 Q_ASSERT( editor ); <span class="comment">// This should not fail!</span> <a name="l00212"></a>00212 @@ -231,17 +231,17 @@ <a name="l00214"></a>00214 editor->setRegExp(<a class="code" href="classFilterEntryDlg.html#c123c8dc1c93f960ee8eb5bcda9c7d10">_editMatch1</a>->text()); <a name="l00215"></a>00215 <a name="l00216"></a>00216 <span class="comment">// Finally exec the dialog</span> -<a name="l00217"></a>00217 <span class="keywordflow">if</span> (editorDialog->exec() == QDialog::Accepted) +<a name="l00217"></a>00217 <span class="keywordflow">if</span> (editorDialog->exec() == TQDialog::Accepted) <a name="l00218"></a>00218 <a class="code" href="classFilterEntryDlg.html#c123c8dc1c93f960ee8eb5bcda9c7d10">_editMatch1</a>->setText (editor->regExp()); <a name="l00219"></a>00219 } <a name="l00220"></a>00220 } <a name="l00221"></a>00221 <a name="l00222"></a><a class="code" href="classFilterEntryDialog.html#cfcf731be60a186c0fe4f9033efee9bc">00222</a> <span class="keywordtype">void</span> <a class="code" href="classFilterEntryDialog.html#cfcf731be60a186c0fe4f9033efee9bc">FilterEntryDialog::slotEditRegExp2</a>() <a name="l00223"></a>00223 { -<a name="l00224"></a>00224 QDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>( <span class="stringliteral">"KRegExpEditor/KRegExpEditor"</span> ); +<a name="l00224"></a>00224 TQDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( <span class="stringliteral">"KRegExpEditor/KRegExpEditor"</span> ); <a name="l00225"></a>00225 <span class="keywordflow">if</span> ( editorDialog ) <a name="l00226"></a>00226 { -<a name="l00227"></a>00227 <span class="comment">// kdeutils was installed, so the dialog was found fetch the editor interface</span> +<a name="l00227"></a>00227 <span class="comment">// tdeutils was installed, so the dialog was found fetch the editor interface</span> <a name="l00228"></a>00228 KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>( editorDialog->qt_cast( <span class="stringliteral">"KRegExpEditorInterface"</span> ) ); <a name="l00229"></a>00229 Q_ASSERT( editor ); <span class="comment">// This should not fail!</span> <a name="l00230"></a>00230 @@ -249,7 +249,7 @@ <a name="l00232"></a>00232 editor->setRegExp(<a class="code" href="classFilterEntryDlg.html#125f104edaa77af22c802d1d5c4ead27">_editMatch2</a>->text()); <a name="l00233"></a>00233 <a name="l00234"></a>00234 <span class="comment">// Finally exec the dialog</span> -<a name="l00235"></a>00235 <span class="keywordflow">if</span> (editorDialog->exec() == QDialog::Accepted) +<a name="l00235"></a>00235 <span class="keywordflow">if</span> (editorDialog->exec() == TQDialog::Accepted) <a name="l00236"></a>00236 <a class="code" href="classFilterEntryDlg.html#125f104edaa77af22c802d1d5c4ead27">_editMatch2</a>->setText (editor->regExp()); <a name="l00237"></a>00237 } <a name="l00238"></a>00238 } |