~ubuntu-branches/ubuntu/wily/tora/wily-proposed

« back to all changes in this revision

Viewing changes to totuningsettingui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Albin Tonnerre
  • Date: 2007-05-29 13:13:36 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529131336-85ygaddivvmkd3xc
Tags: 1.3.21pre22-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules: call dh_iconcache
  - Remove g++ build dependency
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
** Form implementation generated from reading ui file 'totuningsettingui.ui'
3
 
**
4
 
** Created: Mon Feb 20 12:46:42 2006
5
 
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
6
 
**
7
 
** WARNING! All changes made in this file will be lost!
8
 
****************************************************************************/
9
 
 
10
 
#include "totuningsettingui.h"
11
 
 
12
 
#include <qvariant.h>
13
 
#include <qpushbutton.h>
14
 
#include <qgroupbox.h>
15
 
#include <qheader.h>
16
 
#include <qlistview.h>
17
 
#include <qlabel.h>
18
 
#include <qlayout.h>
19
 
#include <qtooltip.h>
20
 
#include <qwhatsthis.h>
21
 
 
22
 
/*
23
 
 *  Constructs a toTuningSettingUI as a child of 'parent', with the
24
 
 *  name 'name' and widget flags set to 'f'.
25
 
 */
26
 
toTuningSettingUI::toTuningSettingUI( QWidget* parent, const char* name, WFlags fl )
27
 
    : QWidget( parent, name, fl )
28
 
{
29
 
    if ( !name )
30
 
        setName( "toTuningSettingUI" );
31
 
    toTuningSettingUILayout = new QGridLayout( this, 1, 1, 0, 6, "toTuningSettingUILayout"); 
32
 
 
33
 
    ServerTuning = new QGroupBox( this, "ServerTuning" );
34
 
    ServerTuning->setColumnLayout(0, Qt::Vertical );
35
 
    ServerTuning->layout()->setSpacing( 6 );
36
 
    ServerTuning->layout()->setMargin( 11 );
37
 
    ServerTuningLayout = new QGridLayout( ServerTuning->layout() );
38
 
    ServerTuningLayout->setAlignment( Qt::AlignTop );
39
 
 
40
 
    EnabledTabs = new QListView( ServerTuning, "EnabledTabs" );
41
 
    EnabledTabs->addColumn( tr( "Available tabs" ) );
42
 
    EnabledTabs->setSelectionMode( QListView::Multi );
43
 
 
44
 
    ServerTuningLayout->addWidget( EnabledTabs, 1, 0 );
45
 
 
46
 
    TextLabel1 = new QLabel( ServerTuning, "TextLabel1" );
47
 
 
48
 
    ServerTuningLayout->addWidget( TextLabel1, 0, 0 );
49
 
 
50
 
    toTuningSettingUILayout->addWidget( ServerTuning, 0, 0 );
51
 
    languageChange();
52
 
    resize( QSize(588, 480).expandedTo(minimumSizeHint()) );
53
 
    clearWState( WState_Polished );
54
 
 
55
 
    // buddies
56
 
    TextLabel1->setBuddy( EnabledTabs );
57
 
}
58
 
 
59
 
/*
60
 
 *  Destroys the object and frees any allocated resources
61
 
 */
62
 
toTuningSettingUI::~toTuningSettingUI()
63
 
{
64
 
    // no need to delete child widgets, Qt does it all for us
65
 
}
66
 
 
67
 
/*
68
 
 *  Sets the strings of the subwidgets using the current
69
 
 *  language.
70
 
 */
71
 
void toTuningSettingUI::languageChange()
72
 
{
73
 
    setCaption( tr( "Form1" ) );
74
 
    ServerTuning->setTitle( tr( "Server tuning" ) );
75
 
    EnabledTabs->header()->setLabel( 0, tr( "Available tabs" ) );
76
 
    TextLabel1->setText( tr( "&Enabled background views" ) );
77
 
    QToolTip::add( TextLabel1, tr( "Select which views collect data in the background that should be run." ) );
78
 
}
79