Public Member Functions | Private Slots | Private Attributes | List of all members
Step3 Class Reference

#include <wizard.h>

Inheritance diagram for Step3:

Public Member Functions

 Step3 (Wizard *parent, const QHash< QString, Input * > &modelData)
 
void init ()
 

Private Slots

void setHtmlEnabled (bool)
 
void setLatexEnabled (bool)
 
void setManEnabled (int)
 
void setRtfEnabled (int)
 
void setXmlEnabled (int)
 
void setSearchEnabled (int)
 
void setHtmlOptions (int)
 
void setLatexOptions (int)
 
void tuneColorDialog ()
 

Private Attributes

QGroupBox * m_texOptions
 
QButtonGroup * m_texOptionsGroup
 
QGroupBox * m_htmlOptions
 
QButtonGroup * m_htmlOptionsGroup
 
QCheckBox * m_htmlEnabled
 
QCheckBox * m_latexEnabled
 
QCheckBox * m_manEnabled
 
QCheckBox * m_rtfEnabled
 
QCheckBox * m_xmlEnabled
 
QCheckBox * m_searchEnabled
 
QPushButton * m_tuneColor
 
Wizardm_wizard
 
const QHash< QString, Input * > & m_modelData
 

Detailed Description

Definition at line 158 of file wizard.h.

Constructor & Destructor Documentation

Step3::Step3 ( Wizard parent,
const QHash< QString, Input * > &  modelData 
)

Definition at line 878 of file wizard.cpp.

879  : m_wizard(wizard), m_modelData(modelData)
880 {
881  QVBoxLayout *vbox = 0;
882  QRadioButton *r = 0;
883 
884  QGridLayout *gbox = new QGridLayout( this );
885  gbox->addWidget(new QLabel(tr("Select the output format(s) to generate")),0,0);
886  {
887  m_htmlOptions = new QGroupBox(tr("HTML"));
888  m_htmlOptions->setCheckable(true);
889  // GENERATE_HTML
890  m_htmlOptionsGroup = new QButtonGroup(m_htmlOptions);
891  QRadioButton *r = new QRadioButton(tr("plain HTML"));
892  r->setChecked(true);
893  m_htmlOptionsGroup->addButton(r, 0);
894  vbox = new QVBoxLayout;
895  vbox->addWidget(r);
896  r = new QRadioButton(tr("with navigation panel"));
897  m_htmlOptionsGroup->addButton(r, 1);
898  // GENERATE_TREEVIEW
899  vbox->addWidget(r);
900  r = new QRadioButton(tr("prepare for compressed HTML (.chm)"));
901  m_htmlOptionsGroup->addButton(r, 2);
902  // GENERATE_HTMLHELP
903  vbox->addWidget(r);
904  m_searchEnabled=new QCheckBox(tr("With search function"));
905  vbox->addWidget(m_searchEnabled);
906  // SEARCH_ENGINE
907  QHBoxLayout *hbox = new QHBoxLayout;
908  m_tuneColor=new QPushButton(tr("Change color..."));
909  hbox->addWidget(m_tuneColor);
910  hbox->addStretch(1);
911  vbox->addLayout(hbox);
912  m_htmlOptions->setLayout(vbox);
913  m_htmlOptions->setChecked(true);
914  }
915  gbox->addWidget(m_htmlOptions,1,0);
916 
917  {
918  m_texOptions = new QGroupBox(tr("LaTeX"));
919  m_texOptions->setCheckable(true);
920  // GENERATE_LATEX
921  m_texOptionsGroup = new QButtonGroup(m_texOptions);
922  vbox = new QVBoxLayout;
923  r = new QRadioButton(tr("as intermediate format for hyperlinked PDF"));
924  m_texOptionsGroup->addButton(r, 0);
925  // PDF_HYPERLINKS = YES
926  r->setChecked(true);
927  vbox->addWidget(r);
928  r = new QRadioButton(tr("as intermediate format for PDF"));
929  m_texOptionsGroup->addButton(r, 1);
930  // PDF_HYPERLINKS = NO, USE_PDFLATEX = YES
931  vbox->addWidget(r);
932  r = new QRadioButton(tr("as intermediate format for PostScript"));
933  m_texOptionsGroup->addButton(r, 2);
934  // USE_PDFLATEX = NO
935  vbox->addWidget(r);
936  vbox->addStretch(1);
937  m_texOptions->setLayout(vbox);
938  m_texOptions->setChecked(true);
939  }
940  gbox->addWidget(m_texOptions,2,0);
941 
942  m_manEnabled=new QCheckBox(tr("Man pages"));
943  // GENERATE_MAN
944  m_rtfEnabled=new QCheckBox(tr("Rich Text Format (RTF)"));
945  // GENERATE_RTF
946  m_xmlEnabled=new QCheckBox(tr("XML"));
947  // GENERATE_XML
948  gbox->addWidget(m_manEnabled,3,0);
949  gbox->addWidget(m_rtfEnabled,4,0);
950  gbox->addWidget(m_xmlEnabled,5,0);
951 
952  gbox->setRowStretch(6,1);
953  connect(m_htmlOptions,SIGNAL(toggled(bool)),SLOT(setHtmlEnabled(bool)));
954  connect(m_texOptions,SIGNAL(toggled(bool)),SLOT(setLatexEnabled(bool)));
955  connect(m_manEnabled,SIGNAL(stateChanged(int)),SLOT(setManEnabled(int)));
956  connect(m_rtfEnabled,SIGNAL(stateChanged(int)),SLOT(setRtfEnabled(int)));
957  connect(m_xmlEnabled,SIGNAL(stateChanged(int)),SLOT(setXmlEnabled(int)));
958  connect(m_searchEnabled,SIGNAL(stateChanged(int)),SLOT(setSearchEnabled(int)));
959  connect(m_htmlOptionsGroup,SIGNAL(buttonClicked(int)),
960  SLOT(setHtmlOptions(int)));
961  connect(m_texOptionsGroup,SIGNAL(buttonClicked(int)),
962  SLOT(setLatexOptions(int)));
963  connect(m_tuneColor,SIGNAL(clicked()),SLOT(tuneColorDialog()));
964 }
QGroupBox * m_htmlOptions
Definition: wizard.h:180
QPushButton * m_tuneColor
Definition: wizard.h:188
void setHtmlEnabled(bool)
Definition: wizard.cpp:980
void setManEnabled(int)
Definition: wizard.cpp:990
void setXmlEnabled(int)
Definition: wizard.cpp:1000
void setSearchEnabled(int)
Definition: wizard.cpp:1005
QCheckBox * m_manEnabled
Definition: wizard.h:184
QGroupBox * m_texOptions
Definition: wizard.h:178
QButtonGroup * m_texOptionsGroup
Definition: wizard.h:179
QCheckBox * m_rtfEnabled
Definition: wizard.h:185
def connect(nxgraph, k1, k2, p1=0, p2=0, kwds)
Definition: graph.py:30
QCheckBox * m_searchEnabled
Definition: wizard.h:187
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
QButtonGroup * m_htmlOptionsGroup
Definition: wizard.h:181
void setRtfEnabled(int)
Definition: wizard.cpp:995
void setLatexOptions(int)
Definition: wizard.cpp:1029
void tuneColorDialog()
Definition: wizard.cpp:966
Wizard * m_wizard
Definition: wizard.h:189
void setLatexEnabled(bool)
Definition: wizard.cpp:985
void setHtmlOptions(int)
Definition: wizard.cpp:1010
QCheckBox * m_xmlEnabled
Definition: wizard.h:186

