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
|
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './mailwidgetbase.ui'
**
** Created: Sat Jul 14 05:38:05 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "mailwidgetbase.h"
#include <qframe.h>
#include <qheader.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlistview.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
static const char* const image0_data[] = {
"16 16 1 1",
". c None",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................"};
static const char* const image1_data[] = {
"16 16 43 1",
". c None",
"I c #00cc00",
"E c #00f900",
"k c #00fe00",
"C c #07ff07",
"L c #118611",
"z c #11cd11",
"f c #11f411",
"n c #18ff18",
"H c #1fff1f",
"J c #219021",
"x c #21f221",
"c c #21fe21",
"u c #31b131",
"K c #45f845",
"w c #45ff45",
"t c #47ff47",
"D c #5eff5e",
"B c #65ff65",
"y c #89ff89",
"F c #8ac08a",
"o c #8acb8a",
"a c #8aff8a",
"q c #8eff8e",
"v c #99ff99",
"M c #aaccaa",
"l c #aadaaa",
"e c #b9ffb9",
"N c #bbf7bb",
"h c #bdffbd",
"j c #c0ffc0",
"O c #cfeacf",
"i c #cfebcf",
"g c #cfedcf",
"d c #cff4cf",
"r c #cffdcf",
"b c #cfffcf",
"G c #d7ffd7",
"m c #d9ffd9",
"A c #dfeddf",
"p c #e3ffe3",
"s c #edffed",
"# c #f3fff3",
"................",
"................",
"............#a..",
"...........bcd..",
"..........efg...",
".........hfi....",
"........jkl.....",
".......mno......",
"..pqr.stu.......",
"..vwx.yzA.......",
"...BCDEF........",
"...GHIJ.........",
"....KLM.........",
"....NO..........",
"................",
"................"};
/*
* Constructs a MailWidgetBase which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
MailWidgetBase::MailWidgetBase( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
QPixmap image0( ( const char** ) image0_data );
QPixmap image1( ( const char** ) image1_data );
if ( !name )
setName( "MailWidgetBase" );
resize( 391, 196 );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, sizePolicy().hasHeightForWidth() ) );
setCaption( i18n( "MailWidget" ) );
QFont f( font() );
f.setPointSize( 10 );
setFont( f );
QWhatsThis::add( this, i18n( "You cha edit a contact's phone numbers." ) );
Frame7 = new QFrame( this, "Frame7" );
Frame7->setGeometry( QRect( 0, 0, 391, 196 ) );
Frame7->setFrameShadow( QFrame::Raised );
Frame7->setFrameShape( QFrame::StyledPanel );
finishButton = new QPushButton( Frame7, "finishButton" );
finishButton->setGeometry( QRect( 270, 160, 111, 25 ) );
finishButton->setText( i18n( "&Finish" ) );
QWhatsThis::add( finishButton, i18n( "Click here to close this dialog" ) );
emptyLabel = new QLabel( Frame7, "emptyLabel" );
emptyLabel->setGeometry( QRect( 35, 45, 16, 16 ) );
emptyLabel->setPixmap( image0 );
emptyLabel->setScaledContents( TRUE );
defaultLabel = new QLabel( Frame7, "defaultLabel" );
defaultLabel->setGeometry( QRect( 15, 45, 16, 16 ) );
defaultLabel->setPixmap( image1 );
defaultLabel->setScaledContents( TRUE );
addButton = new QPushButton( Frame7, "addButton" );
addButton->setGeometry( QRect( 270, 40, 111, 25 ) );
addButton->setText( i18n( "&Add" ) );
QWhatsThis::add( addButton, i18n( "Click <i>here</i> to append the number to the list." ) );
removeButton = new QPushButton( Frame7, "removeButton" );
removeButton->setGeometry( QRect( 270, 100, 111, 25 ) );
removeButton->setText( i18n( "&Remove" ) );
QWhatsThis::add( removeButton, i18n( "This will remove the selected item from the list." ) );
replaceButton = new QPushButton( Frame7, "replaceButton" );
replaceButton->setGeometry( QRect( 270, 130, 111, 25 ) );
replaceButton->setText( i18n( "R&eplace" ) );
QWhatsThis::add( replaceButton, i18n( "Use this to replace the selected item in the list with the new edited number." ) );
defaultButton = new QPushButton( Frame7, "defaultButton" );
defaultButton->setGeometry( QRect( 270, 70, 111, 25 ) );
defaultButton->setText( i18n( "&Set default" ) );
QWhatsThis::add( defaultButton, i18n( "Click here to close this dialog" ) );
mailEdit = new QLineEdit( Frame7, "mailEdit" );
mailEdit->setGeometry( QRect( 10, 10, 370, 22 ) );
QWhatsThis::add( mailEdit, i18n( "Enter or edit the phone number and press <b>Add</b> to add it to the list or <b>Replace</b> to replace the selected number from the list" ) );
mailsList = new QListView( Frame7, "mailsList" );
mailsList->addColumn( i18n( "Mail" ) );
mailsList->setGeometry( QRect( 10, 40, 251, 145 ) );
mailsList->setResizePolicy( QListView::AutoOne );
mailsList->setHScrollBarMode( QListView::AlwaysOff );
// signals and slots connections
connect( addButton, SIGNAL( clicked() ), this, SLOT( addPressed() ) );
connect( removeButton, SIGNAL( clicked() ), this, SLOT( removePressed() ) );
connect( replaceButton, SIGNAL( clicked() ), this, SLOT( replacePressed() ) );
connect( finishButton, SIGNAL( clicked() ), this, SLOT( finishPressed() ) );
connect( mailsList, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( selectionChanged(QListViewItem *) ) );
connect( defaultButton, SIGNAL( clicked() ), this, SLOT( defaultPressed() ) );
connect( mailEdit, SIGNAL( returnPressed() ), this, SLOT( addPressed() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
MailWidgetBase::~MailWidgetBase()
{
// no need to delete child widgets, Qt does it all for us
}
void MailWidgetBase::addPressed()
{
qWarning( "MailWidgetBase::addPressed(): Not implemented yet!" );
}
void MailWidgetBase::finishPressed()
{
qWarning( "MailWidgetBase::finishPressed(): Not implemented yet!" );
}
void MailWidgetBase::removePressed()
{
qWarning( "MailWidgetBase::removePressed(): Not implemented yet!" );
}
void MailWidgetBase::replacePressed()
{
qWarning( "MailWidgetBase::replacePressed(): Not implemented yet!" );
}
void MailWidgetBase::selectionChanged(QListViewItem *)
{
qWarning( "MailWidgetBase::selectionChanged(QListViewItem *): Not implemented yet!" );
}
void MailWidgetBase::defaultPressed()
{
qWarning( "MailWidgetBase::defaultPressed(): Not implemented yet!" );
}
#include "mailwidgetbase.moc"
|