<!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"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>AlbumShaper: translationsWidget.cpp Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <h1>translationsWidget.cpp</h1><a href="translationsWidget_8cpp.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">// copyright : (C) 2003-2004 by Will Stokes</span> <a name="l00003"></a>00003 <span class="comment">//==============================================</span> <a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it </span> <a name="l00005"></a>00005 <span class="comment">// and/or modify it under the terms of the GNU General </span> <a name="l00006"></a>00006 <span class="comment">// Public License as published by the Free Software </span> <a name="l00007"></a>00007 <span class="comment">// Foundation; either version 2 of the License, or </span> <a name="l00008"></a>00008 <span class="comment">// (at your option) any later version. </span> <a name="l00009"></a>00009 <span class="comment">//==============================================</span> <a name="l00010"></a>00010 <a name="l00011"></a>00011 <span class="comment">//Systemwide includes</span> <a name="l00012"></a>00012 <span class="preprocessor">#include <qlayout.h></span> <a name="l00013"></a>00013 <span class="preprocessor">#include <qlabel.h></span> <a name="l00014"></a>00014 <span class="preprocessor">#include <qfont.h></span> <a name="l00015"></a>00015 <a name="l00016"></a>00016 <span class="comment">//Projectwide includes</span> <a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="translationsWidget_8h.html">translationsWidget.h</a>"</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="comment">//==============================================</span> <a name="l00020"></a><a class="code" href="classTranslationsWidget.html#a435dca213022a163ee2e08527e392599">00020</a> <a class="code" href="classTranslationsWidget.html#a435dca213022a163ee2e08527e392599">TranslationsWidget::TranslationsWidget</a>( <a class="code" href="classQWidget.html">QWidget</a>* parent, <a name="l00021"></a>00021 <span class="keyword">const</span> <span class="keywordtype">char</span>* name ) : <a class="code" href="classQWidget.html">QWidget</a>( parent, name) <a name="l00022"></a>00022 { <a name="l00023"></a>00023 <a class="code" href="classTranslationsWidget.html#aab544db22f02c82405526fd030f00af4">categoryLabel</a> = <span class="keyword">new</span> <a class="code" href="classQLabel.html">QLabel</a>( tr(<span class="stringliteral">"Translation Settings"</span>), <span class="keyword">this</span>); <a name="l00024"></a>00024 QFont labelFont = <a class="code" href="classTranslationsWidget.html#aab544db22f02c82405526fd030f00af4">categoryLabel</a>->font(); <a name="l00025"></a>00025 labelFont.setWeight(QFont::Bold); <a name="l00026"></a>00026 <a class="code" href="classTranslationsWidget.html#aab544db22f02c82405526fd030f00af4">categoryLabel</a>->setFont( labelFont ); <a name="l00027"></a>00027 <a name="l00028"></a>00028 <a class="code" href="classTranslationsWidget.html#af61cb6204489217e92af5d1e44da9d89">horizontalLine</a> = <span class="keyword">new</span> <a class="code" href="classQFrame.html">QFrame</a>(<span class="keyword">this</span>); <a name="l00029"></a>00029 <a class="code" href="classTranslationsWidget.html#af61cb6204489217e92af5d1e44da9d89">horizontalLine</a>->setLineWidth(2); <a name="l00030"></a>00030 <a class="code" href="classTranslationsWidget.html#af61cb6204489217e92af5d1e44da9d89">horizontalLine</a>->setMidLineWidth(1); <a name="l00031"></a>00031 <a class="code" href="classTranslationsWidget.html#af61cb6204489217e92af5d1e44da9d89">horizontalLine</a>->setFrameStyle( QFrame::HLine | QFrame::Raised ); <a name="l00032"></a>00032 <a name="l00033"></a>00033 <a class="code" href="classTranslationsWidget.html#a5cdd71ebf03c856bfceadbd6a2275c2d">grid</a> = <span class="keyword">new</span> QGridLayout( <span class="keyword">this</span>, 7, 1, 0); <a name="l00034"></a>00034 <a class="code" href="classTranslationsWidget.html#a5cdd71ebf03c856bfceadbd6a2275c2d">grid</a>->addWidget( <a class="code" href="classTranslationsWidget.html#aab544db22f02c82405526fd030f00af4">categoryLabel</a>, 0, 0, Qt::AlignLeft ); <a name="l00035"></a>00035 <a class="code" href="classTranslationsWidget.html#a5cdd71ebf03c856bfceadbd6a2275c2d">grid</a>->setRowSpacing(1, 8); <a name="l00036"></a>00036 <a class="code" href="classTranslationsWidget.html#a5cdd71ebf03c856bfceadbd6a2275c2d">grid</a>->addWidget( <a class="code" href="classTranslationsWidget.html#af61cb6204489217e92af5d1e44da9d89">horizontalLine</a>, 2, 0 ); <a name="l00037"></a>00037 <a class="code" href="classTranslationsWidget.html#a5cdd71ebf03c856bfceadbd6a2275c2d">grid</a>->setRowSpacing(3, 8); <a name="l00038"></a>00038 <a class="code" href="classTranslationsWidget.html#a5cdd71ebf03c856bfceadbd6a2275c2d">grid</a>->setRowStretch( 6, 1 ); <a name="l00039"></a>00039 } <a name="l00040"></a>00040 <span class="comment">//==============================================</span> </pre></div></div> <hr size="1"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> </body> </html>