Logo Search packages:      
Sourcecode: qgrubeditor version File versions  Download package

config.h

/***************************************************************************
 *   Copyright (C) 2007 by Κωνσταντίνος Σμάνης   *
 *   kon.smanis@gmail.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation                                              *
 *   51 Franklin Street, Fifth Floor                                       *
 *   Boston, MA 02110-1301 USA                                             *
 ***************************************************************************/

#ifndef CONFIG_H
#define CONFIG_H

#include <QString>
#include <QSize>
#include <QByteArray>
#include <QVariant>
#include <QSettings>
#include <QColor>

#include "lib/data.h"

00034 struct configuration
{
//GENERAL
      //general
      bool menu, autobackup;
      int completion;
      //colors
      QColor default_color;
      //toolbar
      int size, style;
//PATHS
      QString menulst;
      QString devicemap;
      QString mtab;
//LANGUAGE
      QString language;
//WINDOW
      QSize window_size;
      QByteArray window_geometry;
      QByteArray window_state;
//OTHER
      bool firstrun;
};

00058 class Config
{
public:
      Config();
      void read();
      void write();
      void writeValue( const QString key, const QVariant value );

      static configuration settings;
};

#endif

Generated by  Doxygen 1.6.0   Back to index