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 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
|
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './personalwidgetbase.ui'
**
** Created: Sat Jul 14 05:38:11 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "personalwidgetbase.h"
#include <qcombobox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a PersonalWidgetBase which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
PersonalWidgetBase::PersonalWidgetBase( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
if ( !name )
setName( "PersonalWidgetBase" );
resize( 540, 330 );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, sizePolicy().hasHeightForWidth() ) );
setCaption( i18n( "PersonalWidget" ) );
QFont f( font() );
f.setPointSize( 10 );
setFont( f );
QWhatsThis::add( this, i18n( "You cha edit a contact's phone numbers." ) );
initialEdit = new QLineEdit( this, "initialEdit" );
initialEdit->setGeometry( QRect( 512, 40, 19, 22 ) );
TextLabel5 = new QLabel( this, "TextLabel5" );
TextLabel5->setGeometry( QRect( 9, 70, 30, 20 ) );
TextLabel5->setText( i18n( "Nick:" ) );
TextLabel2 = new QLabel( this, "TextLabel2" );
TextLabel2->setGeometry( QRect( 9, 40, 30, 20 ) );
TextLabel2->setText( i18n( "Prefix:" ) );
TextLabel1 = new QLabel( this, "TextLabel1" );
TextLabel1->setGeometry( QRect( 9, 10, 30, 20 ) );
TextLabel1->setFrameShadow( QLabel::MShadow );
TextLabel1->setFrameShape( QLabel::NoFrame );
TextLabel1->setText( i18n( "Card:" ) );
TextLabel6 = new QLabel( this, "TextLabel6" );
TextLabel6->setGeometry( QRect( 10, 100, 40, 25 ) );
TextLabel6->setText( i18n( "Phone:" ) );
TextLabel7 = new QLabel( this, "TextLabel7" );
TextLabel7->setGeometry( QRect( 10, 130, 40, 25 ) );
TextLabel7->setText( i18n( "Email:" ) );
poboxEdit = new QLineEdit( this, "poboxEdit" );
poboxEdit->setGeometry( QRect( 80, 195, 80, 22 ) );
streetEdit = new QLineEdit( this, "streetEdit" );
streetEdit->setGeometry( QRect( 230, 195, 300, 22 ) );
detailsEdit = new QLineEdit( this, "detailsEdit" );
detailsEdit->setGeometry( QRect( 80, 225, 450, 22 ) );
TextLabel8 = new QLabel( this, "TextLabel8" );
TextLabel8->setGeometry( QRect( 10, 165, 100, 20 ) );
TextLabel8->setText( i18n( "Home address:" ) );
TextLabel7_2_2_2 = new QLabel( this, "TextLabel7_2_2_2" );
TextLabel7_2_2_2->setGeometry( QRect( 20, 225, 50, 20 ) );
TextLabel7_2_2_2->setText( i18n( "Details:" ) );
TextLabel7_2_2 = new QLabel( this, "TextLabel7_2_2" );
TextLabel7_2_2->setGeometry( QRect( 160, 195, 70, 20 ) );
TextLabel7_2_2->setText( i18n( "Street name:" ) );
TextLabel7_2_2->setAlignment( int( QLabel::AlignCenter ) );
codeEdit = new QLineEdit( this, "codeEdit" );
codeEdit->setGeometry( QRect( 80, 255, 80, 22 ) );
TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
TextLabel1_2->setGeometry( QRect( 20, 255, 40, 21 ) );
TextLabel1_2->setText( i18n( "Code:" ) );
TextLabel1_2_2_3 = new QLabel( this, "TextLabel1_2_2_3" );
TextLabel1_2_2_3->setGeometry( QRect( 10, 295, 30, 21 ) );
TextLabel1_2_2_3->setText( i18n( "URL:" ) );
cityEdit = new QLineEdit( this, "cityEdit" );
cityEdit->setGeometry( QRect( 190, 255, 130, 22 ) );
TextLabel1_2_2_2 = new QLabel( this, "TextLabel1_2_2_2" );
TextLabel1_2_2_2->setGeometry( QRect( 320, 255, 50, 21 ) );
TextLabel1_2_2_2->setText( i18n( "Country:" ) );
TextLabel1_2_2_2->setAlignment( int( QLabel::AlignCenter ) );
TextLabel1_2_2 = new QLabel( this, "TextLabel1_2_2" );
TextLabel1_2_2->setGeometry( QRect( 160, 255, 30, 21 ) );
TextLabel1_2_2->setText( i18n( "City:" ) );
TextLabel1_2_2->setAlignment( int( QLabel::AlignCenter ) );
TextLabel7_2 = new QLabel( this, "TextLabel7_2" );
TextLabel7_2->setGeometry( QRect( 20, 195, 60, 20 ) );
TextLabel7_2->setText( i18n( "PO-BOX:" ) );
clearUrlButton = new QPushButton( this, "clearUrlButton" );
clearUrlButton->setGeometry( QRect( 445, 290, 81, 30 ) );
clearUrlButton->setText( i18n( "Clear entry" ) );
cardCombo = new QComboBox( FALSE, this, "cardCombo" );
cardCombo->insertItem( i18n( "Prefix Name Surname" ) );
cardCombo->insertItem( i18n( "Prefix Surname, Name" ) );
cardCombo->insertItem( i18n( "Surname, Name Initial" ) );
cardCombo->setGeometry( QRect( 65, 10, 190, 21 ) );
cardCombo->setEditable( TRUE );
cardCombo->setCurrentItem( 0 );
prefixCombo = new QComboBox( FALSE, this, "prefixCombo" );
prefixCombo->insertItem( i18n( "Mr" ) );
prefixCombo->insertItem( i18n( "Mrs" ) );
prefixCombo->insertItem( i18n( "Miss" ) );
prefixCombo->insertItem( i18n( "Ms" ) );
prefixCombo->insertItem( i18n( "Dr" ) );
prefixCombo->insertItem( i18n( "M.Sc." ) );
prefixCombo->insertItem( i18n( "PhD" ) );
prefixCombo->insertItem( i18n( "Sir" ) );
prefixCombo->insertItem( i18n( "Lady" ) );
prefixCombo->setGeometry( QRect( 65, 40, 60, 21 ) );
prefixCombo->setEditable( TRUE );
prefixCombo->setCurrentItem( 0 );
nameEdit = new QLineEdit( this, "nameEdit" );
nameEdit->setGeometry( QRect( 375, 40, 130, 22 ) );
familyEdit = new QLineEdit( this, "familyEdit" );
familyEdit->setGeometry( QRect( 195, 40, 140, 22 ) );
nickEdit = new QLineEdit( this, "nickEdit" );
nickEdit->setGeometry( QRect( 64, 70, 465, 22 ) );
urlBox = new QComboBox( FALSE, this, "urlBox" );
urlBox->setGeometry( QRect( 65, 295, 370, 21 ) );
urlBox->setEditable( TRUE );
urlBox->setDuplicatesEnabled( FALSE );
urlBox->setAutoCompletion( TRUE );
countryBox = new QComboBox( FALSE, this, "countryBox" );
countryBox->setGeometry( QRect( 370, 255, 160, 21 ) );
countryBox->setDuplicatesEnabled( FALSE );
countryBox->setEditable( TRUE );
TextLabel4 = new QLabel( this, "TextLabel4" );
TextLabel4->setGeometry( QRect( 125, 40, 70, 20 ) );
TextLabel4->setText( i18n( "Family name:" ) );
TextLabel4->setAlignment( int( QLabel::AlignCenter ) );
TextLabel3 = new QLabel( this, "TextLabel3" );
TextLabel3->setGeometry( QRect( 335, 40, 40, 20 ) );
TextLabel3->setText( i18n( "Name:" ) );
TextLabel3->setAlignment( int( QLabel::AlignCenter ) );
homePhoneButton = new QPushButton( this, "homePhoneButton" );
homePhoneButton->setGeometry( QRect( 65, 100, 190, 25 ) );
homePhoneButton->setText( i18n( "No phones" ) );
emailsButton = new QPushButton( this, "emailsButton" );
emailsButton->setGeometry( QRect( 65, 130, 190, 25 ) );
emailsButton->setText( i18n( "No e-mails" ) );
// signals and slots connections
connect( homePhoneButton, SIGNAL( clicked() ), this, SLOT( showHomePhones() ) );
connect( emailsButton, SIGNAL( clicked() ), this, SLOT( showEmails() ) );
connect( clearUrlButton, SIGNAL( clicked() ), this, SLOT( clearUrl() ) );
connect( cardCombo, SIGNAL( activated(const QString&) ), this, SLOT( cardChanged(const QString &) ) );
connect( cardCombo, SIGNAL( textChanged(const QString&) ), this, SLOT( cardChanged(const QString &) ) );
connect( prefixCombo, SIGNAL( textChanged(const QString&) ), this, SLOT( prefixChanged(const QString &) ) );
connect( prefixCombo, SIGNAL( activated(const QString&) ), this, SLOT( prefixChanged(const QString &) ) );
connect( familyEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( familyChanged(const QString &) ) );
connect( nameEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( nameChanged(const QString &) ) );
connect( nickEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( nickChanged(const QString &) ) );
connect( poboxEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( adrPoBoxChanged(const QString &) ) );
connect( streetEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( adrStreetChanged(const QString &) ) );
connect( detailsEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( adrDetailsChanged(const QString &) ) );
connect( codeEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( adrCodeChanged(const QString &) ) );
connect( cityEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( adrCityChanged(const QString &) ) );
connect( initialEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( initialChanged(const QString &) ) );
connect( countryBox, SIGNAL( textChanged(const QString&) ), this, SLOT( adrCountryChanged(const QString &) ) );
connect( countryBox, SIGNAL( activated(const QString&) ), this, SLOT( adrCountryChanged(const QString &) ) );
connect( urlBox, SIGNAL( textChanged(const QString&) ), this, SLOT( urlChanged(const QString &) ) );
connect( urlBox, SIGNAL( activated(const QString&) ), this, SLOT( urlChanged(const QString &) ) );
// tab order
setTabOrder( cardCombo, prefixCombo );
setTabOrder( prefixCombo, familyEdit );
setTabOrder( familyEdit, nameEdit );
setTabOrder( nameEdit, initialEdit );
setTabOrder( initialEdit, nickEdit );
setTabOrder( nickEdit, homePhoneButton );
setTabOrder( homePhoneButton, emailsButton );
setTabOrder( emailsButton, poboxEdit );
setTabOrder( poboxEdit, streetEdit );
setTabOrder( streetEdit, detailsEdit );
setTabOrder( detailsEdit, codeEdit );
setTabOrder( codeEdit, cityEdit );
setTabOrder( cityEdit, countryBox );
setTabOrder( countryBox, urlBox );
setTabOrder( urlBox, clearUrlButton );
}
/*
* Destroys the object and frees any allocated resources
*/
PersonalWidgetBase::~PersonalWidgetBase()
{
// no need to delete child widgets, Qt does it all for us
}
void PersonalWidgetBase::adrCityChanged(const QString &)
{
qWarning( "PersonalWidgetBase::adrCityChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::adrCodeChanged(const QString &)
{
qWarning( "PersonalWidgetBase::adrCodeChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::adrCountryChanged(const QString &)
{
qWarning( "PersonalWidgetBase::adrCountryChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::adrDetailsChanged(const QString &)
{
qWarning( "PersonalWidgetBase::adrDetailsChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::adrPoBoxChanged(const QString &)
{
qWarning( "PersonalWidgetBase::adrPoBoxChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::adrStreetChanged(const QString &)
{
qWarning( "PersonalWidgetBase::adrStreetChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::cardChanged(const QString &)
{
qWarning( "PersonalWidgetBase::cardChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::familyChanged(const QString &)
{
qWarning( "PersonalWidgetBase::familyChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::initialChanged(const QString &)
{
qWarning( "PersonalWidgetBase::initialChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::nameChanged(const QString &)
{
qWarning( "PersonalWidgetBase::nameChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::clearUrl()
{
qWarning( "PersonalWidgetBase::clearUrl(): Not implemented yet!" );
}
void PersonalWidgetBase::nickChanged(const QString &)
{
qWarning( "PersonalWidgetBase::nickChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::prefixChanged(const QString &)
{
qWarning( "PersonalWidgetBase::prefixChanged(const QString &): Not implemented yet!" );
}
void PersonalWidgetBase::showEmails()
{
qWarning( "PersonalWidgetBase::showEmails(): Not implemented yet!" );
}
void PersonalWidgetBase::showHomePhones()
{
qWarning( "PersonalWidgetBase::showHomePhones(): Not implemented yet!" );
}
void PersonalWidgetBase::urlChanged(const QString &)
{
qWarning( "PersonalWidgetBase::urlChanged(const QString &): Not implemented yet!" );
}
#include "personalwidgetbase.moc"
|