"Fossies" - the Fresh Open Source Software Archive

Member "tipograf-0.5/src/tipografImpl.h" (13 Dec 2003, 3924 Bytes) of package /linux/privat/old/tipograf-0.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.

    1 #ifndef TIPOGRAFIMPL_H
    2 #define TIPOGRAFIMPL_H
    3 
    4 #include <qstringlist.h>
    5 // This is one of the reasons why Qt 3 is needed.
    6 #include <qprocess.h>
    7 #include <qstring.h>
    8 #include <qtranslator.h>
    9 #include <qapplication.h>
   10 
   11 #include "tipograf.h"
   12 #include "init.h"
   13 
   14 // Defined in main.cc.
   15 extern QApplication * appTipo;
   16 
   17 /** Main dialog class.
   18  */
   19 class tipografImpl : public dlgTipograf
   20 { 
   21   Q_OBJECT
   22 
   23 public:
   24   // Implemented in tipografImplConstructor.cc.
   25   tipografImpl(tipoInit * tiInitVals,
   26            QWidget* parent = 0, const char* name = 0,
   27            bool modal = FALSE, WFlags fl = 0);
   28   ~tipografImpl();
   29 
   30 public slots:
   31   // Main buttons at the bottom of the dialog.
   32   void ok();
   33   void preview();
   34   void readView();
   35   void readGen();
   36   void exit();
   37   void help();
   38   // Input / output tab.
   39   void input();
   40   void output();
   41   void outputTo();
   42   void printer();
   43   void selfDefinedStyle();
   44   void type();
   45   void readType();
   46   void simpleOptions();
   47   // Title tab.
   48   void selfDefinedHeaders();
   49   // Layout tab.
   50   void order();
   51   // Processing tab.
   52   int  commandLine();
   53   // See section private for orderedOptions().
   54   // Tipo tab.
   55   void guiStyle();
   56   void tipoLanguage();
   57   void pathA2ps();
   58   void pathGv();
   59   void configFile();
   60   void loadConfig(); // implemented in tipografImplConfig.cc
   61   void saveConfig(); // implemented in tipografImplConfig.cc
   62   void loadTipo();   // implemented in tipografImplConfig.cc
   63   void saveTipo();   // implemented in tipografImplConfig.cc
   64   void about();
   65 
   66 private:
   67   // StdStyles
   68   QStringList slStdStyleOpt;
   69   QStringList slStdStyleTxt;
   70 
   71   // OutputTo
   72   QStringList slOutputToTxt;
   73   QString sOutputToFileOpt;
   74 
   75   // Printer
   76   QStringList slPrinterOpt;
   77   QStringList slPrinterTxt;
   78   QStringList slPrinterDesc;
   79 
   80   // Type
   81   QString sTypeOpt;
   82 
   83   // SimpleOptionLineNumbers
   84   QString sSimpleOptionLineNumbersOpt;
   85 
   86   // SimpleOptionColored
   87   QString sSimpleOptionColoredOpt;
   88 
   89   // Format
   90   QStringList slFormatOpt;
   91   QStringList slFormatTxt;
   92 
   93   // Orientation
   94   QStringList slOrientationOpt;
   95   QStringList slOrientationTxt;
   96 
   97   // Direction
   98   QStringList slDirectionOpt;
   99   QStringList slDirectionTxt;
  100 
  101   // Rows
  102   QString sRowsOpt;
  103 
  104   // Columns
  105   QString sColumnsOpt;
  106 
  107   // Margin
  108   QString sMarginOpt;
  109 
  110   // Duplex
  111   QStringList slDuplexOpt;
  112   QStringList slDuplexTxt;
  113 
  114   // VirtualBorder
  115   QString sVirtualBorderOpt;
  116 
  117   // PSTitle
  118   QString sPSTitleOpt;
  119 
  120   // Headings
  121   QString sHeadLeftOpt;
  122   QString sHeadCenterOpt;
  123   QString sHeadRightOpt;
  124   QString sFootLeftOpt;
  125   QString sFootCenterOpt;
  126   QString sFootRightOpt;
  127   QString sWatermarkOpt;
  128 
  129   // Order
  130   QStringList slOrderTxt;
  131   int iOrder;
  132 
  133   // FontSize
  134   QString sFontSizeOpt;
  135 
  136   // RowsPerPage
  137   QString sRowsPerPageOpt;
  138 
  139   // CharsPerRow
  140   QString sCharsPerRowOpt;
  141 
  142   // ColorLevel
  143   QStringList slColorLevelOpt;
  144   QStringList slColorLevelTxt;
  145 
  146   // Comments
  147   QStringList slCommentsOpt;
  148   QStringList slCommentsTxt;
  149 
  150   // Language
  151   QStringList slLanguageOpt;
  152   QStringList slLanguageTxt;
  153 
  154   // Unprintables
  155   QStringList slUnprintablesTxt;
  156   QStringList slUnprintablesOpt;
  157 
  158   // PostScript
  159   QStringList slPostScriptTxt;
  160   QStringList slPostScriptOpt;
  161 
  162   // TabSize
  163   QString sTabSizeOpt;
  164 
  165   // LineNumbers
  166   QString sLineNumbersOpt;
  167 
  168   // TOC
  169   QString sTOCOpt;
  170 
  171   // Truncate
  172   QString sTruncateOpt;
  173 
  174   // Encoding
  175   QStringList slEncodingTxt;
  176   QStringList slEncodingOpt;
  177 
  178   // Delegate
  179   QString sDelegateYesOpt;
  180   QString sDelegateNoOpt;
  181 
  182   // Prefeed
  183   QString sPrefeedOpt;
  184 
  185   // Copies
  186   QString sCopiesOpt;
  187 
  188   // Processes
  189   QProcess * procType;
  190   QProcess * procGen;
  191   QProcess * procView;
  192   QString sTmpFileName;
  193 
  194   // CommandLine
  195   QStringList slCommandLine;
  196 
  197   // Tipo language
  198   QStringList slTipoLanguageTxt;
  199 
  200   // GUI style
  201   QStringList slGUIStyleTxt;
  202   QStringList slGUIStyleOpt;
  203 
  204   // StartUp
  205   bool finishedStartUp;
  206 
  207   // Internal functions (processing tab).
  208   QString orderedOptions();
  209 };
  210 
  211 #endif // TIPOGRAFIMPL_H