#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'previewoptionss.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "previewoptionss.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqcheckbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a PreviewOptionsS as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
PreviewOptionsS::PreviewOptionsS( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "PreviewOptionsS" );
    setMinimumSize( TQSize( 350, 220 ) );
    PreviewOptionsSLayout = new TQGridLayout( this, 1, 1, 11, 6, "PreviewOptionsSLayout"); 

    resetLayout = new TQCheckBox( this, "resetLayout" );

    PreviewOptionsSLayout->addMultiCellWidget( resetLayout, 2, 2, 0, 1 );

    showHidden = new TQCheckBox( this, "showHidden" );

    PreviewOptionsSLayout->addMultiCellWidget( showHidden, 3, 3, 0, 1 );

    saveLocalTrees = new TQCheckBox( this, "saveLocalTrees" );

    PreviewOptionsSLayout->addMultiCellWidget( saveLocalTrees, 4, 4, 0, 1 );

    buttonGroup3 = new TQButtonGroup( this, "buttonGroup3" );
    buttonGroup3->setColumnLayout(0, TQt::Vertical );
    buttonGroup3->layout()->setSpacing( 6 );
    buttonGroup3->layout()->setMargin( 11 );
    buttonGroup3Layout = new TQGridLayout( buttonGroup3->layout() );
    buttonGroup3Layout->setAlignment( TQt::AlignTop );

    radioShowCloseButtons = new TQRadioButton( buttonGroup3, "radioShowCloseButtons" );
    radioShowCloseButtons->setChecked( true );

    buttonGroup3Layout->addWidget( radioShowCloseButtons, 1, 0 );

    radioNoCloseButtons = new TQRadioButton( buttonGroup3, "radioNoCloseButtons" );

    buttonGroup3Layout->addWidget( radioNoCloseButtons, 0, 0 );

    radioDelayedCloseButtons = new TQRadioButton( buttonGroup3, "radioDelayedCloseButtons" );

    buttonGroup3Layout->addWidget( radioDelayedCloseButtons, 2, 0 );

    PreviewOptionsSLayout->addWidget( buttonGroup3, 1, 0 );

    buttonGroup3_2 = new TQButtonGroup( this, "buttonGroup3_2" );
    buttonGroup3_2->setColumnLayout(0, TQt::Vertical );
    buttonGroup3_2->layout()->setSpacing( 6 );
    buttonGroup3_2->layout()->setMargin( 11 );
    buttonGroup3_2Layout = new TQGridLayout( buttonGroup3_2->layout() );
    buttonGroup3_2Layout->setAlignment( TQt::AlignTop );

    radioNewDocTab = new TQRadioButton( buttonGroup3_2, "radioNewDocTab" );
    radioNewDocTab->setChecked( true );

    buttonGroup3_2Layout->addWidget( radioNewDocTab, 0, 0 );

    radioSeparateDocView = new TQRadioButton( buttonGroup3_2, "radioSeparateDocView" );

    buttonGroup3_2Layout->addWidget( radioSeparateDocView, 1, 0 );

    PreviewOptionsSLayout->addWidget( buttonGroup3_2, 0, 1 );

    buttonGroup4 = new TQButtonGroup( this, "buttonGroup4" );
    buttonGroup4->setColumnLayout(0, TQt::Vertical );
    buttonGroup4->layout()->setSpacing( 6 );
    buttonGroup4->layout()->setMargin( 11 );
    buttonGroup4Layout = new TQGridLayout( buttonGroup4->layout() );
    buttonGroup4Layout->setAlignment( TQt::AlignTop );

    radioIconText = new TQRadioButton( buttonGroup4, "radioIconText" );
    radioIconText->setChecked( true );

    buttonGroup4Layout->addWidget( radioIconText, 0, 0 );

    radioText = new TQRadioButton( buttonGroup4, "radioText" );

    buttonGroup4Layout->addWidget( radioText, 2, 0 );

    radioIcon = new TQRadioButton( buttonGroup4, "radioIcon" );

    buttonGroup4Layout->addWidget( radioIcon, 1, 0 );

    PreviewOptionsSLayout->addWidget( buttonGroup4, 1, 1 );

    ButtonGroup1 = new TQButtonGroup( this, "ButtonGroup1" );
    ButtonGroup1->setColumnLayout(0, TQt::Vertical );
    ButtonGroup1->layout()->setSpacing( 6 );
    ButtonGroup1->layout()->setMargin( 11 );
    ButtonGroup1Layout = new TQGridLayout( ButtonGroup1->layout() );
    ButtonGroup1Layout->setAlignment( TQt::AlignTop );

    radioToolview = new TQRadioButton( ButtonGroup1, "radioToolview" );

    ButtonGroup1Layout->addWidget( radioToolview, 1, 0 );

    radioEditor = new TQRadioButton( ButtonGroup1, "radioEditor" );
    radioEditor->setChecked( true );

    ButtonGroup1Layout->addWidget( radioEditor, 0, 0 );

    PreviewOptionsSLayout->addWidget( ButtonGroup1, 0, 0 );
    Spacer1 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    PreviewOptionsSLayout->addItem( Spacer1, 6, 0 );

    buttonGroup1 = new TQButtonGroup( this, "buttonGroup1" );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 6 );
    buttonGroup1->layout()->setMargin( 11 );
    buttonGroup1Layout = new TQGridLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

    warnBinaryOpening = new TQCheckBox( buttonGroup1, "warnBinaryOpening" );

    buttonGroup1Layout->addWidget( warnBinaryOpening, 0, 0 );

    warnEventActions = new TQCheckBox( buttonGroup1, "warnEventActions" );

    buttonGroup1Layout->addWidget( warnEventActions, 1, 0 );

    warnAll = new TQCheckBox( buttonGroup1, "warnAll" );

    buttonGroup1Layout->addWidget( warnAll, 2, 0 );

    PreviewOptionsSLayout->addMultiCellWidget( buttonGroup1, 5, 5, 0, 1 );
    languageChange();
    resize( TQSize(498, 512).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( radioEditor, radioNewDocTab );
    setTabOrder( radioNewDocTab, radioShowCloseButtons );
    setTabOrder( radioShowCloseButtons, radioIconText );
    setTabOrder( radioIconText, resetLayout );
    setTabOrder( resetLayout, showHidden );
    setTabOrder( showHidden, saveLocalTrees );
    setTabOrder( saveLocalTrees, warnBinaryOpening );
    setTabOrder( warnBinaryOpening, warnEventActions );
    setTabOrder( warnEventActions, warnAll );
    setTabOrder( warnAll, radioToolview );
    setTabOrder( radioToolview, radioNoCloseButtons );
    setTabOrder( radioNoCloseButtons, radioDelayedCloseButtons );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PreviewOptionsS::languageChange()
{
    resetLayout->setText( tr2i18n( "Reset window layout to the default on the next startup" ) );
    showHidden->setText( tr2i18n( "Show hidden files in files tree" ) );
    saveLocalTrees->setText( tr2i18n( "Save tree status for local trees" ) );
    buttonGroup3->setTitle( tr2i18n( "Close Buttons on Tabs" ) );
    radioShowCloseButtons->setText( tr2i18n( "&Always show" ) );
    radioNoCloseButtons->setText( tr2i18n( "&Do not show" ) );
    radioDelayedCloseButtons->setText( tr2i18n( "Show dela&yed" ) );
    buttonGroup3_2->setTitle( tr2i18n( "Documentation" ) );
    radioNewDocTab->setText( tr2i18n( "New tab" ) );
    radioSeparateDocView->setText( tr2i18n( "Separate toolview" ) );
    buttonGroup4->setTitle( tr2i18n( "Toolview Tabs" ) );
    radioIconText->setText( tr2i18n( "Icon and text" ) );
    radioText->setText( tr2i18n( "Text" ) );
    radioIcon->setText( tr2i18n( "Icon" ) );
    ButtonGroup1->setTitle( tr2i18n( "Preview" ) );
    radioToolview->setText( tr2i18n( "Separate toolview" ) );
    radioEditor->setText( tr2i18n( "Editor area" ) );
    buttonGroup1->setTitle( tr2i18n( "&Warning Messages" ) );
    warnBinaryOpening->setText( tr2i18n( "Warn about opening binar&y/unknown files" ) );
    warnEventActions->setText( tr2i18n( "Warn when executing &actions associated with events" ) );
    warnAll->setText( tr2i18n( "Show all warning messages" ) );
}

/****************************************************************************
** PreviewOptionsS meta object code from reading C++ file 'previewoptionss.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "previewoptionss.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *PreviewOptionsS::className() const
{
    return "PreviewOptionsS";
}

TQMetaObject *PreviewOptionsS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PreviewOptionsS( "PreviewOptionsS", &PreviewOptionsS::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString PreviewOptionsS::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "PreviewOptionsS", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString PreviewOptionsS::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "PreviewOptionsS", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* PreviewOptionsS::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"PreviewOptionsS", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_PreviewOptionsS.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* PreviewOptionsS::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "PreviewOptionsS" ) )
	return this;
    return TQWidget::tqt_cast( clname );
}

bool PreviewOptionsS::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool PreviewOptionsS::tqt_emit( int _id, TQUObject* _o )
{
    return TQWidget::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool PreviewOptionsS::tqt_property( int id, int f, TQVariant* v)
{
    return TQWidget::tqt_property( id, f, v);
}

bool PreviewOptionsS::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
