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
|
/****************************************************************************
** Form implementation generated from reading ui file 'uic/htmlconfigbase.ui'
**
** Created: Sun Nov 26 00:34:25 2000
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "htmlconfigbase.h"
#include <qcheckbox.h>
#include <qframe.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a HtmlConfigBase which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
HtmlConfigBase::HtmlConfigBase( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
if ( !name )
setName( "HtmlConfigBase" );
resize( 608, 472 );
setCaption( tr( "Html Config" ) );
HtmlConfigBaseLayout = new QGridLayout( this );
HtmlConfigBaseLayout->setSpacing( 6 );
HtmlConfigBaseLayout->setMargin( 11 );
enhanceCheck = new QCheckBox( this, "enhanceCheck" );
enhanceCheck->setText( tr( "Enhance text" ) );
enhanceCheck->setChecked( TRUE );
HtmlConfigBaseLayout->addMultiCellWidget( enhanceCheck, 2, 2, 1, 2 );
Frame7_2_2_2 = new QFrame( this, "Frame7_2_2_2" );
Frame7_2_2_2->setFrameShadow( QFrame::Raised );
Frame7_2_2_2->setFrameShape( QFrame::NoFrame );
Frame7_2_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, Frame7_2_2_2->sizePolicy().hasHeightForWidth() ) );
Frame7_2_2_2->setMinimumSize( QSize( 40, 20 ) );
HtmlConfigBaseLayout->addWidget( Frame7_2_2_2, 3, 1 );
preferTextCheck = new QCheckBox( this, "preferTextCheck" );
preferTextCheck->setText( tr( "Prefer text" ) );
QWhatsThis::add( preferTextCheck, tr( "Shows the processed text even if the message has a HTML component." ) );
HtmlConfigBaseLayout->addMultiCellWidget( preferTextCheck, 7, 7, 1, 2 );
textOnlyCheck = new QCheckBox( this, "textOnlyCheck" );
textOnlyCheck->setText( tr( "Text only" ) );
HtmlConfigBaseLayout->addMultiCellWidget( textOnlyCheck, 1, 1, 1, 2 );
wroteCheck = new QCheckBox( this, "wroteCheck" );
wroteCheck->setText( tr( "Enhance \"wrote:\"" ) );
wroteCheck->setChecked( TRUE );
QWhatsThis::add( wroteCheck, tr( "Provides a highlighting enhancement for the line \"user wrote:\" included in replied messages." ) );
HtmlConfigBaseLayout->addWidget( wroteCheck, 3, 2 );
replyCheck = new QCheckBox( this, "replyCheck" );
replyCheck->setText( tr( "Indent reply tags" ) );
replyCheck->setChecked( TRUE );
QWhatsThis::add( replyCheck, tr( "Offers automatic indenting/highlighting for (nested) reply tags." ) );
HtmlConfigBaseLayout->addWidget( replyCheck, 4, 2 );
Frame7_2_2 = new QFrame( this, "Frame7_2_2" );
Frame7_2_2->setFrameShadow( QFrame::Raised );
Frame7_2_2->setFrameShape( QFrame::NoFrame );
Frame7_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, Frame7_2_2->sizePolicy().hasHeightForWidth() ) );
Frame7_2_2->setMinimumSize( QSize( 40, 20 ) );
HtmlConfigBaseLayout->addWidget( Frame7_2_2, 4, 1 );
rulesCheck = new QCheckBox( this, "rulesCheck" );
rulesCheck->setText( tr( "Enable enhancement rules" ) );
rulesCheck->setChecked( TRUE );
QWhatsThis::add( rulesCheck, tr( "Enables rules like \"Attention\" (replacing <b>*</b>text<b>*</b> with other color" ) );
HtmlConfigBaseLayout->addWidget( rulesCheck, 5, 2 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
HtmlConfigBaseLayout->addItem( spacer, 8, 2 );
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
HtmlConfigBaseLayout->addItem( spacer_2, 0, 2 );
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
HtmlConfigBaseLayout->addMultiCell( spacer_3, 1, 7, 0, 0 );
QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
HtmlConfigBaseLayout->addMultiCell( spacer_4, 1, 7, 3, 3 );
Frame7_2 = new QFrame( this, "Frame7_2" );
Frame7_2->setFrameShadow( QFrame::Raised );
Frame7_2->setFrameShape( QFrame::NoFrame );
Frame7_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, Frame7_2->sizePolicy().hasHeightForWidth() ) );
Frame7_2->setMinimumSize( QSize( 40, 20 ) );
HtmlConfigBaseLayout->addWidget( Frame7_2, 5, 1 );
Frame7_2_3 = new QFrame( this, "Frame7_2_3" );
Frame7_2_3->setFrameShadow( QFrame::Raised );
Frame7_2_3->setFrameShape( QFrame::NoFrame );
Frame7_2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, Frame7_2_3->sizePolicy().hasHeightForWidth() ) );
Frame7_2_3->setMinimumSize( QSize( 40, 20 ) );
HtmlConfigBaseLayout->addWidget( Frame7_2_3, 6, 1 );
addressesCheck = new QCheckBox( this, "addressesCheck" );
addressesCheck->setText( tr( "Addresses (http/e-mail) detection" ) );
HtmlConfigBaseLayout->addWidget( addressesCheck, 6, 2 );
// signals and slots connections
connect( textOnlyCheck, SIGNAL( clicked() ), this, SLOT( textOnlyChanged() ) );
connect( enhanceCheck, SIGNAL( clicked() ), this, SLOT( enhanceChanged() ) );
connect( wroteCheck, SIGNAL( clicked() ), this, SLOT( wroteChanged() ) );
connect( rulesCheck, SIGNAL( clicked() ), this, SLOT( rulesChanged() ) );
connect( preferTextCheck, SIGNAL( clicked() ), this, SLOT( preferTextChanged() ) );
connect( replyCheck, SIGNAL( clicked() ), this, SLOT( replyChanged() ) );
connect( addressesCheck, SIGNAL( clicked() ), this, SLOT( addressesChanged() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
HtmlConfigBase::~HtmlConfigBase()
{
// no need to delete child widgets, Qt does it all for us
}
void HtmlConfigBase::enhanceChanged()
{
qWarning( "HtmlConfigBase::enhanceChanged(): Not implemented yet!" );
}
void HtmlConfigBase::load()
{
qWarning( "HtmlConfigBase::load(): Not implemented yet!" );
}
void HtmlConfigBase::addressesChanged()
{
qWarning( "HtmlConfigBase::addressesChanged(): Not implemented yet!" );
}
void HtmlConfigBase::preferTextChanged()
{
qWarning( "HtmlConfigBase::preferTextChanged(): Not implemented yet!" );
}
void HtmlConfigBase::replyChanged()
{
qWarning( "HtmlConfigBase::replyChanged(): Not implemented yet!" );
}
void HtmlConfigBase::rulesChanged()
{
qWarning( "HtmlConfigBase::rulesChanged(): Not implemented yet!" );
}
void HtmlConfigBase::sync(bool)
{
qWarning( "HtmlConfigBase::sync(bool): Not implemented yet!" );
}
void HtmlConfigBase::textOnlyChanged()
{
qWarning( "HtmlConfigBase::textOnlyChanged(): Not implemented yet!" );
}
void HtmlConfigBase::wroteChanged()
{
qWarning( "HtmlConfigBase::wroteChanged(): Not implemented yet!" );
}
|