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

#ifndef PREFERENCESBASE_H
#define PREFERENCESBASE_H

#include <ntqvariant.h>
#include <ntqwidget.h>
#include <ntqmap.h>
#include "conf.h"

class TQVBoxLayout;
class TQHBoxLayout;
class TQGridLayout;
class TQSpacerItem;
class TQGroupBox;
class TQLabel;
class TQCheckBox;
class TQToolButton;
class TQComboBox;
class TQSpinBox;
class TQListBox;
class TQListBoxItem;
class TQLineEdit;

class PreferencesBase : public TQWidget
{
    TQ_OBJECT

public:
    PreferencesBase( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~PreferencesBase();

    TQGroupBox* GroupBox2;
    TQLabel* TextLabel1;
    TQCheckBox* checkBold;
    TQToolButton* buttonColor;
    TQComboBox* comboFamily;
    TQLabel* TextLabel2;
    TQCheckBox* checkUnderline;
    TQSpinBox* spinSize;
    TQCheckBox* checkItalic;
    TQLabel* TextLabel4;
    TQLabel* TextLabel3;
    TQListBox* listElements;
    TQLabel* TextLabel2_2;
    TQLineEdit* editPreview;
    TQGroupBox* GroupBox3;
    TQCheckBox* checkWordWrap;
    TQCheckBox* checkCompletion;
    TQCheckBox* checkParenMatching;
    TQGroupBox* GroupBox3_2;
    TQSpinBox* spinTabSize;
    TQLabel* TextLabel1_2;
    TQSpinBox* spinIndentSize;
    TQLabel* TextLabel2_3;
    TQCheckBox* checkKeepTabs;
    TQCheckBox* checkAutoIndent;

public slots:
    virtual void init();
    virtual void destroy();
    virtual void colorClicked();
    virtual void reInit();
    virtual void save();
    virtual void updatePreview();
    virtual void boldChanged( bool b );
    virtual void elementChanged( const TQString & element );
    virtual void familyChanged( const TQString & f );
    virtual void italicChanged( bool b );
    virtual void setColorPixmap( const TQColor & c );
    virtual void setPath( const TQString & p );
    virtual void sizeChanged( int s );
    virtual void underlineChanged( bool b );

protected:
    TQString path;
    TQMap<TQString, ConfigStyle> styles;
    ConfigStyle currentStyle;
    TQString currentElement;

    TQGridLayout* PreferencesBaseLayout;
    TQGridLayout* GroupBox2Layout;
    TQSpacerItem* Spacer2;
    TQGridLayout* Layout1;
    TQVBoxLayout* GroupBox3Layout;
    TQVBoxLayout* GroupBox3_2Layout;
    TQGridLayout* Layout2;

protected slots:
    virtual void languageChange();

};

#endif // PREFERENCESBASE_H
