Macros | Functions | Variables
wizard.cpp File Reference
#include "wizard.h"
#include "input.h"
#include "doxywizard.h"
#include <math.h>
#include <QGridLayout>
#include <QImage>
#include <QLabel>
#include <QHBoxLayout>
#include <QPushButton>
#include <QPixmap>
#include <QPainter>
#include <QMouseEvent>
#include <QLineEdit>
#include <QCheckBox>
#include <QFileInfo>
#include <QFileDialog>
#include <QButtonGroup>
#include <QGroupBox>
#include <QRadioButton>
#include <QTreeWidget>
#include <QStackedWidget>
#include <qdrawutil.h>

Go to the source code of this file.

Macros

#define STR_PROJECT_NAME   QString::fromLatin1("PROJECT_NAME")
 
#define STR_PROJECT_LOGO   QString::fromLatin1("PROJECT_LOGO")
 
#define STR_PROJECT_BRIEF   QString::fromLatin1("PROJECT_BRIEF")
 
#define STR_INPUT   QString::fromLatin1("INPUT")
 
#define STR_OUTPUT_DIRECTORY   QString::fromLatin1("OUTPUT_DIRECTORY")
 
#define STR_PROJECT_NUMBER   QString::fromLatin1("PROJECT_NUMBER")
 
#define STR_RECURSIVE   QString::fromLatin1("RECURSIVE")
 
#define STR_OPTIMIZE_OUTPUT_FOR_C   QString::fromLatin1("OPTIMIZE_OUTPUT_FOR_C")
 
#define STR_OPTIMIZE_OUTPUT_JAVA   QString::fromLatin1("OPTIMIZE_OUTPUT_JAVA")
 
#define STR_OPTIMIZE_FOR_FORTRAN   QString::fromLatin1("OPTIMIZE_FOR_FORTRAN")
 
#define STR_OPTIMIZE_OUTPUT_VHDL   QString::fromLatin1("OPTIMIZE_OUTPUT_VHDL")
 
#define STR_CPP_CLI_SUPPORT   QString::fromLatin1("CPP_CLI_SUPPORT")
 
#define STR_HIDE_SCOPE_NAMES   QString::fromLatin1("HIDE_SCOPE_NAMES")
 
#define STR_EXTRACT_ALL   QString::fromLatin1("EXTRACT_ALL")
 
#define STR_SOURCE_BROWSER   QString::fromLatin1("SOURCE_BROWSER")
 
#define STR_GENERATE_HTML   QString::fromLatin1("GENERATE_HTML")
 
#define STR_GENERATE_LATEX   QString::fromLatin1("GENERATE_LATEX")
 
#define STR_GENERATE_MAN   QString::fromLatin1("GENERATE_MAN")
 
#define STR_GENERATE_RTF   QString::fromLatin1("GENERATE_RTF")
 
#define STR_GENERATE_XML   QString::fromLatin1("GENERATE_XML")
 
#define STR_GENERATE_HTMLHELP   QString::fromLatin1("GENERATE_HTMLHELP")
 
#define STR_GENERATE_TREEVIEW   QString::fromLatin1("GENERATE_TREEVIEW")
 
#define STR_USE_PDFLATEX   QString::fromLatin1("USE_PDFLATEX")
 
#define STR_PDF_HYPERLINKS   QString::fromLatin1("PDF_HYPERLINKS")
 
#define STR_SEARCHENGINE   QString::fromLatin1("SEARCHENGINE")
 
#define STR_HAVE_DOT   QString::fromLatin1("HAVE_DOT")
 
#define STR_CLASS_DIAGRAMS   QString::fromLatin1("CLASS_DIAGRAMS")
 
#define STR_CLASS_GRAPH   QString::fromLatin1("CLASS_GRAPH")
 
#define STR_COLLABORATION_GRAPH   QString::fromLatin1("COLLABORATION_GRAPH")
 
#define STR_GRAPHICAL_HIERARCHY   QString::fromLatin1("GRAPHICAL_HIERARCHY")
 
#define STR_INCLUDE_GRAPH   QString::fromLatin1("INCLUDE_GRAPH")
 
#define STR_INCLUDED_BY_GRAPH   QString::fromLatin1("INCLUDED_BY_GRAPH")
 
#define STR_CALL_GRAPH   QString::fromLatin1("CALL_GRAPH")
 
#define STR_CALLER_GRAPH   QString::fromLatin1("CALLER_GRAPH")
 
#define STR_HTML_COLORSTYLE_HUE   QString::fromLatin1("HTML_COLORSTYLE_HUE")
 
