Updated documentation
[mdictionary] / doc / html / TranslationWidget_8h_source.html
index e6e7409..28a7698 100644 (file)
@@ -40,7 +40,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
       <li><a href="files.html"><span>File&nbsp;List</span></a></li>
     </ul>
   </div>
-<h1>TranslationWidget.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*******************************************************************************</span>
+<h1>TranslationWidget.h</h1><a href="TranslationWidget_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*******************************************************************************</span>
 <a name="l00002"></a>00002 <span class="comment"></span>
 <a name="l00003"></a>00003 <span class="comment">    This file is part of mDictionary.</span>
 <a name="l00004"></a>00004 <span class="comment"></span>
@@ -60,48 +60,51 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
 <a name="l00018"></a>00018 <span class="comment">    Copyright 2010 Comarch S.A.</span>
 <a name="l00019"></a>00019 <span class="comment"></span>
 <a name="l00020"></a>00020 <span class="comment">*******************************************************************************/</span>
-<a name="l00021"></a>00021 
-<a name="l00022"></a>00022 <span class="comment">//Created by Mateusz Półrola</span>
-<a name="l00023"></a>00023 
-<a name="l00024"></a>00024 <span class="preprocessor">#ifndef TRANSLATIONWIDGET_H</span>
-<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define TRANSLATIONWIDGET_H</span>
-<a name="l00026"></a>00026 <span class="preprocessor"></span>
-<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;QWidget&gt;</span>
-<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;QModelIndex&gt;</span>
-<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;QtGui&gt;</span>
-<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;../backbone/backbone.h&quot;</span>
-<a name="l00031"></a>00031 
+<a name="l00024"></a>00024 
+<a name="l00025"></a>00025 <span class="preprocessor">#ifndef TRANSLATIONWIDGET_H</span>
+<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define TRANSLATIONWIDGET_H</span>
+<a name="l00027"></a>00027 <span class="preprocessor"></span>
+<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;QWidget&gt;</span>
+<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;QModelIndex&gt;</span>
+<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;QtGui&gt;</span>
+<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;../backbone/backbone.h&quot;</span>
+<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="TranslationWidgetAutoResizer_8h.html" title="Implements translation widget auto resizer.">TranslationWidgetAutoResizer.h</a>&quot;</span>
 <a name="l00033"></a>00033 
-<a name="l00036"></a><a class="code" href="classTranslationWidget.html">00036</a> <span class="keyword">class </span><a class="code" href="classTranslationWidget.html" title="Displays translation of word found in dictionaries.">TranslationWidget</a> : <span class="keyword">public</span> QTextEdit {
-<a name="l00037"></a>00037     Q_OBJECT
-<a name="l00038"></a>00038 <span class="keyword">public</span>:
-<a name="l00039"></a>00039     <span class="keyword">explicit</span> <a class="code" href="classTranslationWidget.html" title="Displays translation of word found in dictionaries.">TranslationWidget</a>(<a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a>* backbone, QWidget *parent = 0);
-<a name="l00040"></a>00040 
-<a name="l00041"></a>00041 Q_SIGNALS:
+<a name="l00035"></a>00035 
+<a name="l00038"></a><a class="code" href="classTranslationWidget.html">00038</a> <span class="keyword">class </span><a class="code" href="classTranslationWidget.html" title="Displays translation of word found in dictionaries.">TranslationWidget</a> : <span class="keyword">public</span> QScrollArea {
+<a name="l00039"></a>00039     Q_OBJECT
+<a name="l00040"></a>00040 <span class="keyword">public</span>:
+<a name="l00041"></a>00041     <span class="keyword">explicit</span> <a class="code" href="classTranslationWidget.html" title="Displays translation of word found in dictionaries.">TranslationWidget</a>(QWidget *parent = 0);
 <a name="l00042"></a>00042 
-<a name="l00043"></a>00043 <span class="keyword">public</span> Q_SLOTS:
-<a name="l00045"></a>00045     <span class="keywordtype">void</span> <a class="code" href="classTranslationWidget.html#a5ed0deabea08c70debf0248734a5d88d" title="Request to show translation of word passed as QModelIndex from word list.">show</a>(QModelIndex);
-<a name="l00046"></a>00046 
-<a name="l00047"></a>00047 <span class="keyword">private</span> Q_SLOTS:
-<a name="l00048"></a>00048     <span class="keywordtype">void</span> showContextMenu(QPoint pos);
+<a name="l00043"></a>00043 Q_SIGNALS:
+<a name="l00044"></a>00044     <span class="keywordtype">void</span> updateSize();
+<a name="l00045"></a>00045 
+<a name="l00046"></a>00046 <span class="keyword">public</span> Q_SLOTS:
+<a name="l00048"></a>00048     <span class="keywordtype">void</span> <a class="code" href="classTranslationWidget.html#af7008c736828dd5575b80fca53db2565" title="Show widget.">show</a>();
 <a name="l00049"></a>00049 
-<a name="l00050"></a>00050 <span class="keyword">private</span>:
-<a name="l00051"></a>00051     <a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a> *backbone;
-<a name="l00052"></a>00052     QMenu *contextMenu;
+<a name="l00051"></a>00051     <span class="keywordtype">void</span> <a class="code" href="classTranslationWidget.html#af7008c736828dd5575b80fca53db2565" title="Show widget.">show</a>(QStringList);
+<a name="l00052"></a>00052 
 <a name="l00053"></a>00053 
-<a name="l00054"></a>00054 
-<a name="l00055"></a>00055     <span class="keywordtype">void</span> initializeUI();
-<a name="l00056"></a>00056 
-<a name="l00057"></a>00057 };
-<a name="l00058"></a>00058 
-<a name="l00059"></a>00059 <span class="preprocessor">#endif // TRANSLATIONWIDGET_H</span>
+<a name="l00054"></a>00054 <span class="keyword">private</span>:
+<a name="l00055"></a>00055     QTextEdit *textEdit;
+<a name="l00056"></a>00056     QToolButton* zoomInToolButton;
+<a name="l00057"></a>00057     QToolButton* zoomOutToolButton;
+<a name="l00058"></a>00058     QVBoxLayout *verticalLayout;
+<a name="l00059"></a>00059     QHBoxLayout* horizontalLayout;
+<a name="l00060"></a>00060     <a class="code" href="classTranslationWidgetAutoResizer.html">TranslationWidgetAutoResizer</a>* resizer;
+<a name="l00061"></a>00061 
+<a name="l00062"></a>00062     <span class="keywordtype">void</span> initializeUI();
+<a name="l00063"></a>00063 
+<a name="l00064"></a>00064 };
+<a name="l00065"></a>00065 
+<a name="l00066"></a>00066 <span class="preprocessor">#endif // TRANSLATIONWIDGET_H</span>
 </pre></div></div>
 <!--- window showing the filter options -->
 <div id="MSearchSelectWindow"
      onmouseover="return searchBox.OnSearchSelectShow()"
      onmouseout="return searchBox.OnSearchSelectHide()"
      onkeydown="return searchBox.OnSearchSelectKey(event)">
-<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Functions</a></div>
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a></div>
 
 <!-- iframe showing the search results (closed by default) -->
 <div id="MSearchResultsWindow">
@@ -110,7 +113,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
 </iframe>
 </div>
 
-<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Aug 6 11:51:04 2010 for mDictionary by&nbsp;
+<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Aug 12 14:34:59 2010 for mDictionary by&nbsp;
 <a href="http://www.doxygen.org/index.html">
 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
 </body>