Qtopia library API Documentation

categoryeditbase_p.cpp

00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'categoryeditbase_p.ui'
00003 **
00004 ** Created: Sun Jan 11 13:35:18 2004
00005 **      by:  The User Interface Compiler (uic)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 #include "categoryeditbase_p.h"
00010 
00011 #include <qcheckbox.h>
00012 #include <qheader.h>
00013 #include <qlineedit.h>
00014 #include <qlistview.h>
00015 #include <qpushbutton.h>
00016 #include <qtoolbutton.h>
00017 #include <qlayout.h>
00018 #include <qvariant.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include <qimage.h>
00022 #include <qpixmap.h>
00023 
00024 static const char* const image0_data[] = { 
00025 "16 16 9 1",
00026 ". c None",
00027 "# c #000000",
00028 "g c #313031",
00029 "c c #5a595a",
00030 "f c #838183",
00031 "b c #a4a1a4",
00032 "e c #c5c2c5",
00033 "a c #dedede",
00034 "d c #ffffff",
00035 ".....##a#.......",
00036 "..###ab#c####...",
00037 ".#dddeeef#eeb#..",
00038 ".#abedddeeccc#..",
00039 "..#faabbbbff#...",
00040 "..#bbbffccfg#...",
00041 "..#bdbabffcg#...",
00042 "..#bdbabffcg#...",
00043 "..#bdbabffcg#...",
00044 "..#bdbabffcg#...",
00045 "..#bdbabffcg#...",
00046 "..#bdbabffcg#...",
00047 "..#bdbabffcg#...",
00048 "..#adbabffcg#...",
00049 "...##aabbf##....",
00050 ".....#####......"};
00051 
00052 
00053 /* 
00054  *  Constructs a CategoryEditBase which is a child of 'parent', with the 
00055  *  name 'name' and widget flags set to 'f' 
00056  */
00057 CategoryEditBase::CategoryEditBase( QWidget* parent,  const char* name, WFlags fl )
00058     : QWidget( parent, name, fl )
00059 {
00060     QPixmap image0( ( const char** ) image0_data );
00061     if ( !name )
00062     setName( "CategoryEditBase" );
00063     resize( 197, 287 ); 
00064     setCaption( tr( "Category Edit" ) );
00065     CategoryEditBaseLayout = new QVBoxLayout( this ); 
00066     CategoryEditBaseLayout->setSpacing( 3 );
00067     CategoryEditBaseLayout->setMargin( 3 );
00068 
00069     lvView = new QListView( this, "lvView" );
00070     lvView->addColumn( tr( "Categories" ) );
00071     lvView->addColumn( tr( "Application" ) );
00072     QListViewItem * item = new QListViewItem( lvView, 0 );
00073     item->setText( 0, tr( "Categories Go Here" ) );
00074 
00075     QWhatsThis::add(  lvView, tr( "Check the categories this document belongs to." ) );
00076     CategoryEditBaseLayout->addWidget( lvView );
00077 
00078     Layout2 = new QHBoxLayout; 
00079     Layout2->setSpacing( 6 );
00080     Layout2->setMargin( 0 );
00081 
00082     txtCat = new QLineEdit( this, "txtCat" );
00083     QWhatsThis::add(  txtCat, tr( "Enter a new category here.  Press <b>Add</b> to add it to the list." ) );
00084     Layout2->addWidget( txtCat );
00085 
00086     cmdAdd = new QToolButton( this, "cmdAdd" );
00087     cmdAdd->setFocusPolicy( QToolButton::TabFocus );
00088     cmdAdd->setText( tr( "Add" ) );
00089     QWhatsThis::add(  cmdAdd, tr( "Enter a new category to the left and press to add it to the list." ) );
00090     Layout2->addWidget( cmdAdd );
00091 
00092     cmdDel = new QToolButton( this, "cmdDel" );
00093     cmdDel->setFocusPolicy( QToolButton::TabFocus );
00094     cmdDel->setText( tr( "" ) );
00095     cmdDel->setPixmap( image0 );
00096     QWhatsThis::add(  cmdDel, tr( "Press to delete the highlighted category." ) );
00097     Layout2->addWidget( cmdDel );
00098 
00099     chkGlobal = new QCheckBox( this, "chkGlobal" );
00100     chkGlobal->setText( tr( "Global" ) );
00101     QWhatsThis::add(  chkGlobal, tr( "Check to make this property available to all applications." ) );
00102     Layout2->addWidget( chkGlobal );
00103     CategoryEditBaseLayout->addLayout( Layout2 );
00104 
00105     // signals and slots connections
00106     connect( lvView, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( slotSetText( QListViewItem* ) ) );
00107     connect( cmdAdd, SIGNAL( clicked() ), this, SLOT( slotAdd() ) );
00108     connect( cmdDel, SIGNAL( clicked() ), this, SLOT( slotRemove() ) );
00109     connect( txtCat, SIGNAL( textChanged(const QString&) ), this, SLOT( slotTextChanged(const QString &) ) );
00110     connect( chkGlobal, SIGNAL( toggled(bool) ), this, SLOT( slotSetGlobal( bool ) ) );
00111 }
00112 
00113 /*  
00114  *  Destroys the object and frees any allocated resources
00115  */
00116 CategoryEditBase::~CategoryEditBase()
00117 {
00118     // no need to delete child widgets, Qt does it all for us
00119 }
00120 
00121 void CategoryEditBase::slotSetGlobal( bool )
00122 {
00123     qWarning( "CategoryEditBase::slotSetGlobal( bool ): Not implemented yet!" );
00124 }
00125 
00126 void CategoryEditBase::slotAdd()
00127 {
00128     qWarning( "CategoryEditBase::slotAdd(): Not implemented yet!" );
00129 }
00130 
00131 void CategoryEditBase::slotRemove()
00132 {
00133     qWarning( "CategoryEditBase::slotRemove(): Not implemented yet!" );
00134 }
00135 
00136 void CategoryEditBase::slotSetText( QListViewItem* )
00137 {
00138     qWarning( "CategoryEditBase::slotSetText( QListViewItem* ): Not implemented yet!" );
00139 }
00140 
00141 void CategoryEditBase::slotTextChanged(const QString &)
00142 {
00143     qWarning( "CategoryEditBase::slotTextChanged(const QString &): Not implemented yet!" );
00144 }
00145 
KDE Logo
This file is part of the documentation for OPIE Version 1.5.5.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:03 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001