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 #define ICON_PATH "./" 00040 #define HELP_PATH "/usr/local/share/qtoctave/octave_doc/octave.html" 00041 #define CONFIG_PATH "/usr/local/share/qtoctave/" 00042 00043 #include <QString> 00044 #include <QMap> 00045 00046 /**Gets config of parameter. 00047 * @param parameter Parameter name. 00048 * @return A QString with parameter value. 00049 */ 00050 const QString get_config(char *parameter); 00051 /**Sets config of parameter. 00052 * @param configuration Add a parameter with value. QMap key is parameter name. QMap value is parameter value. 00053 */ 00054 void set_config(QMap<QString,QString> configuration); 00055 00056 #endif