You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
12 KiB
120 lines
12 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>kshowmail: kshowmail/EditDlg.cpp Source File</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.0 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="classes.html"><span>Classes</span></a></li>
|
|
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="dirs.html"><span>Directories</span></a></li>
|
|
</ul></div>
|
|
<div class="nav">
|
|
<a class="el" href="dir_656923b733374505e0e2f68ecb68d952.html">kshowmail</a></div>
|
|
<h1>EditDlg.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include <kdialog.h></span>
|
|
<a name="l00002"></a>00002 <span class="preprocessor">#include <tdelocale.h></span>
|
|
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************</span>
|
|
<a name="l00004"></a>00004 <span class="comment">** Form implementation generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/EditDlg.ui'</span>
|
|
<a name="l00005"></a>00005 <span class="comment">**</span>
|
|
<a name="l00006"></a>00006 <span class="comment">** Created: Di Mai 15 19:57:53 2007</span>
|
|
<a name="l00007"></a>00007 <span class="comment">** by: The User Interface Compiler ($Id: EditDlg_8cpp-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)</span>
|
|
<a name="l00008"></a>00008 <span class="comment">**</span>
|
|
<a name="l00009"></a>00009 <span class="comment">** WARNING! All changes made in this file will be lost!</span>
|
|
<a name="l00010"></a>00010 <span class="comment">****************************************************************************/</span>
|
|
<a name="l00011"></a>00011
|
|
<a name="l00012"></a>00012 <span class="preprocessor">#include "EditDlg.h"</span>
|
|
<a name="l00013"></a>00013
|
|
<a name="l00014"></a>00014 <span class="preprocessor">#include <ntqvariant.h></span>
|
|
<a name="l00015"></a>00015 <span class="preprocessor">#include <ktextbrowser.h></span>
|
|
<a name="l00016"></a>00016 <span class="preprocessor">#include <ntqpushbutton.h></span>
|
|
<a name="l00017"></a>00017 <span class="preprocessor">#include <ntqlayout.h></span>
|
|
<a name="l00018"></a>00018 <span class="preprocessor">#include <ntqtooltip.h></span>
|
|
<a name="l00019"></a>00019 <span class="preprocessor">#include <ntqwhatsthis.h></span>
|
|
<a name="l00020"></a>00020
|
|
<a name="l00021"></a>00021 <span class="comment">/*</span>
|
|
<a name="l00022"></a>00022 <span class="comment"> * Constructs a EditDlg as a child of 'parent', with the</span>
|
|
<a name="l00023"></a>00023 <span class="comment"> * name 'name' and widget flags set to 'f'.</span>
|
|
<a name="l00024"></a>00024 <span class="comment"> *</span>
|
|
<a name="l00025"></a>00025 <span class="comment"> * The dialog will by default be modeless, unless you set 'modal' to</span>
|
|
<a name="l00026"></a>00026 <span class="comment"> * TRUE to construct a modal dialog.</span>
|
|
<a name="l00027"></a>00027 <span class="comment"> */</span>
|
|
<a name="l00028"></a><a class="code" href="classEditDlg.html#1a0993a8c1b96893a290c3c7b8ce0a18">00028</a> <a class="code" href="classEditDlg.html#1a0993a8c1b96893a290c3c7b8ce0a18">EditDlg::EditDlg</a>( TQWidget* parent, <span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">bool</span> modal, WFlags fl )
|
|
<a name="l00029"></a>00029 : TQDialog( parent, name, modal, fl )
|
|
<a name="l00030"></a>00030 {
|
|
<a name="l00031"></a>00031 <span class="keywordflow">if</span> ( !name )
|
|
<a name="l00032"></a>00032 setName( <span class="stringliteral">"EditDlg"</span> );
|
|
<a name="l00033"></a>00033 <a class="code" href="classEditDlg.html#121ab750fca3f5077ec34c90edc8fb2e">EditDlgLayout</a> = <span class="keyword">new</span> TQVBoxLayout( <span class="keyword">this</span>, 11, 6, <span class="stringliteral">"EditDlgLayout"</span>);
|
|
<a name="l00034"></a>00034
|
|
<a name="l00035"></a>00035 <a class="code" href="classEditDlg.html#8e34dcd04a2c8ed5cd2592b971e3d674">headerlayout</a> = <span class="keyword">new</span> TQGridLayout( 0, 1, 1, 0, 6, <span class="stringliteral">"headerlayout"</span>);
|
|
<a name="l00036"></a>00036 <a class="code" href="classEditDlg.html#121ab750fca3f5077ec34c90edc8fb2e">EditDlgLayout</a>->addLayout( <a class="code" href="classEditDlg.html#8e34dcd04a2c8ed5cd2592b971e3d674">headerlayout</a> );
|
|
<a name="l00037"></a>00037
|
|
<a name="l00038"></a>00038 <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a> = <span class="keyword">new</span> KTextBrowser( <span class="keyword">this</span>, <span class="stringliteral">"m_Edit"</span> );
|
|
<a name="l00039"></a>00039 <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a>->setFocusPolicy( KTextBrowser::TabFocus );
|
|
<a name="l00040"></a>00040 <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a>->setTextFormat( KTextBrowser::AutoText );
|
|
<a name="l00041"></a>00041 <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a>->setReadOnly( TRUE );
|
|
<a name="l00042"></a>00042 <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a>->setUndoRedoEnabled( FALSE );
|
|
<a name="l00043"></a>00043 <a class="code" href="classEditDlg.html#121ab750fca3f5077ec34c90edc8fb2e">EditDlgLayout</a>->addWidget( <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a> );
|
|
<a name="l00044"></a>00044
|
|
<a name="l00045"></a>00045 <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a> = <span class="keyword">new</span> TQHBoxLayout( 0, 0, 6, <span class="stringliteral">"layout3"</span>);
|
|
<a name="l00046"></a>00046
|
|
<a name="l00047"></a>00047 <a class="code" href="classEditDlg.html#aefe39b417050379770eb36c102f3d01">_buttonReply</a> = <span class="keyword">new</span> TQPushButton( <span class="keyword">this</span>, <span class="stringliteral">"_buttonReply"</span> );
|
|
<a name="l00048"></a>00048 <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a>->addWidget( <a class="code" href="classEditDlg.html#aefe39b417050379770eb36c102f3d01">_buttonReply</a> );
|
|
<a name="l00049"></a>00049 <a class="code" href="classEditDlg.html#c7b18d6e1e9a58b38758c4ab2439edbd">Spacer15</a> = <span class="keyword">new</span> TQSpacerItem( 120, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
|
|
<a name="l00050"></a>00050 <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a>->addItem( <a class="code" href="classEditDlg.html#c7b18d6e1e9a58b38758c4ab2439edbd">Spacer15</a> );
|
|
<a name="l00051"></a>00051
|
|
<a name="l00052"></a>00052 <a class="code" href="classEditDlg.html#8cb35c7986c9d882cddb2c3de4e48a1a">_buttonOk</a> = <span class="keyword">new</span> TQPushButton( <span class="keyword">this</span>, <span class="stringliteral">"_buttonOk"</span> );
|
|
<a name="l00053"></a>00053 <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a>->addWidget( <a class="code" href="classEditDlg.html#8cb35c7986c9d882cddb2c3de4e48a1a">_buttonOk</a> );
|
|
<a name="l00054"></a>00054
|
|
<a name="l00055"></a>00055 <a class="code" href="classEditDlg.html#f96408404a78ca846820488c1aae1429">_buttonCancel</a> = <span class="keyword">new</span> TQPushButton( <span class="keyword">this</span>, <span class="stringliteral">"_buttonCancel"</span> );
|
|
<a name="l00056"></a>00056 <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a>->addWidget( <a class="code" href="classEditDlg.html#f96408404a78ca846820488c1aae1429">_buttonCancel</a> );
|
|
<a name="l00057"></a>00057 <a class="code" href="classEditDlg.html#121ab750fca3f5077ec34c90edc8fb2e">EditDlgLayout</a>->addLayout( <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a> );
|
|
<a name="l00058"></a>00058 <a class="code" href="classEditDlg.html#d3a3cffb24bdee707ff2e5d86c4e71bd">languageChange</a>();
|
|
<a name="l00059"></a>00059 resize( TQSize(444, 447).expandedTo(minimumSizeHint()) );
|
|
<a name="l00060"></a>00060 clearWState( WState_Polished );
|
|
<a name="l00061"></a>00061
|
|
<a name="l00062"></a>00062 <span class="comment">// signals and slots connections</span>
|
|
<a name="l00063"></a>00063 connect( <a class="code" href="classEditDlg.html#8cb35c7986c9d882cddb2c3de4e48a1a">_buttonOk</a>, SIGNAL( clicked() ), <span class="keyword">this</span>, SLOT( accept() ) );
|
|
<a name="l00064"></a>00064 connect( <a class="code" href="classEditDlg.html#f96408404a78ca846820488c1aae1429">_buttonCancel</a>, SIGNAL( clicked() ), <span class="keyword">this</span>, SLOT( reject() ) );
|
|
<a name="l00065"></a>00065 connect( <a class="code" href="classEditDlg.html#aefe39b417050379770eb36c102f3d01">_buttonReply</a>, SIGNAL( clicked() ), <span class="keyword">this</span>, SLOT( <a class="code" href="classEditDlg.html#9ab14db19e57d69fa883c76406a01f82">slotReplyClicked</a>() ) );
|
|
<a name="l00066"></a>00066
|
|
<a name="l00067"></a>00067 <span class="comment">// tab order</span>
|
|
<a name="l00068"></a>00068 setTabOrder( <a class="code" href="classEditDlg.html#8cb35c7986c9d882cddb2c3de4e48a1a">_buttonOk</a>, <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a> );
|
|
<a name="l00069"></a>00069 }
|
|
<a name="l00070"></a>00070
|
|
<a name="l00071"></a>00071 <span class="comment">/*</span>
|
|
<a name="l00072"></a>00072 <span class="comment"> * Destroys the object and frees any allocated resources</span>
|
|
<a name="l00073"></a>00073 <span class="comment"> */</span>
|
|
<a name="l00074"></a><a class="code" href="classEditDlg.html#d2ee10f87c785df1bd542d5a40f457c9">00074</a> <a class="code" href="classEditDlg.html#d2ee10f87c785df1bd542d5a40f457c9">EditDlg::~EditDlg</a>()
|
|
<a name="l00075"></a>00075 {
|
|
<a name="l00076"></a>00076 <span class="comment">// no need to delete child widgets, TQt does it all for us</span>
|
|
<a name="l00077"></a>00077 }
|
|
<a name="l00078"></a>00078
|
|
<a name="l00079"></a>00079 <span class="comment">/*</span>
|
|
<a name="l00080"></a>00080 <span class="comment"> * Sets the strings of the subwidgets using the current</span>
|
|
<a name="l00081"></a>00081 <span class="comment"> * language.</span>
|
|
<a name="l00082"></a>00082 <span class="comment"> */</span>
|
|
<a name="l00083"></a><a class="code" href="classEditDlg.html#d3a3cffb24bdee707ff2e5d86c4e71bd">00083</a> <span class="keywordtype">void</span> <a class="code" href="classEditDlg.html#d3a3cffb24bdee707ff2e5d86c4e71bd">EditDlg::languageChange</a>()
|
|
<a name="l00084"></a>00084 {
|
|
<a name="l00085"></a>00085 setCaption( tr2i18n( <span class="stringliteral">"Message"</span> ) );
|
|
<a name="l00086"></a>00086 <a class="code" href="classEditDlg.html#aefe39b417050379770eb36c102f3d01">_buttonReply</a>->setText( tr2i18n( <span class="stringliteral">"Reply"</span> ) );
|
|
<a name="l00087"></a>00087 TQToolTip::add( <a class="code" href="classEditDlg.html#aefe39b417050379770eb36c102f3d01">_buttonReply</a>, tr2i18n( <span class="stringliteral">"Send reply mail"</span> ) );
|
|
<a name="l00088"></a>00088 <a class="code" href="classEditDlg.html#8cb35c7986c9d882cddb2c3de4e48a1a">_buttonOk</a>->setText( tr2i18n( <span class="stringliteral">"OK"</span> ) );
|
|
<a name="l00089"></a>00089 <a class="code" href="classEditDlg.html#f96408404a78ca846820488c1aae1429">_buttonCancel</a>->setText( tr2i18n( <span class="stringliteral">"Cancel"</span> ) );
|
|
<a name="l00090"></a>00090 }
|
|
<a name="l00091"></a>00091
|
|
<a name="l00092"></a><a class="code" href="classEditDlg.html#9ab14db19e57d69fa883c76406a01f82">00092</a> <span class="keywordtype">void</span> <a class="code" href="classEditDlg.html#9ab14db19e57d69fa883c76406a01f82">EditDlg::slotReplyClicked</a>()
|
|
<a name="l00093"></a>00093 {
|
|
<a name="l00094"></a>00094 tqWarning( <span class="stringliteral">"EditDlg::slotReplyClicked(): Not implemented yet"</span> );
|
|
<a name="l00095"></a>00095 }
|
|
<a name="l00096"></a>00096
|
|
<a name="l00097"></a>00097 <span class="preprocessor">#include "EditDlg.moc"</span>
|
|
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed May 16 21:15:18 2007 for kshowmail by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
|
|
</body>
|
|
</html>
|