/**********************************************************************

	--- Qt Architect generated file ---

	File: OptionsGeneral.cpp
	Last generated: Fri Feb 19 20:58:08 1999

	DO NOT EDIT!!!  This file will be automatically
	regenerated by qtarch.  All changes will be lost.

 *********************************************************************/

#include "OptionsGeneral.h"

#define Inherited QWidget

#include <stdlib.h>
#include <kapp.h>

#include <qbttngrp.h>
#include <qlabel.h>
#include <qfiledialog.h>

OptionsGeneral::OptionsGeneral
(
	QWidget* parent,
	const char* name
)
	:
	Inherited( parent, name, 20480 )
{
	QButtonGroup* dlgedit_IconGroup;
	dlgedit_IconGroup = new QButtonGroup( this, "IconGroup" );
	dlgedit_IconGroup->setGeometry( 210, 15, 160, 105 );
	dlgedit_IconGroup->setMinimumSize( 10, 10 );
	dlgedit_IconGroup->setMaximumSize( 32767, 32767 );
	dlgedit_IconGroup->setFrameStyle( 49 );
	dlgedit_IconGroup->setTitle( i18n("Icons") );
	dlgedit_IconGroup->setAlignment( 1 );

	QButtonGroup* dlgedit_MimeGroup;
	dlgedit_MimeGroup = new QButtonGroup( this, "MimeGroup" );
	dlgedit_MimeGroup->setGeometry( 20, 15, 160, 105 );
	dlgedit_MimeGroup->setMinimumSize( 10, 10 );
	dlgedit_MimeGroup->setMaximumSize( 32767, 32767 );
	dlgedit_MimeGroup->setFrameStyle( 49 );
	dlgedit_MimeGroup->setTitle( i18n("Mime types") );
	dlgedit_MimeGroup->setAlignment( 1 );

	KDEMime = new QRadioButton( this, "KDEMime" );
	KDEMime->setGeometry( 40, 32, 130, 25 );
	KDEMime->setMinimumSize( 10, 10 );
	KDEMime->setMaximumSize( 32767, 32767 );
	KDEMime->setText( i18n("KDE Mime types") );
	KDEMime->setAutoRepeat( FALSE );
	KDEMime->setAutoResize( FALSE );
	connect(KDEMime,SIGNAL(toggled(bool)),SLOT(kdeMimeToggled(bool)));

	LocalMime = new QRadioButton( this, "LocalMime" );
	LocalMime->setGeometry( 40, 55, 130, 25 );
	LocalMime->setMinimumSize( 10, 10 );
	LocalMime->setMaximumSize( 32767, 32767 );
	LocalMime->setText( i18n("Local Mime types") );
	LocalMime->setAutoRepeat( FALSE );
	LocalMime->setAutoResize( FALSE );
	connect(LocalMime,SIGNAL(toggled(bool)),SLOT(localMimeToggled(bool)));

	LocalMimeFile = new QLineEdit( this, "LocalMimeFile" );
	LocalMimeFile->setGeometry( 60, 80, 110, 25 );
	LocalMimeFile->setMinimumSize( 10, 10 );
	LocalMimeFile->setMaximumSize( 32767, 32767 );
	LocalMimeFile->setText( "dbext" );
	LocalMimeFile->setMaxLength( 32767 );
	LocalMimeFile->setEchoMode( QLineEdit::Normal );
	LocalMimeFile->setFrame( TRUE );

	KDEIcons = new QRadioButton( this, "KDEIcons" );
	KDEIcons->setGeometry( 235, 32, 125, 25 );
	KDEIcons->setMinimumSize( 10, 10 );
	KDEIcons->setMaximumSize( 32767, 32767 );
	KDEIcons->setText( i18n("KDE Icons") );
	KDEIcons->setAutoRepeat( FALSE );
	KDEIcons->setAutoResize( FALSE );
	connect(KDEIcons,SIGNAL(toggled(bool)),SLOT(kdeIconsToggled(bool)));

	LocalIcons = new QRadioButton( this, "LocalIcon" );
	LocalIcons->setGeometry( 235, 55, 125, 25 );
	LocalIcons->setMinimumSize( 10, 10 );
	LocalIcons->setMaximumSize( 32767, 32767 );
	LocalIcons->setText( i18n("Local Icons") );
	LocalIcons->setAutoRepeat( FALSE );
	LocalIcons->setAutoResize( FALSE );
	connect(LocalIcons,SIGNAL(toggled(bool)),SLOT(localIconsToggled(bool)));

	LocalIconPath = new QLineEdit( this, "LocalIconPath" );
	LocalIconPath->setGeometry( 255, 80, 100, 25 );
	LocalIconPath->setMinimumSize( 10, 10 );
	LocalIconPath->setMaximumSize( 32767, 32767 );
	LocalIconPath->setText( "icons" );
	LocalIconPath->setMaxLength( 32767 );
	LocalIconPath->setEchoMode( QLineEdit::Normal );
	LocalIconPath->setFrame( TRUE );

	UseMagic = new QCheckBox( this, "UseMagic" );
	UseMagic->setGeometry( 20, 135, 145, 25 );
	UseMagic->setMinimumSize( 10, 10 );
	UseMagic->setMaximumSize( 32767, 32767 );
	UseMagic->setText( i18n("Use magic numbers :") );
	UseMagic->setAutoRepeat( FALSE );
	UseMagic->setAutoResize( FALSE );
	connect(UseMagic,SIGNAL(toggled(bool)),SLOT(useMagicToggled(bool)));

	MagicFile = new QLineEdit( this, "MagicFile" );
	MagicFile->setGeometry( 175, 135, 100, 25 );
	MagicFile->setMinimumSize( 10, 10 );
	MagicFile->setMaximumSize( 32767, 32767 );
	MagicFile->setText( "magic" );
	MagicFile->setMaxLength( 32767 );
	MagicFile->setEchoMode( QLineEdit::Normal );
	MagicFile->setFrame( TRUE );

	BrowseMagic = new QPushButton( this, "BrowseMagic" );
	BrowseMagic->setGeometry( 285, 135, 90, 25 );
	BrowseMagic->setMinimumSize( 10, 10 );
	BrowseMagic->setMaximumSize( 32767, 32767 );
	BrowseMagic->setText( i18n("Browse...") );
	BrowseMagic->setAutoRepeat( FALSE );
	BrowseMagic->setAutoResize( FALSE );
	connect(BrowseMagic,SIGNAL(clicked()),SLOT(browseMagic()));

	QLabel	*lab_sh = new QLabel(i18n("Default shell"),this);
	lab_sh->setGeometry(20,173,150,25);
	Shell = new QLineEdit(this);
	Shell->setGeometry(20,200,100,25);

	QLabel	*lab_st = new QLabel(i18n("On startup use"),this);
	lab_st->setGeometry(210,173,150,25);
	Startup = new QComboBox(this);
	Startup->setGeometry(210,200,150,25);
	Startup->insertItem(i18n("Current directory"));
	Startup->insertItem(i18n("Last directory"));

	dlgedit_IconGroup->insert( KDEIcons );
	dlgedit_IconGroup->insert( LocalIcons );

	dlgedit_MimeGroup->insert( KDEMime );
	dlgedit_MimeGroup->insert( LocalMime );

	resize( 390,235 );
	setMinimumSize( 0, 0 );
	setMaximumSize( 32767, 32767 );
}


OptionsGeneral::~OptionsGeneral()
{
}

void OptionsGeneral::browseMagic()
{
	QString		file = QFileDialog::getOpenFileName(0,0,this);
	if (!file.isNull()) {
		MagicFile->setText(file.data());
	}
}
