summaryrefslogtreecommitdiffstats
path: root/doc/html/EditDlg_8cpp-source.html
blob: 4a3668143b6df2a9b33f29a1e82039ac3d161185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!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&nbsp;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 &lt;kdialog.h&gt;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#include &lt;klocale.h&gt;</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 &lt;qvariant.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;ktextbrowser.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;qpushbutton.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;qlayout.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;qtooltip.h&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;qwhatsthis.h&gt;</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>( QWidget* 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     : QDialog( 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> QVBoxLayout( <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> QGridLayout( 0, 1, 1, 0, 6, <span class="stringliteral">"headerlayout"</span>); 
<a name="l00036"></a>00036     <a class="code" href="classEditDlg.html#121ab750fca3f5077ec34c90edc8fb2e">EditDlgLayout</a>-&gt;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>-&gt;setFocusPolicy( KTextBrowser::TabFocus );
<a name="l00040"></a>00040     <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a>-&gt;setTextFormat( KTextBrowser::AutoText );
<a name="l00041"></a>00041     <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a>-&gt;setReadOnly( TRUE );
<a name="l00042"></a>00042     <a class="code" href="classEditDlg.html#e0c63f69593ec302266eb0adde25423c">m_Edit</a>-&gt;setUndoRedoEnabled( FALSE );
<a name="l00043"></a>00043     <a class="code" href="classEditDlg.html#121ab750fca3f5077ec34c90edc8fb2e">EditDlgLayout</a>-&gt;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> QHBoxLayout( 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> QPushButton( <span class="keyword">this</span>, <span class="stringliteral">"_buttonReply"</span> );
<a name="l00048"></a>00048     <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a>-&gt;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> QSpacerItem( 120, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
<a name="l00050"></a>00050     <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a>-&gt;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> QPushButton( <span class="keyword">this</span>, <span class="stringliteral">"_buttonOk"</span> );
<a name="l00053"></a>00053     <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a>-&gt;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> QPushButton( <span class="keyword">this</span>, <span class="stringliteral">"_buttonCancel"</span> );
<a name="l00056"></a>00056     <a class="code" href="classEditDlg.html#7b993caff60b9567e77dd966e0a03d12">layout3</a>-&gt;addWidget( <a class="code" href="classEditDlg.html#f96408404a78ca846820488c1aae1429">_buttonCancel</a> );
<a name="l00057"></a>00057     <a class="code" href="classEditDlg.html#121ab750fca3f5077ec34c90edc8fb2e">EditDlgLayout</a>-&gt;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( QSize(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, Qt 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>-&gt;setText( tr2i18n( <span class="stringliteral">"Reply"</span> ) );
<a name="l00087"></a>00087     QToolTip::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>-&gt;setText( tr2i18n( <span class="stringliteral">"OK"</span> ) );
<a name="l00089"></a>00089     <a class="code" href="classEditDlg.html#f96408404a78ca846820488c1aae1429">_buttonCancel</a>-&gt;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     qWarning( <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&nbsp;
<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>