"Fossies" - the Fresh Open Source Software Archive

Member "kydpdict-0.9.5/src/kydpconfig.h" (3 Nov 2007, 1627 Bytes) of package /linux/privat/old/kydpdict-0.9.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "kydpconfig.h" see the Fossies "Dox" file reference documentation.

    1 /***************************************************************************
    2  *                                                                         *
    3  *   This program is free software; you can redistribute it and/or modify  *
    4  *   it under the terms of the GNU General Public License as published by  *
    5  *   the Free Software Foundation; either version 2 of the License, or     *
    6  *   (at your option) any later version.                                   *
    7  *                                                                         *
    8  ***************************************************************************/
    9  
   10 #ifndef KYDPCONFIG_H
   11 #define KYDPCONFIG_H
   12 
   13 #include <qfont.h>
   14 
   15 enum { LANG_ENGLISH, LANG_DEUTSCH, LANG_LAST };
   16 enum { ENGINE_SAP, ENGINE_PWN, ENGINE_PWN2004, ENGINE_YDP, ENGINE_LAST };
   17 
   18 class kydpConfig
   19 {
   20 public:
   21     kydpConfig();
   22     ~kydpConfig();
   23     
   24     QString topPath;
   25     QString cdPath, cd2Path;
   26     QString player;
   27     QString kFontKolor1;
   28     QString kFontKolor2;
   29     QString kFontKolor3;
   30     QString kFontKolor4;
   31     QString kBckgrndPix;
   32     QString kBckgrndKol;
   33     QString indexFName;
   34     QString dataFName;
   35     QFont   fontTransFont;
   36     bool    toPolish;
   37     bool    toolBarVisible;
   38     bool    unicodeFont;
   39     int language;
   40     int engine;
   41     int kGeometryX, kGeometryY, kGeometryW, kGeometryH;
   42     bool kMaximized;
   43     int spH1, spH2, spV1, spV2;
   44     bool clipTracking, italicFont, toolTips, autoPlay, ignoreOwnSelection, dock, setFocusOnSelf, startHidden;
   45     int fuzzyDistance;
   46 
   47     void load(void);
   48     void save(void);
   49     void setDefaultConfiguration(void);
   50 
   51 private:
   52     QString cfgname;
   53 
   54     bool readYDPConfig(void);
   55     QString fixColour(const QString);
   56 };
   57 
   58 #endif // KYDPCONFIG_H