Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 3897

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kdeui: kpassivepopup.cpp Source File (kdeui)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kdeui</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
<div class="header">
  <div class="headertitle">
<div class="title">kpassivepopup.cpp</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> *   copyright            : (C) 2001-2002 by Richard Moore</span>
<a name="l00003"></a>00003 <span class="comment"> *   copyright            : (C) 2004-2005 by Sascha Cunz</span>
<a name="l00004"></a>00004 <span class="comment"> *   License              : This file is released under the terms of the LGPL, version 2.</span>
<a name="l00005"></a>00005 <span class="comment"> *   email                : rich@kde.org</span>
<a name="l00006"></a>00006 <span class="comment"> *   email                : sascha.cunz@tiscali.de</span>
<a name="l00007"></a>00007 <span class="comment"> */</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;kconfig.h&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;qapplication.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;qlabel.h&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;qlayout.h&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;qtimer.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;qvbox.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;qpainter.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;qtooltip.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;qbitmap.h&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;qpointarray.h&gt;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;kdebug.h&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;kdialog.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;kpixmap.h&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;kpixmapeffect.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;kglobalsettings.h&gt;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;config.h&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#include &lt;netwm.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#endif</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;kpassivepopup.h&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;kpassivepopup.moc&quot;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">class </span>KPassivePopup::Private
<a name="l00036"></a>00036 {
<a name="l00037"></a>00037 <span class="keyword">public</span>:
<a name="l00038"></a>00038   <span class="keywordtype">int</span> popupStyle;
<a name="l00039"></a>00039   <a class="codeRef" href="qpointarray.html">QPointArray</a>               surround;
<a name="l00040"></a>00040   <a class="codeRef" href="qpoint.html">QPoint</a>                    anchor;
<a name="l00041"></a>00041   <a class="codeRef" href="qpoint.html">QPoint</a>                    fixedPosition;
<a name="l00042"></a>00042 };
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> DEFAULT_POPUP_TYPE = <a class="code" href="classKPassivePopup.html#ab601e81f84f0eee5b22f11f9b35d3b10a5967c51584652b06b8f300a7e316cef6" title="Information will appear in a framed box (default)">KPassivePopup::Boxed</a>;
<a name="l00045"></a>00045 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> DEFAULT_POPUP_TIME = 6*1000;
<a name="l00046"></a>00046 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> POPUP_FLAGS = Qt::WStyle_Customize | Qt::WDestructiveClose | Qt::WX11BypassWM
<a name="l00047"></a>00047                              | Qt::WStyle_StaysOnTop | Qt::WStyle_Tool | Qt::WStyle_NoBorder;
<a name="l00048"></a>00048 
<a name="l00049"></a><a class="code" href="classKPassivePopup.html#ab15ced94489745f22ca1b6ac3891c335">00049</a> <a class="code" href="classKPassivePopup.html#ab15ced94489745f22ca1b6ac3891c335" title="Creates a popup for the specified widget.">KPassivePopup::KPassivePopup</a>( <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, WFlags f )
<a name="l00050"></a>00050     : <a class="codeRef" href="qframe.html">QFrame</a>( 0, name, f ? f : POPUP_FLAGS ),
<a name="l00051"></a>00051       window( parent ? parent-&gt;winId() : 0L ), msgView( 0 ), topLayout( 0 ),
<a name="l00052"></a>00052       hideDelay( DEFAULT_POPUP_TIME ), hideTimer( new <a class="codeRef" href="qtimer.html">QTimer</a>( this, <span class="stringliteral">&quot;hide_timer&quot;</span> ) ),
<a name="l00053"></a>00053       m_autoDelete( false )
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055     init( DEFAULT_POPUP_TYPE );
<a name="l00056"></a>00056 }
<a name="l00057"></a>00057 
<a name="l00058"></a><a class="code" href="classKPassivePopup.html#acf1da64da9cf7382da477515474dd278">00058</a> <a class="code" href="classKPassivePopup.html#ab15ced94489745f22ca1b6ac3891c335" title="Creates a popup for the specified widget.">KPassivePopup::KPassivePopup</a>( WId win, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, WFlags f )
<a name="l00059"></a>00059     : <a class="codeRef" href="qframe.html">QFrame</a>( 0, name, f ? f : POPUP_FLAGS ),
<a name="l00060"></a>00060       window( win ), msgView( 0 ), topLayout( 0 ),
<a name="l00061"></a>00061       hideDelay( DEFAULT_POPUP_TIME ), hideTimer( new <a class="codeRef" href="qtimer.html">QTimer</a>( this, <span class="stringliteral">&quot;hide_timer&quot;</span> ) ),
<a name="l00062"></a>00062       m_autoDelete( false )
<a name="l00063"></a>00063 {
<a name="l00064"></a>00064     init( DEFAULT_POPUP_TYPE );
<a name="l00065"></a>00065 }
<a name="l00066"></a>00066 
<a name="l00067"></a><a class="code" href="classKPassivePopup.html#a24a2685514de1336b09808a3b15713bc">00067</a> <a class="code" href="classKPassivePopup.html#ab15ced94489745f22ca1b6ac3891c335" title="Creates a popup for the specified widget.">KPassivePopup::KPassivePopup</a>( <span class="keywordtype">int</span> popupStyle, <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, WFlags f )
<a name="l00068"></a>00068     : <a class="codeRef" href="qframe.html">QFrame</a>( 0, name, f ? f : POPUP_FLAGS ),
<a name="l00069"></a>00069       window( parent ? parent-&gt;winId() : 0L ), msgView( 0 ), topLayout( 0 ),
<a name="l00070"></a>00070       hideDelay( DEFAULT_POPUP_TIME ), hideTimer( new <a class="codeRef" href="qtimer.html">QTimer</a>( this, <span class="stringliteral">&quot;hide_timer&quot;</span> ) ),
<a name="l00071"></a>00071       m_autoDelete( false )
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073     init( popupStyle );
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="classKPassivePopup.html#a9d3dbcf3308df523f14cc4afc8a37119">00076</a> <a class="code" href="classKPassivePopup.html#ab15ced94489745f22ca1b6ac3891c335" title="Creates a popup for the specified widget.">KPassivePopup::KPassivePopup</a>( <span class="keywordtype">int</span> popupStyle, WId win, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, WFlags f )
<a name="l00077"></a>00077     : <a class="codeRef" href="qframe.html">QFrame</a>( 0, name, f ? f : POPUP_FLAGS ),
<a name="l00078"></a>00078       window( win ), msgView( 0 ), topLayout( 0 ),
<a name="l00079"></a>00079       hideDelay( DEFAULT_POPUP_TIME ), hideTimer( new <a class="codeRef" href="qtimer.html">QTimer</a>( this, <span class="stringliteral">&quot;hide_timer&quot;</span> ) ),
<a name="l00080"></a>00080       m_autoDelete( false )
<a name="l00081"></a>00081 {
<a name="l00082"></a>00082     init( popupStyle );
<a name="l00083"></a>00083 }
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keywordtype">void</span> KPassivePopup::init( <span class="keywordtype">int</span> popupStyle )
<a name="l00086"></a>00086 {
<a name="l00087"></a>00087     d = <span class="keyword">new</span> Private;
<a name="l00088"></a>00088     d-&gt;popupStyle = popupStyle;
<a name="l00089"></a>00089     <span class="keywordflow">if</span>( popupStyle == <a class="code" href="classKPassivePopup.html#ab601e81f84f0eee5b22f11f9b35d3b10a5967c51584652b06b8f300a7e316cef6" title="Information will appear in a framed box (default)">Boxed</a> )
<a name="l00090"></a>00090     {
<a name="l00091"></a>00091         <a class="codeRef" href="qframe.html#setFrameStyle">setFrameStyle</a>( QFrame::Box| QFrame::Plain );
<a name="l00092"></a>00092         <a class="codeRef" href="qframe.html#setLineWidth">setLineWidth</a>( 2 );
<a name="l00093"></a>00093     }
<a name="l00094"></a>00094     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( popupStyle == <a class="code" href="classKPassivePopup.html#ab601e81f84f0eee5b22f11f9b35d3b10aec76a5c8b0350390bc042b0dd0d3b9e9" title="Information will appear in a comic-alike balloon.">Balloon</a> )
<a name="l00095"></a>00095     {
<a name="l00096"></a>00096         setPalette(<a class="codeRef" href="qtooltip.html#palette">QToolTip::palette</a>());
<a name="l00097"></a>00097         setAutoMask(TRUE);
<a name="l00098"></a>00098     }
<a name="l00099"></a>00099     connect( hideTimer, SIGNAL( <a class="code" href="classKPassivePopup.html#adcbbcef0b9dbdc77facc385b5a881b8f" title="Returns the delay before the popup is removed automatically.">timeout</a>() ), SLOT( hide() ) );
<a name="l00100"></a>00100     connect( <span class="keyword">this</span>, SIGNAL( <a class="code" href="classKPassivePopup.html#ac828ba59677ea9183f9c7c05445d2136" title="Emitted when the popup is clicked.">clicked</a>() ), SLOT( hide() ) );
<a name="l00101"></a>00101 }
<a name="l00102"></a>00102 
<a name="l00103"></a><a class="code" href="classKPassivePopup.html#a35172064c7f775c7ff0d12a02d73e73c">00103</a> <a class="code" href="classKPassivePopup.html#a35172064c7f775c7ff0d12a02d73e73c" title="Cleans up.">KPassivePopup::~KPassivePopup</a>()
<a name="l00104"></a>00104 {
<a name="l00105"></a>00105     <span class="keyword">delete</span> d;
<a name="l00106"></a>00106 }
<a name="l00107"></a>00107 
<a name="l00108"></a><a class="code" href="classKPassivePopup.html#ae6b4e592ed66952a358ed0dc3c9e3aaa">00108</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#ae6b4e592ed66952a358ed0dc3c9e3aaa" title="Sets the main view to be the specified widget (which must be a child of the popup).">KPassivePopup::setView</a>( <a class="codeRef" href="qwidget.html">QWidget</a> *child )
<a name="l00109"></a>00109 {
<a name="l00110"></a>00110     <span class="keyword">delete</span> msgView;
<a name="l00111"></a>00111     msgView = child;
<a name="l00112"></a>00112 
<a name="l00113"></a>00113     <span class="keyword">delete</span> topLayout;
<a name="l00114"></a>00114     topLayout = <span class="keyword">new</span> <a class="codeRef" href="qvboxlayout.html">QVBoxLayout</a>( <span class="keyword">this</span>, d-&gt;popupStyle == <a class="code" href="classKPassivePopup.html#ab601e81f84f0eee5b22f11f9b35d3b10aec76a5c8b0350390bc042b0dd0d3b9e9" title="Information will appear in a comic-alike balloon.">Balloon</a> ? 22 : <a class="code" href="classKDialog.html#a082fda0cc6998fc963a69e8a836771be" title="Return the number of pixels you shall use between a dialog edge and the outermost widget(s) according...">KDialog::marginHint</a>(), <a class="code" href="classKDialog.html#a77f3df3337a2c906c8685d1c254a3a35" title="Return the number of pixels you shall use between widgets inside a dialog according to the KDE standa...">KDialog::spacingHint</a>() );
<a name="l00115"></a>00115     topLayout-&gt;<a class="codeRef" href="qboxlayout.html#addWidget">addWidget</a>( msgView );
<a name="l00116"></a>00116     topLayout-&gt;activate();
<a name="l00117"></a>00117 }
<a name="l00118"></a>00118 
<a name="l00119"></a><a class="code" href="classKPassivePopup.html#aeb555f89ff6d6aced18a4a286d6ff537">00119</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#ae6b4e592ed66952a358ed0dc3c9e3aaa" title="Sets the main view to be the specified widget (which must be a child of the popup).">KPassivePopup::setView</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;caption, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text,
<a name="l00120"></a>00120                              <span class="keyword">const</span> <a class="codeRef" href="qpixmap.html">QPixmap</a> &amp;icon )
<a name="l00121"></a>00121 {
<a name="l00122"></a>00122     <span class="comment">// kdDebug() &lt;&lt; &quot;KPassivePopup::setView &quot; &lt;&lt; caption &lt;&lt; &quot;, &quot; &lt;&lt; text &lt;&lt; endl;</span>
<a name="l00123"></a>00123     <a class="code" href="classKPassivePopup.html#ae6b4e592ed66952a358ed0dc3c9e3aaa" title="Sets the main view to be the specified widget (which must be a child of the popup).">setView</a>( <a class="code" href="classKPassivePopup.html#ad5ca0d646be539914aa7db82052b167c" title="Returns a widget that is used as standard view if one of the setView() methods taking the QString arg...">standardView</a>( caption, text, icon, <span class="keyword">this</span> ) );
<a name="l00124"></a>00124 }
<a name="l00125"></a>00125 
<a name="l00126"></a><a class="code" href="classKPassivePopup.html#ad5ca0d646be539914aa7db82052b167c">00126</a> <a class="codeRef" href="qvbox.html">QVBox</a> * <a class="code" href="classKPassivePopup.html#ad5ca0d646be539914aa7db82052b167c" title="Returns a widget that is used as standard view if one of the setView() methods taking the QString arg...">KPassivePopup::standardView</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; caption,
<a name="l00127"></a>00127                                      <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; text,
<a name="l00128"></a>00128                                      <span class="keyword">const</span> <a class="codeRef" href="qpixmap.html">QPixmap</a>&amp; icon,
<a name="l00129"></a>00129                                      <a class="codeRef" href="qwidget.html">QWidget</a> *parent )
<a name="l00130"></a>00130 {
<a name="l00131"></a>00131     <a class="codeRef" href="qvbox.html">QVBox</a> *vb = <span class="keyword">new</span> <a class="codeRef" href="qvbox.html">QVBox</a>( parent ? parent : <span class="keyword">this</span> );
<a name="l00132"></a>00132     vb-&gt;setSpacing( <a class="code" href="classKDialog.html#a77f3df3337a2c906c8685d1c254a3a35" title="Return the number of pixels you shall use between widgets inside a dialog according to the KDE standa...">KDialog::spacingHint</a>() );
<a name="l00133"></a>00133 
<a name="l00134"></a>00134     <a class="codeRef" href="qhbox.html">QHBox</a> *hb=0;
<a name="l00135"></a>00135     <span class="keywordflow">if</span> ( !icon.<a class="codeRef" href="qpixmap.html#isNull">isNull</a>() ) {
<a name="l00136"></a>00136     hb = <span class="keyword">new</span> <a class="codeRef" href="qhbox.html">QHBox</a>( vb );
<a name="l00137"></a>00137     hb-&gt;setMargin( 0 );
<a name="l00138"></a>00138     hb-&gt;<a class="codeRef" href="qhbox.html#setSpacing">setSpacing</a>( <a class="code" href="classKDialog.html#a77f3df3337a2c906c8685d1c254a3a35" title="Return the number of pixels you shall use between widgets inside a dialog according to the KDE standa...">KDialog::spacingHint</a>() );
<a name="l00139"></a>00139     ttlIcon = <span class="keyword">new</span> <a class="codeRef" href="qlabel.html">QLabel</a>( hb, <span class="stringliteral">&quot;title_icon&quot;</span> );
<a name="l00140"></a>00140     ttlIcon-&gt;<a class="codeRef" href="qlabel.html#setPixmap">setPixmap</a>( icon );
<a name="l00141"></a>00141         ttlIcon-&gt;<a class="codeRef" href="qlabel.html#setAlignment">setAlignment</a>( AlignLeft );
<a name="l00142"></a>00142     }
<a name="l00143"></a>00143 
<a name="l00144"></a>00144     <span class="keywordflow">if</span> ( !caption.<a class="codeRef" href="qstring.html#isEmpty">isEmpty</a>() ) {
<a name="l00145"></a>00145     ttl = <span class="keyword">new</span> <a class="codeRef" href="qlabel.html">QLabel</a>( caption, hb ? hb : vb, <span class="stringliteral">&quot;title_label&quot;</span> );
<a name="l00146"></a>00146     <a class="codeRef" href="qfont.html">QFont</a> fnt = ttl-&gt;font();
<a name="l00147"></a>00147     fnt.<a class="codeRef" href="qfont.html#setBold">setBold</a>( <span class="keyword">true</span> );
<a name="l00148"></a>00148     ttl-&gt;<a class="codeRef" href="qlabel.html#setFont">setFont</a>( fnt );
<a name="l00149"></a>00149     ttl-&gt;<a class="codeRef" href="qlabel.html#setAlignment">setAlignment</a>( Qt::AlignHCenter );
<a name="l00150"></a>00150         <span class="keywordflow">if</span> ( hb )
<a name="l00151"></a>00151             hb-&gt;<a class="codeRef" href="qhbox.html#setStretchFactor">setStretchFactor</a>( ttl, 10 ); <span class="comment">// enforce centering</span>
<a name="l00152"></a>00152     }
<a name="l00153"></a>00153 
<a name="l00154"></a>00154     <span class="keywordflow">if</span> ( !text.<a class="codeRef" href="qstring.html#isEmpty">isEmpty</a>() ) {
<a name="l00155"></a>00155         msg = <span class="keyword">new</span> <a class="codeRef" href="qlabel.html">QLabel</a>( text, vb, <span class="stringliteral">&quot;msg_label&quot;</span> );
<a name="l00156"></a>00156         msg-&gt;<a class="codeRef" href="qlabel.html#setAlignment">setAlignment</a>( AlignLeft );
<a name="l00157"></a>00157     }
<a name="l00158"></a>00158 
<a name="l00159"></a>00159     <span class="keywordflow">return</span> vb;
<a name="l00160"></a>00160 }
<a name="l00161"></a>00161 
<a name="l00162"></a><a class="code" href="classKPassivePopup.html#aa838b2144c7601e7de9f0db209c39754">00162</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#ae6b4e592ed66952a358ed0dc3c9e3aaa" title="Sets the main view to be the specified widget (which must be a child of the popup).">KPassivePopup::setView</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;caption, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text )
<a name="l00163"></a>00163 {
<a name="l00164"></a>00164     <a class="code" href="classKPassivePopup.html#ae6b4e592ed66952a358ed0dc3c9e3aaa" title="Sets the main view to be the specified widget (which must be a child of the popup).">setView</a>( caption, text, <a class="codeRef" href="qpixmap.html">QPixmap</a>() );
<a name="l00165"></a>00165 }
<a name="l00166"></a>00166 
<a name="l00167"></a><a class="code" href="classKPassivePopup.html#a23969439de8e2a6a5ea54c06e22f907e">00167</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#a23969439de8e2a6a5ea54c06e22f907e" title="Sets the delay for the popup is removed automatically.">KPassivePopup::setTimeout</a>( <span class="keywordtype">int</span> delay )
<a name="l00168"></a>00168 {
<a name="l00169"></a>00169     hideDelay = delay;
<a name="l00170"></a>00170     <span class="keywordflow">if</span>( hideTimer-&gt;<a class="codeRef" href="qtimer.html#isActive">isActive</a>() )
<a name="l00171"></a>00171     {
<a name="l00172"></a>00172         <span class="keywordflow">if</span>( delay ) {
<a name="l00173"></a>00173             hideTimer-&gt;<a class="codeRef" href="qtimer.html#changeInterval">changeInterval</a>( delay );
<a name="l00174"></a>00174         } <span class="keywordflow">else</span> {
<a name="l00175"></a>00175             hideTimer-&gt;<a class="codeRef" href="qtimer.html#stop">stop</a>();
<a name="l00176"></a>00176         }
<a name="l00177"></a>00177     }
<a name="l00178"></a>00178 }
<a name="l00179"></a>00179 
<a name="l00180"></a><a class="code" href="classKPassivePopup.html#a6e0685fff0e50e91a1051463b4d043aa">00180</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#a6e0685fff0e50e91a1051463b4d043aa" title="Enables / disables auto-deletion of this widget when the timeout occurs.">KPassivePopup::setAutoDelete</a>( <span class="keywordtype">bool</span> autoDelete )
<a name="l00181"></a>00181 {
<a name="l00182"></a>00182     m_autoDelete = <a class="code" href="classKPassivePopup.html#a8aced59e1c01e7215d641a768bd3dc40">autoDelete</a>;
<a name="l00183"></a>00183 }
<a name="l00184"></a>00184 
<a name="l00185"></a><a class="code" href="classKPassivePopup.html#add661014f9ae551e45d738f3603a5e23">00185</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#add661014f9ae551e45d738f3603a5e23" title="Reimplemented to detect mouse clicks.">KPassivePopup::mouseReleaseEvent</a>( <a class="codeRef" href="qmouseevent.html">QMouseEvent</a> *e )
<a name="l00186"></a>00186 {
<a name="l00187"></a>00187     emit <a class="code" href="classKPassivePopup.html#ac828ba59677ea9183f9c7c05445d2136" title="Emitted when the popup is clicked.">clicked</a>();
<a name="l00188"></a>00188     emit <a class="code" href="classKPassivePopup.html#ac828ba59677ea9183f9c7c05445d2136" title="Emitted when the popup is clicked.">clicked</a>( e-&gt;<a class="codeRef" href="qmouseevent.html#pos">pos</a>() );
<a name="l00189"></a>00189 }
<a name="l00190"></a>00190 
<a name="l00191"></a>00191 <span class="comment">//</span>
<a name="l00192"></a>00192 <span class="comment">// Main Implementation</span>
<a name="l00193"></a>00193 <span class="comment">//</span>
<a name="l00194"></a>00194 
<a name="l00195"></a><a class="code" href="classKPassivePopup.html#ab99878c4327f28994804e71274d909f9">00195</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#ab99878c4327f28994804e71274d909f9" title="Reimplemented to reposition the popup.">KPassivePopup::show</a>()
<a name="l00196"></a>00196 {
<a name="l00197"></a>00197     <span class="keywordflow">if</span> ( size() != sizeHint() )
<a name="l00198"></a>00198     resize( sizeHint() );
<a name="l00199"></a>00199 
<a name="l00200"></a>00200     <span class="keywordflow">if</span> ( d-&gt;fixedPosition.isNull() )
<a name="l00201"></a>00201     <a class="code" href="classKPassivePopup.html#a8763f6829327b32abee0ed0d79e0eb4c" title="This method positions the popup.">positionSelf</a>();
<a name="l00202"></a>00202     <span class="keywordflow">else</span> {
<a name="l00203"></a>00203     <span class="keywordflow">if</span>( d-&gt;popupStyle == <a class="code" href="classKPassivePopup.html#ab601e81f84f0eee5b22f11f9b35d3b10aec76a5c8b0350390bc042b0dd0d3b9e9" title="Information will appear in a comic-alike balloon.">Balloon</a> )
<a name="l00204"></a>00204         <a class="code" href="classKPassivePopup.html#a8ea02c62793b8929c4617982dae96a4c" title="Sets the anchor of this balloon.">setAnchor</a>( d-&gt;fixedPosition );
<a name="l00205"></a>00205     <span class="keywordflow">else</span>
<a name="l00206"></a>00206         move( d-&gt;fixedPosition );
<a name="l00207"></a>00207     }
<a name="l00208"></a>00208     <a class="code" href="classKPassivePopup.html#ab99878c4327f28994804e71274d909f9" title="Reimplemented to reposition the popup.">QFrame::show</a>();
<a name="l00209"></a>00209 
<a name="l00210"></a>00210     <span class="keywordtype">int</span> delay = hideDelay;
<a name="l00211"></a>00211     <span class="keywordflow">if</span> ( delay &lt; 0 ) {
<a name="l00212"></a>00212         delay = DEFAULT_POPUP_TIME;
<a name="l00213"></a>00213     }
<a name="l00214"></a>00214 
<a name="l00215"></a>00215     <span class="keywordflow">if</span> ( delay &gt; 0 ) {
<a name="l00216"></a>00216         hideTimer-&gt;<a class="codeRef" href="qtimer.html#start">start</a>( delay );
<a name="l00217"></a>00217     }
<a name="l00218"></a>00218 }
<a name="l00219"></a>00219 
<a name="l00220"></a><a class="code" href="classKPassivePopup.html#a55c6fdadeab7be0e6d3588006c8a7dc0">00220</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#ab99878c4327f28994804e71274d909f9" title="Reimplemented to reposition the popup.">KPassivePopup::show</a>(<span class="keyword">const</span> <a class="codeRef" href="qpoint.html">QPoint</a> &amp;p)
<a name="l00221"></a>00221 {
<a name="l00222"></a>00222     d-&gt;fixedPosition = p;
<a name="l00223"></a>00223     <a class="code" href="classKPassivePopup.html#ab99878c4327f28994804e71274d909f9" title="Reimplemented to reposition the popup.">show</a>();
<a name="l00224"></a>00224 }
<a name="l00225"></a>00225 
<a name="l00226"></a><a class="code" href="classKPassivePopup.html#a6a53995ae703451e2cce1230db8737ec">00226</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#a6a53995ae703451e2cce1230db8737ec" title="Reimplemented to destroy the object when autoDelete() is enabled.">KPassivePopup::hideEvent</a>( <a class="codeRef" href="qhideevent.html">QHideEvent</a> * )
<a name="l00227"></a>00227 {
<a name="l00228"></a>00228     hideTimer-&gt;<a class="codeRef" href="qtimer.html#stop">stop</a>();
<a name="l00229"></a>00229     <span class="keywordflow">if</span> ( m_autoDelete )
<a name="l00230"></a>00230         deleteLater();
<a name="l00231"></a>00231 }
<a name="l00232"></a>00232 
<a name="l00233"></a><a class="code" href="classKPassivePopup.html#ad1906e1e21bf50daae74f53557aeb1b2">00233</a> <a class="codeRef" href="qrect.html">QRect</a> <a class="code" href="classKPassivePopup.html#ad1906e1e21bf50daae74f53557aeb1b2" title="If no relative window (eg taskbar button, system tray window) is available, use this rectangle (pass ...">KPassivePopup::defaultArea</a>()<span class="keyword"> const</span>
<a name="l00234"></a>00234 <span class="keyword"></span>{
<a name="l00235"></a>00235 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00236"></a>00236 <span class="preprocessor"></span>    NETRootInfo info( qt_xdisplay(),
<a name="l00237"></a>00237                       NET::NumberOfDesktops |
<a name="l00238"></a>00238                       NET::CurrentDesktop |
<a name="l00239"></a>00239                       NET::WorkArea,
<a name="l00240"></a>00240                       -1, <span class="keyword">false</span> );
<a name="l00241"></a>00241     info.activate();
<a name="l00242"></a>00242     <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html">NETRect</a> workArea = info.workArea( info.currentDesktop() );
<a name="l00243"></a>00243     <a class="codeRef" href="qrect.html">QRect</a> r;
<a name="l00244"></a>00244     r.<a class="codeRef" href="qrect.html#setRect">setRect</a>( workArea.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a2604a60ef01bb245df79ada826b1718d">pos</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f">x</a>, workArea.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a2604a60ef01bb245df79ada826b1718d">pos</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd">y</a>, 0, 0 ); <span class="comment">// top left</span>
<a name="l00245"></a>00245 <span class="preprocessor">#else</span>
<a name="l00246"></a>00246 <span class="preprocessor"></span>    <span class="comment">// FIX IT</span>
<a name="l00247"></a>00247     <a class="codeRef" href="qrect.html">QRect</a> r;
<a name="l00248"></a>00248     r.<a class="codeRef" href="qrect.html#setRect">setRect</a>( 100, 100, 200, 200 ); <span class="comment">// top left</span>
<a name="l00249"></a>00249 <span class="preprocessor">#endif</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span>    <span class="keywordflow">return</span> r;
<a name="l00251"></a>00251 }
<a name="l00252"></a>00252 
<a name="l00253"></a><a class="code" href="classKPassivePopup.html#a8763f6829327b32abee0ed0d79e0eb4c">00253</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#a8763f6829327b32abee0ed0d79e0eb4c" title="This method positions the popup.">KPassivePopup::positionSelf</a>()
<a name="l00254"></a>00254 {
<a name="l00255"></a>00255     <a class="codeRef" href="qrect.html">QRect</a> target;
<a name="l00256"></a>00256 
<a name="l00257"></a>00257 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span>    <span class="keywordflow">if</span> ( !window ) {
<a name="l00259"></a>00259         target = <a class="code" href="classKPassivePopup.html#ad1906e1e21bf50daae74f53557aeb1b2" title="If no relative window (eg taskbar button, system tray window) is available, use this rectangle (pass ...">defaultArea</a>();
<a name="l00260"></a>00260     }
<a name="l00261"></a>00261 
<a name="l00262"></a>00262     <span class="keywordflow">else</span> {
<a name="l00263"></a>00263         NETWinInfo ni( qt_xdisplay(), window, qt_xrootwin(),
<a name="l00264"></a>00264                        NET::WMIconGeometry | NET::WMKDESystemTrayWinFor );
<a name="l00265"></a>00265 
<a name="l00266"></a>00266         <span class="comment">// Figure out where to put the popup. Note that we must handle</span>
<a name="l00267"></a>00267         <span class="comment">// windows that skip the taskbar cleanly</span>
<a name="l00268"></a>00268         <span class="keywordflow">if</span> ( ni.kdeSystemTrayWinFor() ) {
<a name="l00269"></a>00269             <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html">NETRect</a> frame, win;
<a name="l00270"></a>00270             ni.kdeGeometry( frame, win );
<a name="l00271"></a>00271             target.<a class="codeRef" href="qrect.html#setRect">setRect</a>( win.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a2604a60ef01bb245df79ada826b1718d">pos</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f">x</a>, win.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a2604a60ef01bb245df79ada826b1718d">pos</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd">y</a>,
<a name="l00272"></a>00272                             win.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a97102c18e356965d829855c570bb45ca">size</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETSize.html#af2e6a5fcac88037fa745273e85c5e219">width</a>, win.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a97102c18e356965d829855c570bb45ca">size</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETSize.html#a0a6def5683983f7f3478192248ef2f8e">height</a> );
<a name="l00273"></a>00273         }
<a name="l00274"></a>00274         <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( ni.state() &amp; NET::SkipTaskbar ) {
<a name="l00275"></a>00275             target = <a class="code" href="classKPassivePopup.html#ad1906e1e21bf50daae74f53557aeb1b2" title="If no relative window (eg taskbar button, system tray window) is available, use this rectangle (pass ...">defaultArea</a>();
<a name="l00276"></a>00276         }
<a name="l00277"></a>00277         <span class="keywordflow">else</span> {
<a name="l00278"></a>00278             <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html">NETRect</a> r = ni.iconGeometry();
<a name="l00279"></a>00279             target.<a class="codeRef" href="qrect.html#setRect">setRect</a>( r.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a2604a60ef01bb245df79ada826b1718d">pos</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f">x</a>, r.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a2604a60ef01bb245df79ada826b1718d">pos</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd">y</a>, r.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a97102c18e356965d829855c570bb45ca">size</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETSize.html#af2e6a5fcac88037fa745273e85c5e219">width</a>, r.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a97102c18e356965d829855c570bb45ca">size</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETSize.html#a0a6def5683983f7f3478192248ef2f8e">height</a> );
<a name="l00280"></a>00280                 <span class="keywordflow">if</span> ( target.<a class="codeRef" href="qrect.html#isNull">isNull</a>() ) { <span class="comment">// bogus value, use the exact position</span>
<a name="l00281"></a>00281                     <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html">NETRect</a> dummy;
<a name="l00282"></a>00282                     ni.kdeGeometry( dummy, r );
<a name="l00283"></a>00283                     target.<a class="codeRef" href="qrect.html#setRect">setRect</a>( r.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a2604a60ef01bb245df79ada826b1718d">pos</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f">x</a>, r.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a2604a60ef01bb245df79ada826b1718d">pos</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd">y</a>, 
<a name="l00284"></a>00284                                     r.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a97102c18e356965d829855c570bb45ca">size</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETSize.html#af2e6a5fcac88037fa745273e85c5e219">width</a>, r.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETRect.html#a97102c18e356965d829855c570bb45ca">size</a>.<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/structNETSize.html#a0a6def5683983f7f3478192248ef2f8e">height</a>);
<a name="l00285"></a>00285                 }
<a name="l00286"></a>00286         }
<a name="l00287"></a>00287     }
<a name="l00288"></a>00288 <span class="preprocessor">#else</span>
<a name="l00289"></a>00289 <span class="preprocessor"></span>        target = <a class="code" href="classKPassivePopup.html#ad1906e1e21bf50daae74f53557aeb1b2" title="If no relative window (eg taskbar button, system tray window) is available, use this rectangle (pass ...">defaultArea</a>();
<a name="l00290"></a>00290 <span class="preprocessor">#endif</span>
<a name="l00291"></a>00291 <span class="preprocessor"></span>    <a class="code" href="classKPassivePopup.html#a17f3d9d4e829c5046621ebed73597507" title="Moves the popup to be adjacent to the icon of the specified rectangle.">moveNear</a>( target );
<a name="l00292"></a>00292 }
<a name="l00293"></a>00293 
<a name="l00294"></a><a class="code" href="classKPassivePopup.html#a17f3d9d4e829c5046621ebed73597507">00294</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#a17f3d9d4e829c5046621ebed73597507" title="Moves the popup to be adjacent to the icon of the specified rectangle.">KPassivePopup::moveNear</a>( <a class="codeRef" href="qrect.html">QRect</a> target )
<a name="l00295"></a>00295 {
<a name="l00296"></a>00296     <a class="codeRef" href="qpoint.html">QPoint</a> pos = target.<a class="codeRef" href="qrect.html#topLeft">topLeft</a>();
<a name="l00297"></a>00297     <span class="keywordtype">int</span> x = pos.<a class="codeRef" href="qpoint.html#x">x</a>();
<a name="l00298"></a>00298     <span class="keywordtype">int</span> y = pos.<a class="codeRef" href="qpoint.html#y">y</a>();
<a name="l00299"></a>00299     <span class="keywordtype">int</span> w = width();
<a name="l00300"></a>00300     <span class="keywordtype">int</span> h = height();
<a name="l00301"></a>00301 
<a name="l00302"></a>00302     <a class="codeRef" href="qrect.html">QRect</a> r = <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKGlobalSettings.html#a63f7c20327cdb7972e2aff9b765b8985">KGlobalSettings::desktopGeometry</a>(<a class="codeRef" href="qpoint.html">QPoint</a>(x+w/2,y+h/2));
<a name="l00303"></a>00303 
<a name="l00304"></a>00304     <span class="keywordflow">if</span>( d-&gt;popupStyle == <a class="code" href="classKPassivePopup.html#ab601e81f84f0eee5b22f11f9b35d3b10aec76a5c8b0350390bc042b0dd0d3b9e9" title="Information will appear in a comic-alike balloon.">Balloon</a> )
<a name="l00305"></a>00305     {
<a name="l00306"></a>00306         <span class="comment">// find a point to anchor to</span>
<a name="l00307"></a>00307         <span class="keywordflow">if</span>( x + w &gt; r.<a class="codeRef" href="qrect.html#width">width</a>() ){
<a name="l00308"></a>00308             x = x + target.<a class="codeRef" href="qrect.html#width">width</a>();
<a name="l00309"></a>00309         }
<a name="l00310"></a>00310 
<a name="l00311"></a>00311         <span class="keywordflow">if</span>( y + h &gt; r.<a class="codeRef" href="qrect.html#height">height</a>() ){
<a name="l00312"></a>00312             y = y + target.<a class="codeRef" href="qrect.html#height">height</a>();
<a name="l00313"></a>00313         }
<a name="l00314"></a>00314     } <span class="keywordflow">else</span>
<a name="l00315"></a>00315     {
<a name="l00316"></a>00316         <span class="keywordflow">if</span> ( x &lt; r.<a class="codeRef" href="qrect.html#center">center</a>().x() )
<a name="l00317"></a>00317             x = x + target.<a class="codeRef" href="qrect.html#width">width</a>();
<a name="l00318"></a>00318         <span class="keywordflow">else</span>
<a name="l00319"></a>00319             x = x - w;
<a name="l00320"></a>00320 
<a name="l00321"></a>00321         <span class="comment">// It&#39;s apparently trying to go off screen, so display it ALL at the bottom.</span>
<a name="l00322"></a>00322         <span class="keywordflow">if</span> ( (y + h) &gt; r.<a class="codeRef" href="qrect.html#bottom">bottom</a>() )
<a name="l00323"></a>00323             y = r.<a class="codeRef" href="qrect.html#bottom">bottom</a>() - h;
<a name="l00324"></a>00324 
<a name="l00325"></a>00325         <span class="keywordflow">if</span> ( (x + w) &gt; r.<a class="codeRef" href="qrect.html#right">right</a>() )
<a name="l00326"></a>00326             x = r.<a class="codeRef" href="qrect.html#right">right</a>() - w;
<a name="l00327"></a>00327     }
<a name="l00328"></a>00328     <span class="keywordflow">if</span> ( y &lt; r.<a class="codeRef" href="qrect.html#top">top</a>() )
<a name="l00329"></a>00329         y = r.<a class="codeRef" href="qrect.html#top">top</a>();
<a name="l00330"></a>00330 
<a name="l00331"></a>00331     <span class="keywordflow">if</span> ( x &lt; r.<a class="codeRef" href="qrect.html#left">left</a>() )
<a name="l00332"></a>00332         x = r.<a class="codeRef" href="qrect.html#left">left</a>();
<a name="l00333"></a>00333 
<a name="l00334"></a>00334     <span class="keywordflow">if</span>( d-&gt;popupStyle == <a class="code" href="classKPassivePopup.html#ab601e81f84f0eee5b22f11f9b35d3b10aec76a5c8b0350390bc042b0dd0d3b9e9" title="Information will appear in a comic-alike balloon.">Balloon</a> )
<a name="l00335"></a>00335         <a class="code" href="classKPassivePopup.html#a8ea02c62793b8929c4617982dae96a4c" title="Sets the anchor of this balloon.">setAnchor</a>( <a class="codeRef" href="qpoint.html">QPoint</a>( x, y ) );
<a name="l00336"></a>00336     <span class="keywordflow">else</span>
<a name="l00337"></a>00337         move( x, y );
<a name="l00338"></a>00338 }
<a name="l00339"></a>00339 
<a name="l00340"></a><a class="code" href="classKPassivePopup.html#a8ea02c62793b8929c4617982dae96a4c">00340</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#a8ea02c62793b8929c4617982dae96a4c" title="Sets the anchor of this balloon.">KPassivePopup::setAnchor</a>(<span class="keyword">const</span> <a class="codeRef" href="qpoint.html">QPoint</a> &amp;anchor)
<a name="l00341"></a>00341 {
<a name="l00342"></a>00342     d-&gt;anchor = anchor;
<a name="l00343"></a>00343     <a class="code" href="classKPassivePopup.html#aa11104e242974c965eec52b9ca3a54e7" title="Updates the transparency mask.">updateMask</a>();
<a name="l00344"></a>00344 }
<a name="l00345"></a>00345 
<a name="l00346"></a><a class="code" href="classKPassivePopup.html#a5d318eab218593dfcb83f5e129168cf6">00346</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#a5d318eab218593dfcb83f5e129168cf6" title="Overwrite to paint the border when PopupStyle == Balloon.">KPassivePopup::paintEvent</a>( <a class="codeRef" href="qpaintevent.html">QPaintEvent</a>* pe )
<a name="l00347"></a>00347 {
<a name="l00348"></a>00348     <span class="keywordflow">if</span>( d-&gt;popupStyle == <a class="code" href="classKPassivePopup.html#ab601e81f84f0eee5b22f11f9b35d3b10aec76a5c8b0350390bc042b0dd0d3b9e9" title="Information will appear in a comic-alike balloon.">Balloon</a> )
<a name="l00349"></a>00349     {
<a name="l00350"></a>00350         <a class="codeRef" href="qpainter.html">QPainter</a> p;
<a name="l00351"></a>00351         p.<a class="codeRef" href="qpainter.html#begin">begin</a>( <span class="keyword">this</span> );
<a name="l00352"></a>00352         p.<a class="codeRef" href="qpainter.html#drawPolygon">drawPolygon</a>( d-&gt;surround );
<a name="l00353"></a>00353     } <span class="keywordflow">else</span>
<a name="l00354"></a>00354         <a class="code" href="classKPassivePopup.html#a5d318eab218593dfcb83f5e129168cf6" title="Overwrite to paint the border when PopupStyle == Balloon.">QFrame::paintEvent</a>( pe );
<a name="l00355"></a>00355 }
<a name="l00356"></a>00356 
<a name="l00357"></a><a class="code" href="classKPassivePopup.html#aa11104e242974c965eec52b9ca3a54e7">00357</a> <span class="keywordtype">void</span> <a class="code" href="classKPassivePopup.html#aa11104e242974c965eec52b9ca3a54e7" title="Updates the transparency mask.">KPassivePopup::updateMask</a>()
<a name="l00358"></a>00358 {
<a name="l00359"></a>00359     <span class="comment">// get screen-geometry for screen our anchor is on</span>
<a name="l00360"></a>00360     <span class="comment">// (geometry can differ from screen to screen!</span>
<a name="l00361"></a>00361     <a class="codeRef" href="qrect.html">QRect</a> deskRect = <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKGlobalSettings.html#a63f7c20327cdb7972e2aff9b765b8985">KGlobalSettings::desktopGeometry</a>(d-&gt;anchor);
<a name="l00362"></a>00362 
<a name="l00363"></a>00363     <span class="keywordtype">int</span> xh = 70, xl = 40;
<a name="l00364"></a>00364     <span class="keywordflow">if</span>( width() &lt; 80 )
<a name="l00365"></a>00365         xh = xl = 40;
<a name="l00366"></a>00366     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( width() &lt; 110 )
<a name="l00367"></a>00367         xh = width() - 40;
<a name="l00368"></a>00368 
<a name="l00369"></a>00369     <span class="keywordtype">bool</span> bottom = (d-&gt;anchor.y() + height()) &gt; ((deskRect.<a class="codeRef" href="qrect.html#y">y</a>() + deskRect.<a class="codeRef" href="qrect.html#height">height</a>()-48));
<a name="l00370"></a>00370     <span class="keywordtype">bool</span> right = (d-&gt;anchor.x() + width()) &gt; ((deskRect.<a class="codeRef" href="qrect.html#x">x</a>() + deskRect.<a class="codeRef" href="qrect.html#width">width</a>()-48));
<a name="l00371"></a>00371 
<a name="l00372"></a>00372     <a class="codeRef" href="qpoint.html">QPoint</a> corners[4] = {
<a name="l00373"></a>00373         <a class="codeRef" href="qpoint.html">QPoint</a>( width() - 50, 10 ),
<a name="l00374"></a>00374         <a class="codeRef" href="qpoint.html">QPoint</a>( 10, 10 ),
<a name="l00375"></a>00375         <a class="codeRef" href="qpoint.html">QPoint</a>( 10, height() - 50 ),
<a name="l00376"></a>00376         <a class="codeRef" href="qpoint.html">QPoint</a>( width() - 50, height() - 50 )
<a name="l00377"></a>00377     };
<a name="l00378"></a>00378 
<a name="l00379"></a>00379     <a class="codeRef" href="qbitmap.html">QBitmap</a> mask( width(), height(), <span class="keyword">true</span> );
<a name="l00380"></a>00380     <a class="codeRef" href="qpainter.html">QPainter</a> p( &amp;mask );
<a name="l00381"></a>00381     <a class="codeRef" href="qbrush.html">QBrush</a> brush( Qt::white, Qt::SolidPattern );
<a name="l00382"></a>00382     p.<a class="codeRef" href="qpainter.html#setBrush">setBrush</a>( brush );
<a name="l00383"></a>00383 
<a name="l00384"></a>00384     <span class="keywordtype">int</span> i = 0, z = 0;
<a name="l00385"></a>00385     <span class="keywordflow">for</span> (; i &lt; 4; ++i) {
<a name="l00386"></a>00386         <a class="codeRef" href="qpointarray.html">QPointArray</a> corner;
<a name="l00387"></a>00387         corner.<a class="codeRef" href="qpointarray.html#makeArc">makeArc</a>(corners[i].x(), corners[i].y(), 40, 40, i * 16 * 90, 16 * 90);
<a name="l00388"></a>00388 
<a name="l00389"></a>00389         d-&gt;surround.resize( z + corner.count() );
<a name="l00390"></a>00390         <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> s = 0; s &lt; corner.count() - 1; s++) {
<a name="l00391"></a>00391             d-&gt;surround.setPoint( z++, corner[s] );
<a name="l00392"></a>00392         }
<a name="l00393"></a>00393         
<a name="l00394"></a>00394         <span class="keywordflow">if</span> (bottom &amp;&amp; i == 2) {
<a name="l00395"></a>00395             <span class="keywordflow">if</span> (right) {
<a name="l00396"></a>00396                 d-&gt;surround.resize( z + 3 );
<a name="l00397"></a>00397                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( width() - xh, height() - 11 ) );
<a name="l00398"></a>00398                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( width() - 20, height() ) );
<a name="l00399"></a>00399                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( width() - xl, height() - 11 ) );
<a name="l00400"></a>00400             } <span class="keywordflow">else</span> {
<a name="l00401"></a>00401                 d-&gt;surround.resize( z + 3 );
<a name="l00402"></a>00402                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( xl, height() - 11 ) );
<a name="l00403"></a>00403                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( 20, height() ) );
<a name="l00404"></a>00404                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( xh, height() - 11 ) );
<a name="l00405"></a>00405             }
<a name="l00406"></a>00406         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!bottom &amp;&amp; i == 0) {
<a name="l00407"></a>00407             <span class="keywordflow">if</span> (right) {
<a name="l00408"></a>00408                 d-&gt;surround.resize( z + 3 );
<a name="l00409"></a>00409                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( width() - xl, 10 ) );
<a name="l00410"></a>00410                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( width() - 20, 0 ) );
<a name="l00411"></a>00411                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( width() - xh, 10 ) );
<a name="l00412"></a>00412             } <span class="keywordflow">else</span> {
<a name="l00413"></a>00413                 d-&gt;surround.resize( z + 3 );
<a name="l00414"></a>00414                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( xh, 10 ) );
<a name="l00415"></a>00415                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( 20, 0 ) );
<a name="l00416"></a>00416                 d-&gt;surround.setPoint( z++, <a class="codeRef" href="qpoint.html">QPoint</a>( xl, 10 ) );
<a name="l00417"></a>00417             }
<a name="l00418"></a>00418         }
<a name="l00419"></a>00419     }
<a name="l00420"></a>00420 
<a name="l00421"></a>00421     d-&gt;surround.resize( z + 1 );
<a name="l00422"></a>00422     d-&gt;surround.setPoint( z, d-&gt;surround[0] );
<a name="l00423"></a>00423     p.<a class="codeRef" href="qpainter.html#drawPolygon">drawPolygon</a>( d-&gt;surround );
<a name="l00424"></a>00424     setMask(mask);
<a name="l00425"></a>00425 
<a name="l00426"></a>00426     move( right ? d-&gt;anchor.x() - width() + 20 : ( d-&gt;anchor.x() &lt; 11 ? 11 : d-&gt;anchor.x() - 20 ),
<a name="l00427"></a>00427           bottom ? d-&gt;anchor.y() - height() : ( d-&gt;anchor.y() &lt; 11 ? 11 : d-&gt;anchor.y() ) );
<a name="l00428"></a>00428 
<a name="l00429"></a>00429     update();
<a name="l00430"></a>00430 }
<a name="l00431"></a>00431 
<a name="l00432"></a>00432 <span class="comment">//</span>
<a name="l00433"></a>00433 <span class="comment">// Convenience Methods</span>
<a name="l00434"></a>00434 <span class="comment">//</span>
<a name="l00435"></a>00435 
<a name="l00436"></a><a class="code" href="classKPassivePopup.html#a42fde01f0f79c00f5d5d1e742fd205f0">00436</a> <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *<a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">KPassivePopup::message</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;caption, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text,
<a name="l00437"></a>00437                        <span class="keyword">const</span> <a class="codeRef" href="qpixmap.html">QPixmap</a> &amp;icon,
<a name="l00438"></a>00438                        <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> timeout )
<a name="l00439"></a>00439 {
<a name="l00440"></a>00440     <span class="keywordflow">return</span> <a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">message</a>( DEFAULT_POPUP_TYPE, caption, text, icon, parent, name, timeout );
<a name="l00441"></a>00441 }
<a name="l00442"></a>00442 
<a name="l00443"></a><a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f">00443</a> <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *<a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">KPassivePopup::message</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text, <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name )
<a name="l00444"></a>00444 {
<a name="l00445"></a>00445     <span class="keywordflow">return</span> <a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">message</a>( DEFAULT_POPUP_TYPE, QString::null, text, <a class="codeRef" href="qpixmap.html">QPixmap</a>(), parent, name );
<a name="l00446"></a>00446 }
<a name="l00447"></a>00447 
<a name="l00448"></a><a class="code" href="classKPassivePopup.html#ab98ee0412628693764cde0c7e7501524">00448</a> <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *<a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">KPassivePopup::message</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;caption, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text,
<a name="l00449"></a>00449                        <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name )
<a name="l00450"></a>00450 {
<a name="l00451"></a>00451     <span class="keywordflow">return</span> <a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">message</a>( DEFAULT_POPUP_TYPE, caption, text, <a class="codeRef" href="qpixmap.html">QPixmap</a>(), parent, name );
<a name="l00452"></a>00452 }
<a name="l00453"></a>00453 
<a name="l00454"></a><a class="code" href="classKPassivePopup.html#a711014e8d0740b0b47648a8f72fd0d1d">00454</a> <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *<a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">KPassivePopup::message</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;caption, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text,
<a name="l00455"></a>00455                        <span class="keyword">const</span> <a class="codeRef" href="qpixmap.html">QPixmap</a> &amp;icon, WId parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> timeout )
<a name="l00456"></a>00456 {
<a name="l00457"></a>00457     <span class="keywordflow">return</span> <a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">message</a>( DEFAULT_POPUP_TYPE, caption, text, icon, parent, name, timeout );
<a name="l00458"></a>00458 }
<a name="l00459"></a>00459 
<a name="l00460"></a><a class="code" href="classKPassivePopup.html#a55b492abf4c326f86cc54da690bf4b77">00460</a> <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *<a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">KPassivePopup::message</a>( <span class="keywordtype">int</span> popupStyle, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;caption, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text,
<a name="l00461"></a>00461                        <span class="keyword">const</span> <a class="codeRef" href="qpixmap.html">QPixmap</a> &amp;icon,
<a name="l00462"></a>00462                        <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> timeout )
<a name="l00463"></a>00463 {
<a name="l00464"></a>00464     <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *pop = <span class="keyword">new</span> <a class="code" href="classKPassivePopup.html#ab15ced94489745f22ca1b6ac3891c335" title="Creates a popup for the specified widget.">KPassivePopup</a>( popupStyle, parent, name );
<a name="l00465"></a>00465     pop-&gt;<a class="code" href="classKPassivePopup.html#a6e0685fff0e50e91a1051463b4d043aa" title="Enables / disables auto-deletion of this widget when the timeout occurs.">setAutoDelete</a>( <span class="keyword">true</span> );
<a name="l00466"></a>00466     pop-&gt;<a class="code" href="classKPassivePopup.html#ae6b4e592ed66952a358ed0dc3c9e3aaa" title="Sets the main view to be the specified widget (which must be a child of the popup).">setView</a>( caption, text, icon );
<a name="l00467"></a>00467     pop-&gt;hideDelay = <a class="code" href="classKPassivePopup.html#adcbbcef0b9dbdc77facc385b5a881b8f" title="Returns the delay before the popup is removed automatically.">timeout</a>;
<a name="l00468"></a>00468     pop-&gt;<a class="code" href="classKPassivePopup.html#ab99878c4327f28994804e71274d909f9" title="Reimplemented to reposition the popup.">show</a>();
<a name="l00469"></a>00469 
<a name="l00470"></a>00470     <span class="keywordflow">return</span> pop;
<a name="l00471"></a>00471 }
<a name="l00472"></a>00472 
<a name="l00473"></a><a class="code" href="classKPassivePopup.html#a3be3fe49b07415df750e268acd42bc4c">00473</a> <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *<a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">KPassivePopup::message</a>( <span class="keywordtype">int</span> popupStyle, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text, <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name )
<a name="l00474"></a>00474 {
<a name="l00475"></a>00475     <span class="keywordflow">return</span> <a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">message</a>( popupStyle, QString::null, text, <a class="codeRef" href="qpixmap.html">QPixmap</a>(), parent, name );
<a name="l00476"></a>00476 }
<a name="l00477"></a>00477 
<a name="l00478"></a><a class="code" href="classKPassivePopup.html#ae93a5efc7ef15e51dad33178e614d9de">00478</a> <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *<a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">KPassivePopup::message</a>( <span class="keywordtype">int</span> popupStyle, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;caption, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text,
<a name="l00479"></a>00479                        <a class="codeRef" href="qwidget.html">QWidget</a> *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name )
<a name="l00480"></a>00480 {
<a name="l00481"></a>00481     <span class="keywordflow">return</span> <a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">message</a>( popupStyle, caption, text, <a class="codeRef" href="qpixmap.html">QPixmap</a>(), parent, name );
<a name="l00482"></a>00482 }
<a name="l00483"></a>00483 
<a name="l00484"></a><a class="code" href="classKPassivePopup.html#ab1b90f9f75dbeb5d7f0062a8342d4bd3">00484</a> <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *<a class="code" href="classKPassivePopup.html#a789b17974efe36090afebc7ea5520f7f" title="Convenience method that displays popup with the specified message beside the icon of the specified wi...">KPassivePopup::message</a>( <span class="keywordtype">int</span> popupStyle, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;caption, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;text,
<a name="l00485"></a>00485                        <span class="keyword">const</span> <a class="codeRef" href="qpixmap.html">QPixmap</a> &amp;icon, WId parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> timeout )
<a name="l00486"></a>00486 {
<a name="l00487"></a>00487     <a class="code" href="classKPassivePopup.html" title="A dialog-like popup that displays messages without interupting the user.">KPassivePopup</a> *pop = <span class="keyword">new</span> <a class="code" href="classKPassivePopup.html#ab15ced94489745f22ca1b6ac3891c335" title="Creates a popup for the specified widget.">KPassivePopup</a>( popupStyle, parent, name );
<a name="l00488"></a>00488     pop-&gt;<a class="code" href="classKPassivePopup.html#a6e0685fff0e50e91a1051463b4d043aa" title="Enables / disables auto-deletion of this widget when the timeout occurs.">setAutoDelete</a>( <span class="keyword">true</span> );
<a name="l00489"></a>00489     pop-&gt;<a class="code" href="classKPassivePopup.html#ae6b4e592ed66952a358ed0dc3c9e3aaa" title="Sets the main view to be the specified widget (which must be a child of the popup).">setView</a>( caption, text, icon );
<a name="l00490"></a>00490     pop-&gt;hideDelay = <a class="code" href="classKPassivePopup.html#adcbbcef0b9dbdc77facc385b5a881b8f" title="Returns the delay before the popup is removed automatically.">timeout</a>;
<a name="l00491"></a>00491     pop-&gt;<a class="code" href="classKPassivePopup.html#ab99878c4327f28994804e71274d909f9" title="Reimplemented to reposition the popup.">show</a>();
<a name="l00492"></a>00492 
<a name="l00493"></a>00493     <span class="keywordflow">return</span> pop;
<a name="l00494"></a>00494 }
<a name="l00495"></a>00495 
<a name="l00496"></a>00496 <span class="comment">// Local Variables:</span>
<a name="l00497"></a>00497 <span class="comment">// c-basic-offset: 4</span>
<a name="l00498"></a>00498 <span class="comment">// End:</span>
</pre></div></div>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kdeui</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKAboutApplication.html">kaboutapplication</option>,  <option value="classKAboutContainer.html">kaboutcontainer</option>,  <option value="classKAboutContainerBase.html">kaboutcontainerbase</option>,  <option value="classKAboutContributor.html">kaboutcontributor</option>,  <option value="classKAboutDialog.html">kaboutdialog</option>,  <option value="classKAboutKDE.html">kaboutkde</option>,  <option value="classKAboutWidget.html">kaboutwidget</option>,  <option value="classKAccelGen_1_1Deref.html">kaccelgen::deref</option>,  <option value="classKAccelGen_1_1Deref__Key.html">kaccelgen::deref__key</option>,  <option value="classKAction.html">kaction</option>,  <option value="classKActionCollection.html">kactioncollection</option>,  <option value="classKActionMenu.html">kactionmenu</option>,  <option value="classKActionSelector.html">kactionselector</option>,  <option value="classKActiveLabel.html">kactivelabel</option>,  <option value="classKAnimWidget.html">kanimwidget</option>,  <option value="classKArrowButton.html">karrowbutton</option>,  <option value="classKAuthIcon.html">kauthicon</option>,  <option value="classKBugReport.html">kbugreport</option>,  <option value="classKButtonBox.html">kbuttonbox</option>,  <option value="classKCharSelect.html">kcharselect</option>,  <option value="classKCharSelectTable.html">kcharselecttable</option>,  <option value="classKCModule.html">kcmodule</option>,  <option value="classKColor.html">kcolor</option>,  <option value="classKColorButton.html">kcolorbutton</option>,  <option value="classKColorCells.html">kcolorcells</option>,  <option value="classKColorCombo.html">kcolorcombo</option>,  <option value="classKColorDialog.html">kcolordialog</option>,  <option value="classKColorDrag.html">kcolordrag</option>,  <option value="classKColorPatch.html">kcolorpatch</option>,  <option value="classKComboBox.html">kcombobox</option>,  <option value="classKCommand.html">kcommand</option>,  <option value="classKCommandHistory.html">kcommandhistory</option>,  <option value="classKCompletionBox.html">kcompletionbox</option>,  <option value="classKConfigDialog.html">kconfigdialog</option>,  <option value="classKContextMenuManager.html">kcontextmenumanager</option>,  <option value="classKCursor.html">kcursor</option>,  <option value="classKCursorPrivate.html">kcursorprivate</option>,  <option value="classKCursorPrivateAutoHideEventFilter.html">kcursorprivateautohideeventfilter</option>,  <option value="classKDateInternalMonthPicker.html">kdateinternalmonthpicker</option>,  <option value="classKDateInternalWeekSelector.html">kdateinternalweekselector</option>,  <option value="classKDateInternalYearSelector.html">kdateinternalyearselector</option>,  <option value="classKDatePicker.html">kdatepicker</option>,  <option value="classKDateTable.html">kdatetable</option>,  <option value="classKDateTimeWidget.html">kdatetimewidget</option>,  <option value="classKDateValidator.html">kdatevalidator</option>,  <option value="classKDateWidget.html">kdatewidget</option>,  <option value="classKDCOPActionProxy.html">kdcopactionproxy</option>,  <option value="classKDEPrivate_1_1ToolBarHandler.html">kdeprivate::toolbarhandler</option>,  <option value="classKDialog.html">kdialog</option>,  <option value="classKDialogBase.html">kdialogbase</option>,  <option value="classKDialogBaseButton.html">kdialogbasebutton</option>,  <option value="classKDialogBaseTile.html">kdialogbasetile</option>,  <option value="classKDictSpellingHighlighter.html">kdictspellinghighlighter</option>,  <option value="classKDockButton__Private.html">kdockbutton__private</option>,  <option value="classKDockMainWindow.html">kdockmainwindow</option>,  <option value="classKDockManager.html">kdockmanager</option>,  <option value="classKDockSplitter.html">kdocksplitter</option>,  <option value="classKDockTabGroup.html">kdocktabgroup</option>,  <option value="classKDockWidget.html">kdockwidget</option>,  <option value="classKDockWidgetAbstractHeader.html">kdockwidgetabstractheader</option>,  <option value="classKDockWidgetAbstractHeaderDrag.html">kdockwidgetabstractheaderdrag</option>,  <option value="classKDockWidgetHeader.html">kdockwidgetheader</option>,  <option value="classKDockWidgetHeaderDrag.html">kdockwidgetheaderdrag</option>,  <option value="classKDockWidgetPrivate.html">kdockwidgetprivate</option>,  <option value="classKDockWindow.html">kdockwindow</option>,  <option value="classKDoubleNumInput.html">kdoublenuminput</option>,  <option value="classKDoubleSpinBox.html">kdoublespinbox</option>,  <option value="classKDoubleValidator.html">kdoublevalidator</option>,  <option value="classKDualColorButton.html">kdualcolorbutton</option>,  <option value="classKEdit.html">kedit</option>,  <option value="classKEditListBox.html">keditlistbox</option>,  <option value="classKEditListBox_1_1CustomEditor.html">keditlistbox::customeditor</option>,  <option value="classKEditToolbar.html">kedittoolbar</option>,  <option value="classKEditToolbarWidget.html">kedittoolbarwidget</option>,  <option value="classKFloatValidator.html">kfloatvalidator</option>,  <option value="classKFontChooser.html">kfontchooser</option>,  <option value="classKFontCombo.html">kfontcombo</option>,  <option value="classKFontDialog.html">kfontdialog</option>,  <option value="classKFontRequester.html">kfontrequester</option>,  <option value="classKGradientSelector.html">kgradientselector</option>,  <option value="classKGuiItem.html">kguiitem</option>,  <option value="classKHelpMenu.html">khelpmenu</option>,  <option value="classKHistoryCombo.html">khistorycombo</option>,  <option value="classKHSSelector.html">khsselector</option>,  <option value="classKIconView.html">kiconview</option>,  <option value="classKIconViewItem.html">kiconviewitem</option>,  <option value="classKIconViewSearchLine.html">kiconviewsearchline</option>,  <option value="classKImageTrackLabel.html">kimagetracklabel</option>,  <option value="classKInputDialog.html">kinputdialog</option>,  <option value="classKIntNumInput.html">kintnuminput</option>,  <option value="classKIntSpinBox.html">kintspinbox</option>,  <option value="classKIntValidator.html">kintvalidator</option>,  <option value="classKJanusWidget.html">kjanuswidget</option>,  <option value="classKKeyButton.html">kkeybutton</option>,  <option value="classKKeyChooser.html">kkeychooser</option>,  <option value="classKKeyDialog.html">kkeydialog</option>,  <option value="classKLanguageButton.html">klanguagebutton</option>,  <option value="classKLed.html">kled</option>,  <option value="classKLineEdit.html">klineedit</option>,  <option value="classKLineEditDlg.html">klineeditdlg</option>,  <option value="classKListAction.html">klistaction</option>,  <option value="classKListBox.html">klistbox</option>,  <option value="classKListView.html">klistview</option>,  <option value="classKListViewItem.html">klistviewitem</option>,  <option value="classKListViewLineEdit.html">klistviewlineedit</option>,  <option value="classKListViewSearchLine.html">klistviewsearchline</option>,  <option value="classKListViewSearchLineWidget.html">klistviewsearchlinewidget</option>,  <option value="classKMacroCommand.html">kmacrocommand</option>,  <option value="classKMainWindow.html">kmainwindow</option>,  <option value="classKMainWindowInterface.html">kmainwindowinterface</option>,  <option value="classKMenuBar.html">kmenubar</option>,  <option value="classKMessageBox.html">kmessagebox</option>,  <option value="classKMimeTypeValidator.html">kmimetypevalidator</option>,  <option value="classKNamedCommand.html">knamedcommand</option>,  <option value="classKNumInput.html">knuminput</option>,  <option value="classKPaletteTable.html">kpalettetable</option>,  <option value="classKPanelApplet.html">kpanelapplet</option>,  <option value="classKPanelAppMenu.html">kpanelappmenu</option>,  <option value="classKPanelExtension.html">kpanelextension</option>,  <option value="classKPanelMenu.html">kpanelmenu</option>,  <option value="classKPassivePopup.html">kpassivepopup</option>,  <option value="classKPasswordDialog.html">kpassworddialog</option>,  <option value="classKPasswordEdit.html">kpasswordedit</option>,  <option value="classKPasteTextAction.html">kpastetextaction</option>,  <option value="classKPixmapIO.html">kpixmapio</option>,  <option value="classKPixmapRegionSelectorDialog.html">kpixmapregionselectordialog</option>,  <option value="classKPixmapRegionSelectorWidget.html">kpixmapregionselectorwidget</option>,  <option value="classKPopupFrame.html">kpopupframe</option>,  <option value="classKPopupMenu.html">kpopupmenu</option>,  <option value="classKPopupTitle.html">kpopuptitle</option>,  <option value="classKProgress.html">kprogress</option>,  <option value="classKProgressDialog.html">kprogressdialog</option>,  <option value="classKPushButton.html">kpushbutton</option>,  <option value="classKRadioAction.html">kradioaction</option>,  <option value="classKRecentFilesAction.html">krecentfilesaction</option>,  <option value="classKRestrictedLine.html">krestrictedline</option>,  <option value="classKRootPermsIcon.html">krootpermsicon</option>,  <option value="classKRootPixmap.html">krootpixmap</option>,  <option value="classKRuler.html">kruler</option>,  <option value="classKScrollView.html">kscrollview</option>,  <option value="classKSelectAction.html">kselectaction</option>,  <option value="classKSelector.html">kselector</option>,  <option value="classKSeparator.html">kseparator</option>,  <option value="classKShortcutDialog.html">kshortcutdialog</option>,  <option value="classKSpell.html">kspell</option>,  <option value="classKSpellConfig.html">kspellconfig</option>,  <option value="classKSplashScreen.html">ksplashscreen</option>,  <option value="classKSqueezedTextLabel.html">ksqueezedtextlabel</option>,  <option value="classKStatusBar.html">kstatusbar</option>,  <option value="classKStatusBarLabel.html">kstatusbarlabel</option>,  <option value="classKStdGuiItem.html">kstdguiitem</option>,  <option value="classKStringListValidator.html">kstringlistvalidator</option>,  <option value="classKSwitchLanguageDialog.html">kswitchlanguagedialog</option>,  <option value="classKSyntaxHighlighter.html">ksyntaxhighlighter</option>,  <option value="classKSystemTray.html">ksystemtray</option>,  <option value="classKTabBar.html">ktabbar</option>,  <option value="classKTabCtl.html">ktabctl</option>,  <option value="classKTabWidget.html">ktabwidget</option>,  <option value="classKTextBrowser.html">ktextbrowser</option>,  <option value="classKTextEdit.html">ktextedit</option>,  <option value="classKTimeWidget.html">ktimewidget</option>,  <option value="classKTimezoneWidget.html">ktimezonewidget</option>,  <option value="classKTipDatabase.html">ktipdatabase</option>,  <option value="classKTipDialog.html">ktipdialog</option>,  <option value="classKToggleAction.html">ktoggleaction</option>,  <option value="classKToggleFullScreenAction.html">ktogglefullscreenaction</option>,  <option value="classKToggleToolBarAction.html">ktoggletoolbaraction</option>,  <option value="classKToolBar.html">ktoolbar</option>,  <option value="classKToolBarButton.html">ktoolbarbutton</option>,  <option value="classKToolBarButtonList.html">ktoolbarbuttonlist</option>,  <option value="classKToolBarLabelAction.html">ktoolbarlabelaction</option>,  <option value="classKToolBarPopupAction.html">ktoolbarpopupaction</option>,  <option value="classKToolBarRadioGroup.html">ktoolbarradiogroup</option>,  <option value="classKURLLabel.html">kurllabel</option>,  <option value="classKValueSelector.html">kvalueselector</option>,  <option value="classKWidgetAction.html">kwidgetaction</option>,  <option value="classKWindowInfo.html">kwindowinfo</option>,  <option value="classKWizard.html">kwizard</option>,  <option value="classKWordWrap.html">kwordwrap</option>,  <option value="classKWritePermsIcon.html">kwritepermsicon</option>,  <option value="classKXMLGUIBuilder.html">kxmlguibuilder</option>,  <option value="classKXMLGUIClient.html">kxmlguiclient</option>,  <option value="classKXMLGUIFactory.html">kxmlguifactory</option>,  <option value="classKXYSelector.html">kxyselector</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>