/****************************************************************************
** Form implementation generated from reading ui file 'miscconfig.ui'
**
** Created: Sat Nov 25 14:32:02 2000
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "miscconfig.h"

#include <klocale.h>
#include <qcheckbox.h>
#include <qframe.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a MiscConfiguration which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
MiscConfiguration::MiscConfiguration( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "MiscConfiguration" );
    resize( 292, 137 ); 
    setCaption( i18n( "Miscellaneous"  ) );
    MiscConfigurationLayout = new QVBoxLayout( this ); 
    MiscConfigurationLayout->setSpacing( 0 );
    MiscConfigurationLayout->setMargin( 0 );

    mMessagesBox = new QGroupBox( this, "mMessagesBox" );
    mMessagesBox->setTitle( i18n( "Informational Messages"  ) );
    mMessagesBox->setColumnLayout(0, Qt::Vertical );
    mMessagesBox->layout()->setSpacing( 0 );
    mMessagesBox->layout()->setMargin( 0 );
    mMessagesBoxLayout = new QVBoxLayout( mMessagesBox->layout() );
    mMessagesBoxLayout->setAlignment( Qt::AlignTop );
    mMessagesBoxLayout->setSpacing( 6 );
    mMessagesBoxLayout->setMargin( 11 );

    Layout12 = new QHBoxLayout; 
    Layout12->setSpacing( 0 );
    Layout12->setMargin( 0 );

    mShowAllLabel = new QLabel( mMessagesBox, "mShowAllLabel" );
    mShowAllLabel->setText( i18n( "Show all messages again:"  ) );
    Layout12->addWidget( mShowAllLabel );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout12->addItem( spacer );

    mShowAll = new QPushButton( mMessagesBox, "mShowAll" );
    mShowAll->setText( i18n( "&Show All"  ) );
    Layout12->addWidget( mShowAll );
    mMessagesBoxLayout->addLayout( Layout12 );

    mWarnReadOnly = new QCheckBox( mMessagesBox, "mWarnReadOnly" );
    mWarnReadOnly->setText( i18n( "&Warn if not allowed to write configuration"  ) );
    mMessagesBoxLayout->addWidget( mWarnReadOnly );

    mWarnSortingNumber = new QCheckBox( mMessagesBox, "mWarnSortingNumber" );
    mWarnSortingNumber->setText( i18n( "Warn &if unable to generate a sorting number"  ) );
    mMessagesBoxLayout->addWidget( mWarnSortingNumber );
    MiscConfigurationLayout->addWidget( mMessagesBox );

    mSpacer = new QFrame( this, "mSpacer" );
    mSpacer->setFrameShadow( QFrame::Plain );
    mSpacer->setFrameShape( QFrame::NoFrame );
    mSpacer->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, mSpacer->sizePolicy().hasHeightForWidth() ) );
    mSpacer->setMinimumSize( QSize( 0, 10 ) );
    MiscConfigurationLayout->addWidget( mSpacer );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    MiscConfigurationLayout->addItem( spacer_2 );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
MiscConfiguration::~MiscConfiguration()
{
    // no need to delete child widgets, Qt does it all for us
}