#define STR_HTML_COLORSTYLE_SAT   QString::fromLatin1("HTML_COLORSTYLE_SAT")
 
#define STR_HTML_COLORSTYLE_GAMMA   QString::fromLatin1("HTML_COLORSTYLE_GAMMA")
 

Functions

static bool stringVariantToBool (const QVariant &v)
 
static bool getBoolOption (const QHash< QString, Input * > &model, const QString &name)
 
static int getIntOption (const QHash< QString, Input * > &model, const QString &name)
 
static QString getStringOption (const QHash< QString, Input * > &model, const QString &name)
 
static void updateBoolOption (const QHash< QString, Input * > &model, const QString &name, bool bNew)
 
static void updateIntOption (const QHash< QString, Input * > &model, const QString &name, int iNew)
 
static void updateStringOption (const QHash< QString, Input * > &model, const QString &name, const QString &s)
 
void hsl2rgb (double h, double s, double l, double *pRed, double *pGreen, double *pBlue)
 

Variables

static bool g_optimizeMapping [6][6]
 
static QString g_optimizeOptionNames [6]
 

Macro Definition Documentation

#define STR_CALL_GRAPH   QString::fromLatin1("CALL_GRAPH")

Definition at line 59 of file wizard.cpp.

#define STR_CALLER_GRAPH   QString::fromLatin1("CALLER_GRAPH")

Definition at line 60 of file wizard.cpp.

#define STR_CLASS_DIAGRAMS   QString::fromLatin1("CLASS_DIAGRAMS")

Definition at line 53 of file wizard.cpp.

#define STR_CLASS_GRAPH   QString::fromLatin1("CLASS_GRAPH")

Definition at line 54 of file wizard.cpp.

#define STR_COLLABORATION_GRAPH   QString::fromLatin1("COLLABORATION_GRAPH")

Definition at line 55 of file wizard.cpp.

#define STR_CPP_CLI_SUPPORT   QString::fromLatin1("CPP_CLI_SUPPORT")

Definition at line 38 of file wizard.cpp.

#define STR_EXTRACT_ALL   QString::fromLatin1("EXTRACT_ALL")

Definition at line 40 of file wizard.cpp.

#define STR_GENERATE_HTML   QString::fromLatin1("GENERATE_HTML")

Definition at line 42 of file wizard.cpp.

#define STR_GENERATE_HTMLHELP   QString::fromLatin1("GENERATE_HTMLHELP")

Definition at line 47 of file wizard.cpp.

#define STR_GENERATE_LATEX   QString::fromLatin1("GENERATE_LATEX")

Definition at line 43 of file wizard.cpp.

#define STR_GENERATE_MAN   QString::fromLatin1("GENERATE_MAN")

Definition at line 44 of file wizard.cpp.

#define STR_GENERATE_RTF   QString::fromLatin1("GENERATE_RTF")

Definition at line 45 of file wizard.cpp.

#define STR_GENERATE_TREEVIEW   QString::fromLatin1("GENERATE_TREEVIEW")

Definition at line 48 of file wizard.cpp.

#define STR_GENERATE_XML   QString::fromLatin1("GENERATE_XML")

Definition at line 46 of file wizard.cpp.

#define STR_GRAPHICAL_HIERARCHY   QString::fromLatin1("GRAPHICAL_HIERARCHY")

Definition at line 56 of file wizard.cpp.

#define STR_HAVE_DOT   QString::fromLatin1("HAVE_DOT")

Definition at line 52 of file wizard.cpp.

#define STR_HIDE_SCOPE_NAMES   QString::fromLatin1("HIDE_SCOPE_NAMES")

Definition at line 39 of file wizard.cpp.

#define STR_HTML_COLORSTYLE_GAMMA   QString::fromLatin1("HTML_COLORSTYLE_GAMMA")

Definition at line 63 of file wizard.cpp.

#define STR_HTML_COLORSTYLE_HUE   QString::fromLatin1("HTML_COLORSTYLE_HUE")

Definition at line 61 of file wizard.cpp.

#define STR_HTML_COLORSTYLE_SAT   QString::fromLatin1("HTML_COLORSTYLE_SAT")

Definition at line 62 of file wizard.cpp.

#define STR_INCLUDE_GRAPH   QString::fromLatin1("INCLUDE_GRAPH")

Definition at line 57 of file wizard.cpp.

#define STR_INCLUDED_BY_GRAPH   QString::fromLatin1("INCLUDED_BY_GRAPH")

