// This file is generated by tdeconfig_compiler from kbruch.kcfg.
// All changes you do to this file will be lost.
#ifndef SETTINGSCLASS_H
#define SETTINGSCLASS_H

#include <tdeconfigskeleton.h>
#include <kdebug.h>

class SettingsClass : public TDEConfigSkeleton
{
  public:

    static SettingsClass *self();
    ~SettingsClass();

    /**
      Set Active exercise.
    */
    static
    void setActiveExercise( int v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "activeExercise" ) ))
        self()->mActiveExercise = v;
    }

    /**
      Get Active exercise.
    */
    static
    int activeExercise()
    {
      return self()->mActiveExercise;
    }

    /**
      Set Enable Addition/Subtraction
    */
    static
    void setAddsub( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "addsub" ) ))
        self()->mAddsub = v;
    }

    /**
      Get Enable Addition/Subtraction
    */
    static
    bool addsub()
    {
      return self()->mAddsub;
    }

    /**
      Set Enable Multiplication/Division
    */
    static
    void setMuldiv( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "muldiv" ) ))
        self()->mMuldiv = v;
    }

    /**
      Get Enable Multiplication/Division
    */
    static
    bool muldiv()
    {
      return self()->mMuldiv;
    }

    /**
      Set Number of fractions
    */
    static
    void setNumber_ratios( uint v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "number_ratios" ) ))
        self()->mNumber_ratios = v;
    }

    /**
      Get Number of fractions
    */
    static
    uint number_ratios()
    {
      return self()->mNumber_ratios;
    }

    /**
      Set Max. main denominator
    */
    static
    void setMax_main_denominator( uint v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "max_main_denominator" ) ))
        self()->mMax_main_denominator = v;
    }

    /**
      Get Max. main denominator
    */
    static
    uint max_main_denominator()
    {
      return self()->mMax_main_denominator;
    }

    /**
      Set Number of correctly solved tasks
    */
    static
    void setCorrect( int v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "correct" ) ))
        self()->mCorrect = v;
    }

    /**
      Get Number of correctly solved tasks
    */
    static
    int correct()
    {
      return self()->mCorrect;
    }

    /**
      Set Number of solved tasks
    */
    static
    void setCount( int v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "count" ) ))
        self()->mCount = v;
    }

    /**
      Get Number of solved tasks
    */
    static
    int count()
    {
      return self()->mCount;
    }

    /**
      Set Color of the numbers in the task view
    */
    static
    void setNumberColor( const TQColor & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "numberColor" ) ))
        self()->mNumberColor = v;
    }

    /**
      Get Color of the numbers in the task view
    */
    static
    TQColor numberColor()
    {
      return self()->mNumberColor;
    }

    /**
      Set Color of the operation signs in the task view
    */
    static
    void setOperationColor( const TQColor & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "operationColor" ) ))
        self()->mOperationColor = v;
    }

    /**
      Get Color of the operation signs in the task view
    */
    static
    TQColor operationColor()
    {
      return self()->mOperationColor;
    }

    /**
      Set Color of the fraction bars in the task view
    */
    static
    void setFractionBarColor( const TQColor & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "fractionBarColor" ) ))
        self()->mFractionBarColor = v;
    }

    /**
      Get Color of the fraction bars in the task view
    */
    static
    TQColor fractionBarColor()
    {
      return self()->mFractionBarColor;
    }

    /**
      Set Font used for the task view
    */
    static
    void setTaskFont( const TQFont & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "taskFont" ) ))
        self()->mTaskFont = v;
    }

    /**
      Get Font used for the task view
    */
    static
    TQFont taskFont()
    {
      return self()->mTaskFont;
    }

    /**
      Set Enable showing the result also as a mixed number
    */
    static
    void setShowSpecialRatioNotation( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "showSpecialRatioNotation" ) ))
        self()->mShowSpecialRatioNotation = v;
    }

    /**
      Get Enable showing the result also as a mixed number
    */
    static
    bool showSpecialRatioNotation()
    {
      return self()->mShowSpecialRatioNotation;
    }

    static
    void writeConfig()
    {
      static_cast<TDEConfigSkeleton*>(self())->writeConfig();
    }
  protected:
    SettingsClass();
    static SettingsClass *mSelf;


    // General
    int mActiveExercise;

    // Task
    bool mAddsub;
    bool mMuldiv;
    uint mNumber_ratios;
    uint mMax_main_denominator;

    // Statistics
    int mCorrect;
    int mCount;

    // TaskViewer
    TQColor mNumberColor;
    TQColor mOperationColor;
    TQColor mFractionBarColor;
    TQFont mTaskFont;
    bool mShowSpecialRatioNotation;

  private:
};

#endif

