File: otherwidgetbase.cpp

package info (click to toggle)
aethera 0.9.3-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,588 kB
  • ctags: 7,282
  • sloc: cpp: 64,544; sh: 9,913; perl: 1,756; makefile: 1,680; python: 258
file content (118 lines) | stat: -rw-r--r-- 4,351 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './otherwidgetbase.ui'
**
** Created: Sat Jul 14 05:38:09 2001
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "otherwidgetbase.h"

#include <qcombobox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qmultilineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a OtherWidgetBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
OtherWidgetBase::OtherWidgetBase( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "OtherWidgetBase" );
    resize( 540, 330 ); 
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, sizePolicy().hasHeightForWidth() ) );
    setCaption( i18n( "OtherWidget" ) );
    QFont f( font() );
    f.setPointSize( 10 );
    setFont( f ); 
    QWhatsThis::add(  this, i18n( "" ) );

    TextLabel2 = new QLabel( this, "TextLabel2" );
    TextLabel2->setGeometry( QRect( 9, 40, 55, 20 ) ); 
    TextLabel2->setText( i18n( "Categories:" ) );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setGeometry( QRect( 9, 10, 55, 20 ) ); 
    TextLabel1->setText( i18n( "Birthday:" ) );

    TextLabel5 = new QLabel( this, "TextLabel5" );
    TextLabel5->setGeometry( QRect( 10, 70, 50, 20 ) ); 
    TextLabel5->setText( i18n( "Security:" ) );

    TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
    TextLabel1_2->setGeometry( QRect( 10, 100, 50, 21 ) ); 
    TextLabel1_2->setText( i18n( "Notes:" ) );

    categoriesButton = new QPushButton( this, "categoriesButton" );
    categoriesButton->setGeometry( QRect( 430, 35, 101, 30 ) ); 
    categoriesButton->setText( i18n( "&Edit categories" ) );

    categoriesEdit = new QLineEdit( this, "categoriesEdit" );
    categoriesEdit->setGeometry( QRect( 65, 40, 355, 22 ) ); 

    birthdayEdit = new QLineEdit( this, "birthdayEdit" );
    birthdayEdit->setGeometry( QRect( 65, 10, 115, 22 ) ); 

    securityBox = new QComboBox( FALSE, this, "securityBox" );
    securityBox->insertItem( i18n( "Confidential" ) );
    securityBox->insertItem( i18n( "Private" ) );
    securityBox->insertItem( i18n( "Public" ) );
    securityBox->setGeometry( QRect( 65, 70, 115, 21 ) ); 

    notesEdit = new QMultiLineEdit( this, "notesEdit" );
    notesEdit->setGeometry( QRect( 66, 100, 465, 220 ) ); 
    notesEdit->setText( i18n( "" ) );
    notesEdit->setAlignment( int( QMultiLineEdit::AlignLeft ) );

    // signals and slots connections
    connect( categoriesButton, SIGNAL( clicked() ), this, SLOT( editCategories() ) );
    connect( notesEdit, SIGNAL( textChanged() ), this, SLOT( notesChanged() ) );
    connect( securityBox, SIGNAL( textChanged(const QString&) ), this, SLOT( securityChanged(const QString &) ) );
    connect( securityBox, SIGNAL( activated(const QString&) ), this, SLOT( securityChanged(const QString &) ) );
    connect( categoriesEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( categoriesChanged(const QString &) ) );
    connect( birthdayEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( bdayChanged(const QString &) ) );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
OtherWidgetBase::~OtherWidgetBase()
{
    // no need to delete child widgets, Qt does it all for us
}

void OtherWidgetBase::bdayChanged(const QString &)
{
    qWarning( "OtherWidgetBase::bdayChanged(const QString &): Not implemented yet!" );
}

void OtherWidgetBase::categoriesChanged(const QString &)
{
    qWarning( "OtherWidgetBase::categoriesChanged(const QString &): Not implemented yet!" );
}

void OtherWidgetBase::editCategories()
{
    qWarning( "OtherWidgetBase::editCategories(): Not implemented yet!" );
}

void OtherWidgetBase::notesChanged()
{
    qWarning( "OtherWidgetBase::notesChanged(): Not implemented yet!" );
}

void OtherWidgetBase::securityChanged(const QString &)
{
    qWarning( "OtherWidgetBase::securityChanged(const QString &): Not implemented yet!" );
}

#include "otherwidgetbase.moc"