Definition at line 58 of file wizard.cpp.

#define STR_INPUT   QString::fromLatin1("INPUT")

Definition at line 30 of file wizard.cpp.

#define STR_OPTIMIZE_FOR_FORTRAN   QString::fromLatin1("OPTIMIZE_FOR_FORTRAN")

Definition at line 36 of file wizard.cpp.

#define STR_OPTIMIZE_OUTPUT_FOR_C   QString::fromLatin1("OPTIMIZE_OUTPUT_FOR_C")

Definition at line 34 of file wizard.cpp.

#define STR_OPTIMIZE_OUTPUT_JAVA   QString::fromLatin1("OPTIMIZE_OUTPUT_JAVA")

Definition at line 35 of file wizard.cpp.

#define STR_OPTIMIZE_OUTPUT_VHDL   QString::fromLatin1("OPTIMIZE_OUTPUT_VHDL")

Definition at line 37 of file wizard.cpp.

#define STR_OUTPUT_DIRECTORY   QString::fromLatin1("OUTPUT_DIRECTORY")

Definition at line 31 of file wizard.cpp.

#define STR_PDF_HYPERLINKS   QString::fromLatin1("PDF_HYPERLINKS")

Definition at line 50 of file wizard.cpp.

#define STR_PROJECT_BRIEF   QString::fromLatin1("PROJECT_BRIEF")

Definition at line 29 of file wizard.cpp.

#define STR_PROJECT_LOGO   QString::fromLatin1("PROJECT_LOGO")

Definition at line 28 of file wizard.cpp.

#define STR_PROJECT_NAME   QString::fromLatin1("PROJECT_NAME")

Definition at line 27 of file wizard.cpp.

#define STR_PROJECT_NUMBER   QString::fromLatin1("PROJECT_NUMBER")

Definition at line 32 of file wizard.cpp.

#define STR_RECURSIVE   QString::fromLatin1("RECURSIVE")

Definition at line 33 of file wizard.cpp.

#define STR_SEARCHENGINE   QString::fromLatin1("SEARCHENGINE")

Definition at line 51 of file wizard.cpp.

#define STR_SOURCE_BROWSER   QString::fromLatin1("SOURCE_BROWSER")

Definition at line 41 of file wizard.cpp.

#define STR_USE_PDFLATEX   QString::fromLatin1("USE_PDFLATEX")

Definition at line 49 of file wizard.cpp.

Function Documentation

static bool getBoolOption ( const QHash< QString, Input * > &  model,
const QString name 
)
static

Definition at line 100 of file wizard.cpp.

102 {
103  Input *option = model[name];
104  Q_ASSERT(option!=0);
105  return stringVariantToBool(option->value());
106 }
static QCString name
Definition: declinfo.cpp:673
virtual QVariant & value()=0
Definition: model.py:1
Definition: input.h:9
static bool stringVariantToBool(const QVariant &v)
Definition: wizard.cpp:94
static int getIntOption ( const QHash< QString, Input * > &  model,
const QString name 
)
static

Definition at line 108 of file wizard.cpp.

110 {
111  Input *option = model[name];
112  Q_ASSERT(option!=0);
113  return option->value().toInt();
114 }
static QCString name
Definition: declinfo.cpp:673
virtual QVariant & value()=0
Definition: model.py:1
Definition: input.h:9
static QString getStringOption ( const QHash< QString, Input * > &  model,
const QString name 
)
static

Definition at line 116 of file wizard.cpp.

118 {
119  Input *option = model[name];
120  Q_ASSERT(option!=0);
121  return option->value().toString();
122 }
static QCString name
Definition: declinfo.cpp:673
virtual QVariant & value()=0
Definition: model.py:1
Definition: input.h:9
void hsl2rgb ( double  h,
double  s,
double  l,
double *  pRed,
double *  pGreen,
double *  pBlue 
)

Definition at line 211 of file wizard.cpp.

