config.h

Go to the documentation of this file.
00001 /* Copyright (C) 2006 P.L. Lucas
00002  *
00003  * This program is free software; you can redistribute it and/or modify
00004  * it under the terms of the GNU General Public License as published by
00005  * the Free Software Foundation; either version 2 of the License, or
00006  * (at your option) any later version.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, 
00016  * Boston, MA 02111-1307, USA. 
00017  */
00018 
00019  /*! \mainpage QtOctave Index Page
00020  *
00021  * \section intro_sec Introduction
00022  *
00023  * QtOctave is a simple front-end for Octave. Octave is a Matlab like calculus application..
00024  *
00025  * \section install_sec Installation
00026  *
00027  * \subsection step1 Step 1: Opening the box
00028  *  
00029  * etc...
00030  */
00031 
00032 /** @file config.h
00033  * This file contains application's config parameters. Configuration is automaticly load and save from CONFIG_PATH/config.rc and from user home/.qtoctave.rc
00034  */
00035 
00036 #ifndef CONFIG_H
00037 #define CONFIG_H
00038 
00039 #ifndef ICON_PATH
00040 #define ICON_PATH "/usr/local/share/qtoctave/"
00041 #endif
00042 #ifndef HELP_PATH
00043 #define HELP_PATH "/usr/local/share/qtoctave/octave_doc/octave.html"
00044 #endif
00045 #ifndef CONFIG_PATH
00046 #define CONFIG_PATH "/usr/local/share/qtoctave/"
00047 #endif
00048 
00049 #include <QString>
00050 #include <QMap>
00051 
00052 /**Gets config of parameter.
00053  * @param parameter Parameter name.
00054  * @return A QString with parameter value.
00055  */
00056 const QString get_config(char *parameter);
00057 /**Sets config of parameter.
00058  * @param configuration Add a parameter with value. QMap key is parameter name. QMap value is parameter value.
00059  */
00060 void set_config(QMap<QString,QString> configuration);
00061 
00062 #endif

Generated on Wed Mar 7 10:15:11 2007 for QtOctave by  doxygen 1.4.7