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. <br>
00024  * QtOctave main page: <a href="qtoctave.wordpress.com">qtoctave.wordpress.com</a>
00025  *
00026  * \section modules_sec QtOctave modules.
00027  * QtOctave uses this module structure:
00028   * 
00029   * <img src="../images/modules_diagram.png"></img>
00030  *
00031  * Main module controls all modules and interconnect them.<br>
00032   * BaseWidget module is a base class for windows shown in QtOctave.
00033   * 
00034  * \subsection operations_sec Operations module.
00035   * 
00036   * Operations module connects menus signals with callbacks. Contains some classes as Plot class and General_Menu class.
00037  */
00038 
00039 /** @file config.h
00040  * This file contains application's config parameters. Configuration is automaticly load and save from CONFIG_PATH/config.rc and from user home/.qtoctave.rc
00041  */
00042 
00043 #ifndef HELP_PATH
00044 #define HELP_PATH "/usr/local/share/qtoctave/octave_doc/octave.html"
00045 #endif
00046 
00047 #ifndef ICON_PATH
00048 #define ICON_PATH "/usr/local/share/qtoctave/"
00049 #endif
00050 
00051 #ifndef QTOCTAVE_HELP_PATH
00052 #define QTOCTAVE_HELP_PATH "/usr/local/share/qtoctave/qtoctave_doc/index.html"
00053 #endif
00054 
00055 #ifndef CONFIG_PATH
00056 #define CONFIG_PATH "/usr/local/share/qtoctave/"
00057 #endif
00058 
00059 #ifndef CONFIG_H
00060 #define CONFIG_H
00061 
00062 #include <QString>
00063 #include <QMap>
00064 
00065 /**Gets config of parameter.
00066  * @param parameter Parameter name.
00067  * @return A QString with parameter value.
00068  */
00069 const QString get_config(char *parameter);
00070 /**Sets config of parameter.
00071  * @param configuration Add a parameter with value. QMap key is parameter name. QMap value is parameter value.
00072  */
00073 void set_config(QMap<QString,QString> configuration);
00074 
00075 #endif

Generated on Wed Mar 21 10:32:50 2007 for QtOctave by  doxygen 1.4.7