Member Function Documentation

void Step3::init ( )

Definition at line 1048 of file wizard.cpp.

1049 {
1057  {
1058  m_htmlOptionsGroup->button(2)->setChecked(true); // compiled help
1059  }
1061  {
1062  m_htmlOptionsGroup->button(1)->setChecked(true); // navigation tree
1063  }
1064  else
1065  {
1066  m_htmlOptionsGroup->button(0)->setChecked(true); // plain HTML
1067  }
1069  {
1070  m_texOptionsGroup->button(2)->setChecked(true); // PostScript
1071  }
1073  {
1074  m_texOptionsGroup->button(1)->setChecked(true); // Plain PDF
1075  }
1076  else
1077  {
1078  m_texOptionsGroup->button(0)->setChecked(true); // PDF with hyperlinks
1079  }
1080 }
#define STR_GENERATE_XML
Definition: wizard.cpp:46
QGroupBox * m_htmlOptions
Definition: wizard.h:180
#define STR_GENERATE_RTF
Definition: wizard.cpp:45
#define STR_SEARCHENGINE
Definition: wizard.cpp:51
#define STR_GENERATE_MAN
Definition: wizard.cpp:44
#define STR_GENERATE_LATEX
Definition: wizard.cpp:43
QCheckBox * m_manEnabled
Definition: wizard.h:184
#define STR_USE_PDFLATEX
Definition: wizard.cpp:49
QGroupBox * m_texOptions
Definition: wizard.h:178
QButtonGroup * m_texOptionsGroup
Definition: wizard.h:179
QCheckBox * m_rtfEnabled
Definition: wizard.h:185
QCheckBox * m_searchEnabled
Definition: wizard.h:187
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
QButtonGroup * m_htmlOptionsGroup
Definition: wizard.h:181
#define STR_GENERATE_HTML
Definition: wizard.cpp:42
QCheckBox * m_xmlEnabled
Definition: wizard.h:186
#define STR_GENERATE_HTMLHELP
Definition: wizard.cpp:47
#define STR_GENERATE_TREEVIEW
Definition: wizard.cpp:48
static bool getBoolOption(const QHash< QString, Input * > &model, const QString &name)
Definition: wizard.cpp:100
#define STR_PDF_HYPERLINKS
Definition: wizard.cpp:50
void Step3::setHtmlEnabled ( bool  b)
privateslot

