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

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

class Settings : public TDEConfigSkeleton
{
  public:
    class EnumResultFinish
    {
      public:
      enum type { testEnd, afterEachQuestion, COUNT };
    };

    static Settings *self();
    ~Settings();

    /**
      Set Display answers in random order.
    */
    static
    void setRandomAnswers( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "RandomAnswers" ) ))
        self()->mRandomAnswers = v;
    }

    /**
      Get Display answers in random order.
    */
    static
    bool randomAnswers()
    {
      return self()->mRandomAnswers;
    }

    /**
      Set Display answers in random order.
    */
    static
    void setRandomQuestions( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "RandomQuestions" ) ))
        self()->mRandomQuestions = v;
    }

    /**
      Get Display answers in random order.
    */
    static
    bool randomQuestions()
    {
      return self()->mRandomQuestions;
    }

    /**
      Set Show results only at the end of the test.
    */
    static
    void setResultFinish( int v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "ResultFinish" ) ))
        self()->mResultFinish = v;
    }

    /**
      Get Show results only at the end of the test.
    */
    static
    int resultFinish()
    {
      return self()->mResultFinish;
    }

    /**
      Set How the screen is divided in KEducaView.
    */
    static
    void setSplitter_size( const TQValueList<int> & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "Splitter_size" ) ))
        self()->mSplitter_size = v;
    }

    /**
      Get How the screen is divided in KEducaView.
    */
    static
    TQValueList<int> splitter_size()
    {
      return self()->mSplitter_size;
    }

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


    // Options
    bool mRandomAnswers;
    bool mRandomQuestions;
    int mResultFinish;

    // keducaview
    TQValueList<int> mSplitter_size;

  private:
};

#endif

