File: summarywidgetbase.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 (145 lines) | stat: -rw-r--r-- 4,622 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './summarywidgetbase.ui'
**
** Created: Sat Jul 14 05:38:18 2001
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "summarywidgetbase.h"

#include <qlabel.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a SummaryWidgetBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
SummaryWidgetBase::SummaryWidgetBase( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "SummaryWidgetBase" );
    resize( 541, 331 ); 
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, sizePolicy().hasHeightForWidth() ) );
    setCaption( i18n( "SummaryWidget" ) );
    QWhatsThis::add(  this, i18n( "You cha edit a contact's phone numbers." ) );

    titlesLabel = new QLabel( this, "titlesLabel" );
    titlesLabel->setGeometry( QRect( 10, 5, 160, 320 ) ); 
    titlesLabel->setText( i18n( "" ) );
    titlesLabel->setAlignment( int( QLabel::AlignTop | QLabel::AlignRight ) );
    titlesLabel->setFrameShape( QLabel::NoFrame );
    titlesLabel->setFrameShadow( QLabel::Plain );
    QFont titlesLabel_font(  titlesLabel->font() );
    titlesLabel_font.setBold( TRUE );
    titlesLabel->setFont( titlesLabel_font ); 

    contentsLabel = new QLabel( this, "contentsLabel" );
    contentsLabel->setGeometry( QRect( 170, 5, 360, 320 ) ); 
    contentsLabel->setText( i18n( "" ) );
    contentsLabel->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) );
    contentsLabel->setFrameShape( QLabel::NoFrame );
    contentsLabel->setFrameShadow( QLabel::Plain );

    // signals and slots connections
}

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

/*  
 *  Main event handler. Reimplemented to handle application
 *  font changes
 */
bool SummaryWidgetBase::event( QEvent* ev )
{
    bool ret = QWidget::event( ev ); 
    if ( ev->type() == QEvent::ApplicationFontChange ) {
	QFont titlesLabel_font(  titlesLabel->font() );
	titlesLabel_font.setBold( TRUE );
	titlesLabel->setFont( titlesLabel_font ); 
    }
    return ret;
}

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

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

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

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

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

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

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

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

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

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

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

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

void SummaryWidgetBase::showEmails()
{
    qWarning( "SummaryWidgetBase::showEmails(): Not implemented yet!" );
}

void SummaryWidgetBase::showHomePhones()
{
    qWarning( "SummaryWidgetBase::showHomePhones(): Not implemented yet!" );
}

#include "summarywidgetbase.moc"