Definition at line 980 of file wizard.cpp.

981 {
983 }
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
#define STR_GENERATE_HTML
Definition: wizard.cpp:42
static bool * b
Definition: config.cpp:1043
void Step3::setHtmlOptions ( int  id)
privateslot

Definition at line 1010 of file wizard.cpp.

1011 {
1012  if (id==0) // plain HTML
1013  {
1016  }
1017  else if (id==1) // with navigation tree
1018  {
1021  }
1022  else if (id==2) // with compiled help
1023  {
1026  }
1027 }
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
#define STR_GENERATE_HTMLHELP
Definition: wizard.cpp:47
#define STR_GENERATE_TREEVIEW
Definition: wizard.cpp:48
void Step3::setLatexEnabled ( bool  b)
privateslot

Definition at line 985 of file wizard.cpp.

986 {
988 }
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_GENERATE_LATEX
Definition: wizard.cpp:43
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
static bool * b
Definition: config.cpp:1043
void Step3::setLatexOptions ( int  id)
privateslot

Definition at line 1029 of file wizard.cpp.

1030 {
1031  if (id==0) // hyperlinked PDF
1032  {
1035  }
1036  else if (id==1) // PDF
1037  {
1040  }
1041  else if (id==2) // PostScript
1042  {
1045  }
1046 }
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_USE_PDFLATEX
Definition: wizard.cpp:49
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
#define STR_PDF_HYPERLINKS
Definition: wizard.cpp:50
void Step3::setManEnabled ( int  state)
privateslot

Definition at line 990 of file wizard.cpp.

991 {
992  updateBoolOption(m_modelData,STR_GENERATE_MAN,state==Qt::Checked);
993 }
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_GENERATE_MAN
Definition: wizard.cpp:44
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
void Step3::setRtfEnabled ( int  state)
privateslot

Definition at line 995 of file wizard.cpp.

996 {
997  updateBoolOption(m_modelData,STR_GENERATE_RTF,state==Qt::Checked);
998 }
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_GENERATE_RTF
Definition: wizard.cpp:45
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
void Step3::setSearchEnabled ( int  state)
privateslot

Definition at line 1005 of file wizard.cpp.

1006 {
1007  updateBoolOption(m_modelData,STR_SEARCHENGINE,state==Qt::Checked);
1008 }
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_SEARCHENGINE
Definition: wizard.cpp:51
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
void Step3::setXmlEnabled ( int  state)
privateslot

Definition at line 1000 of file wizard.cpp.

1001 {
1002  updateBoolOption(m_modelData,STR_GENERATE_XML,state==Qt::Checked);
1003 }
#define STR_GENERATE_XML
Definition: wizard.cpp:46
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
void Step3::tuneColorDialog ( )
privateslot

Definition at line 966 of file wizard.cpp.

967 {
971  TuneColorDialog tuneColor(hue,sat,gam,this);
972  if (tuneColor.exec()==QDialog::Accepted)
973  {
975  updateIntOption(m_modelData,STR_HTML_COLORSTYLE_SAT,tuneColor.getSaturation());
977  }
978 }
#define STR_HTML_COLORSTYLE_HUE
Definition: wizard.cpp:61
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:190
static void updateIntOption(const QHash< QString, Input * > &model, const QString &name, int iNew)
Definition: wizard.cpp:137
#define STR_HTML_COLORSTYLE_SAT
Definition: wizard.cpp:62
#define STR_HTML_COLORSTYLE_GAMMA
Definition: wizard.cpp:63
static int getIntOption(const QHash< QString, Input * > &model, const QString &name)
Definition: wizard.cpp:108

Member Data Documentation

QCheckBox* Step3::m_htmlEnabled
private

Definition at line 182 of file wizard.h.

QGroupBox* Step3::m_htmlOptions
private

Definition at line 180 of file wizard.h.

QButtonGroup* Step3::m_htmlOptionsGroup
private

Definition at line 181 of file wizard.h.

QCheckBox* Step3::m_latexEnabled
private

Definition at line 183 of file wizard.h.

QCheckBox* Step3::m_manEnabled
private

Definition at line 184 of file wizard.h.

const QHash<QString,Input *>& Step3::m_modelData
private

Definition at line 190 of file wizard.h.

QCheckBox* Step3::m_rtfEnabled
private

Definition at line 185 of file wizard.h.

QCheckBox* Step3::m_searchEnabled
private

Definition at line 187 of file wizard.h.

QGroupBox* Step3::m_texOptions
private

Definition at line 178 of file wizard.h.

QButtonGroup* Step3::m_texOptionsGroup
private

Definition at line 179 of file wizard.h.

QPushButton* Step3::m_tuneColor
private

Definition at line 188 of file wizard.h.

Wizard* Step3::m_wizard
private

Definition at line 189 of file wizard.h.

QCheckBox* Step3::m_xmlEnabled
private

Definition at line 186 of file wizard.h.


The documentation for this class was generated from the following files: