certmanager Library API Documentation

appearanceconfigwidgetbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './appearanceconfigwidgetbase.ui'
00005 **
00006 ** Created: Wed Mar 23 22:04:17 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "appearanceconfigwidgetbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qheader.h>
00016 #include <qlistview.h>
00017 #include <qpushbutton.h>
00018 #include <qcheckbox.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 
00023 /*
00024  *  Constructs a AppearanceConfigWidgetBase as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  */
00027 AppearanceConfigWidgetBase::AppearanceConfigWidgetBase( QWidget* parent, const char* name, WFlags fl )
00028     : QWidget( parent, name, fl )
00029 {
00030     if ( !name )
00031     setName( "AppearanceConfigWidgetBase" );
00032     AppearanceConfigWidgetBaseLayout = new QHBoxLayout( this, 11, 6, "AppearanceConfigWidgetBaseLayout"); 
00033 
00034     categoriesLV = new QListView( this, "categoriesLV" );
00035     categoriesLV->addColumn( tr2i18n( "Key Categories" ) );
00036     AppearanceConfigWidgetBaseLayout->addWidget( categoriesLV );
00037 
00038     layout2 = new QVBoxLayout( 0, 0, 6, "layout2"); 
00039 
00040     foregroundButton = new QPushButton( this, "foregroundButton" );
00041     foregroundButton->setEnabled( FALSE );
00042     layout2->addWidget( foregroundButton );
00043 
00044     backgroundButton = new QPushButton( this, "backgroundButton" );
00045     backgroundButton->setEnabled( FALSE );
00046     layout2->addWidget( backgroundButton );
00047 
00048     fontButton = new QPushButton( this, "fontButton" );
00049     fontButton->setEnabled( FALSE );
00050     layout2->addWidget( fontButton );
00051 
00052     italicCB = new QCheckBox( this, "italicCB" );
00053     italicCB->setEnabled( FALSE );
00054     layout2->addWidget( italicCB );
00055 
00056     boldCB = new QCheckBox( this, "boldCB" );
00057     boldCB->setEnabled( FALSE );
00058     layout2->addWidget( boldCB );
00059 
00060     strikeoutCB = new QCheckBox( this, "strikeoutCB" );
00061     strikeoutCB->setEnabled( FALSE );
00062     layout2->addWidget( strikeoutCB );
00063     spacer6 = new QSpacerItem( 20, 100, QSizePolicy::Minimum, QSizePolicy::Expanding );
00064     layout2->addItem( spacer6 );
00065 
00066     defaultLookPB = new QPushButton( this, "defaultLookPB" );
00067     defaultLookPB->setEnabled( FALSE );
00068     layout2->addWidget( defaultLookPB );
00069     AppearanceConfigWidgetBaseLayout->addLayout( layout2 );
00070     languageChange();
00071     resize( QSize(616, 352).expandedTo(minimumSizeHint()) );
00072     clearWState( WState_Polished );
00073 
00074     // signals and slots connections
00075     connect( foregroundButton, SIGNAL( clicked() ), this, SLOT( slotForegroundClicked() ) );
00076     connect( backgroundButton, SIGNAL( clicked() ), this, SLOT( slotBackgroundClicked() ) );
00077     connect( fontButton, SIGNAL( clicked() ), this, SLOT( slotFontClicked() ) );
00078     connect( categoriesLV, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( slotSelectionChanged(QListViewItem*) ) );
00079     connect( defaultLookPB, SIGNAL( clicked() ), this, SLOT( slotDefaultClicked() ) );
00080     connect( italicCB, SIGNAL( clicked() ), this, SLOT( slotItalicClicked() ) );
00081     connect( boldCB, SIGNAL( clicked() ), this, SLOT( slotBoldClicked() ) );
00082     connect( strikeoutCB, SIGNAL( clicked() ), this, SLOT( slotStrikeoutClicked() ) );
00083 
00084     // tab order
00085     setTabOrder( categoriesLV, foregroundButton );
00086     setTabOrder( foregroundButton, backgroundButton );
00087     setTabOrder( backgroundButton, fontButton );
00088     setTabOrder( fontButton, italicCB );
00089     setTabOrder( italicCB, boldCB );
00090     setTabOrder( boldCB, strikeoutCB );
00091     setTabOrder( strikeoutCB, defaultLookPB );
00092 }
00093 
00094 /*
00095  *  Destroys the object and frees any allocated resources
00096  */
00097 AppearanceConfigWidgetBase::~AppearanceConfigWidgetBase()
00098 {
00099     // no need to delete child widgets, Qt does it all for us
00100 }
00101 
00102 /*
00103  *  Sets the strings of the subwidgets using the current
00104  *  language.
00105  */
00106 void AppearanceConfigWidgetBase::languageChange()
00107 {
00108     setCaption( tr2i18n( "Color & Font Configuration" ) );
00109     categoriesLV->header()->setLabel( 0, tr2i18n( "Key Categories" ) );
00110     foregroundButton->setText( tr2i18n( "Set &Text Color..." ) );
00111     backgroundButton->setText( tr2i18n( "Set &Background Color..." ) );
00112     fontButton->setText( tr2i18n( "Set F&ont..." ) );
00113     italicCB->setText( tr2i18n( "Italic" ) );
00114     boldCB->setText( tr2i18n( "Bold" ) );
00115     strikeoutCB->setText( tr2i18n( "Strikeout" ) );
00116     defaultLookPB->setText( tr2i18n( "Default Appearance" ) );
00117 }
00118 
00119 void AppearanceConfigWidgetBase::slotForegroundClicked()
00120 {
00121     qWarning( "AppearanceConfigWidgetBase::slotForegroundClicked(): Not implemented yet" );
00122 }
00123 
00124 void AppearanceConfigWidgetBase::slotBackgroundClicked()
00125 {
00126     qWarning( "AppearanceConfigWidgetBase::slotBackgroundClicked(): Not implemented yet" );
00127 }
00128 
00129 void AppearanceConfigWidgetBase::slotFontClicked()
00130 {
00131     qWarning( "AppearanceConfigWidgetBase::slotFontClicked(): Not implemented yet" );
00132 }
00133 
00134 void AppearanceConfigWidgetBase::slotSelectionChanged(QListViewItem*)
00135 {
00136     qWarning( "AppearanceConfigWidgetBase::slotSelectionChanged(QListViewItem*): Not implemented yet" );
00137 }
00138 
00139 void AppearanceConfigWidgetBase::slotDefaultClicked()
00140 {
00141     qWarning( "AppearanceConfigWidgetBase::slotDefaultClicked(): Not implemented yet" );
00142 }
00143 
00144 void AppearanceConfigWidgetBase::slotItalicClicked()
00145 {
00146     qWarning( "AppearanceConfigWidgetBase::slotItalicClicked(): Not implemented yet" );
00147 }
00148 
00149 void AppearanceConfigWidgetBase::slotBoldClicked()
00150 {
00151     qWarning( "AppearanceConfigWidgetBase::slotBoldClicked(): Not implemented yet" );
00152 }
00153 
00154 void AppearanceConfigWidgetBase::slotStrikeoutClicked()
00155 {
00156     qWarning( "AppearanceConfigWidgetBase::slotStrikeoutClicked(): Not implemented yet" );
00157 }
00158 
00159 #include "appearanceconfigwidgetbase.moc"
KDE Logo
This file is part of the documentation for certmanager Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:39:31 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003