213 {
214  double v;
215  double r,g,b;
216 
217  r = l; // default to gray
218  g = l;
219  b = l;
220  v = (l <= 0.5) ? (l * (1.0 + s)) : (l + s - l * s);
221  if (v > 0)
222  {
223  double m;
224  double sv;
225  int sextant;
226  double fract, vsf, mid1, mid2;
227 
228  m = l + l - v;
229  sv = (v - m ) / v;
230  h *= 6.0;
231  sextant = (int)h;
232  fract = h - sextant;
233  vsf = v * sv * fract;
234  mid1 = m + vsf;
235  mid2 = v - vsf;
236  switch (sextant)
237  {
238  case 0:
239  r = v;
240  g = mid1;
241  b = m;
242  break;
243  case 1:
244  r = mid2;
245  g = v;
246  b = m;
247  break;
248  case 2:
249  r = m;
250  g = v;
251  b = mid1;
252  break;
253  case 3:
254  r = m;
255  g = mid2;
256  b = v;
257  break;
258  case 4:
259  r = mid1;
260  g = m;
261  b = v;
262  break;
263  case 5:
264  r = v;
265  g = m;
266  b = mid2;
267  break;
268  }
269  }
270  *pRed = r;
271  *pGreen = g;
272  *pBlue = b;
273 }
static constexpr double g
Definition: Units.h:144
static QStrList * l
Definition: config.cpp:1044
static bool * b
Definition: config.cpp:1043
static QCString * s
Definition: config.cpp:1042
static bool stringVariantToBool ( const QVariant &  v)
static

Definition at line 94 of file wizard.cpp.

95 {
96  QString s = v.toString().toLower();
97  return s==QString::fromLatin1("yes") || s==QString::fromLatin1("true") || s==QString::fromLatin1("1");
98 }
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition: qstring.h:350
static QString fromLatin1(const char *, int len=-1)
Definition: qstring.cpp:14539
static QCString * s
Definition: config.cpp:1042
static void updateBoolOption ( const QHash< QString, Input * > &  model,
const QString name,
bool  bNew 
)
static

Definition at line 124 of file wizard.cpp.

126 {
127  Input *option = model[name];
128  Q_ASSERT(option!=0);
129  bool bOld = stringVariantToBool(option->value());
130  if (bOld!=bNew)
131  {
132  option->value()=QString::fromLatin1(bNew ? "true" : "false");
133  option->update();
134  }
135 }
static QCString name
Definition: declinfo.cpp:673
virtual void update()=0
virtual QVariant & value()=0
Definition: model.py:1
static QString fromLatin1(const char *, int len=-1)
Definition: qstring.cpp:14539
Definition: input.h:9
static bool stringVariantToBool(const QVariant &v)
Definition: wizard.cpp:94
static void updateIntOption ( const QHash< QString, Input * > &  model,
const QString name,
int  iNew 
)
static

Definition at line 137 of file wizard.cpp.

139 {
140  Input *option = model[name];
141  Q_ASSERT(option!=0);
142  int iOld = option->value().toInt();
143  if (iOld!=iNew)
144  {
145  option->value()=QString::fromLatin1("%1").arg(iNew);
146  option->update();
147  }
148 }
static QCString name
Definition: declinfo.cpp:673
virtual void update()=0
virtual QVariant & value()=0
Definition: model.py:1
static QString fromLatin1(const char *, int len=-1)
Definition: qstring.cpp:14539
QString arg(long a, int fieldwidth=0, int base=10) const
Definition: qstring.cpp:12593
Definition: input.h:9
static void updateStringOption ( const QHash< QString, Input * > &  model,
const QString name,
const QString s 
)
static

Definition at line 151 of file wizard.cpp.

153 {
154  Input *option = model[name];
155  Q_ASSERT(option!=0);
156  if (option->value().toString()!=s)
157  {
158  option->value() = s;
159  option->update();
160  }
161 }
static QCString name
Definition: declinfo.cpp:673
virtual void update()=0
virtual QVariant & value()=0
Definition: model.py:1
Definition: input.h:9
static QCString * s
Definition: config.cpp:1042

Variable Documentation

bool g_optimizeMapping[6][6]
static
Initial value:
=
{
{ false,false,false,false,false,false },
{ false,false,false,false,true, false },
{ false,true, false,false,false,false },
{ true, false,false,false,false,true },
{ false,false,true, false,false,false },
{ false,false,false,true, false,false },
}

Definition at line 65 of file wizard.cpp.

QString g_optimizeOptionNames[6]
static
Initial value:
=
{
}
#define STR_OPTIMIZE_OUTPUT_JAVA
Definition: wizard.cpp:35
#define STR_OPTIMIZE_FOR_FORTRAN
Definition: wizard.cpp:36
#define STR_CPP_CLI_SUPPORT
Definition: wizard.cpp:38
#define STR_OPTIMIZE_OUTPUT_FOR_C
Definition: wizard.cpp:34
#define STR_OPTIMIZE_OUTPUT_VHDL
Definition: wizard.cpp:37
#define STR_HIDE_SCOPE_NAMES
Definition: wizard.cpp:39

Definition at line 82 of file wizard.cpp.