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

#include <wizard.h>

Inheritance diagram for Step4:

Public Member Functions

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

Private Slots

void diagramModeChanged (int)
 
void setClassGraphEnabled (int state)
 
void setCollaborationGraphEnabled (int state)
 
void setGraphicalHierarchyEnabled (int state)
 
void setIncludeGraphEnabled (int state)
 
void setIncludedByGraphEnabled (int state)
 
void setCallGraphEnabled (int state)
 
void setCallerGraphEnabled (int state)
 

Private Attributes

QGroupBox * m_diagramMode
 
QButtonGroup * m_diagramModeGroup
 
QGroupBox * m_dotGroup
 
QCheckBox * m_dotClass
 
QCheckBox * m_dotCollaboration
 
QCheckBox * m_dotInclude
 
QCheckBox * m_dotIncludedBy
 
QCheckBox * m_dotInheritance
 
QCheckBox * m_dotCall
 
QCheckBox * m_dotCaller
 
Wizardm_wizard
 
const QHash< QString, Input * > & m_modelData
 

Detailed Description

Definition at line 193 of file wizard.h.

Constructor & Destructor Documentation

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

Definition at line 1084 of file wizard.cpp.

1085  : m_wizard(wizard), m_modelData(modelData)
1086 {
1087  m_diagramModeGroup = new QButtonGroup(this);
1088  QGridLayout *gbox = new QGridLayout( this );
1089  gbox->addWidget(new QLabel(tr("Diagrams to generate")),0,0);
1090 
1091  QRadioButton *rb = new QRadioButton(tr("No diagrams"));
1092  m_diagramModeGroup->addButton(rb, 0);
1093  gbox->addWidget(rb,1,0);
1094  // CLASS_DIAGRAMS = NO, HAVE_DOT = NO
1095  rb->setChecked(true);
1096  rb = new QRadioButton(tr("Use built-in class diagram generator"));
1097  m_diagramModeGroup->addButton(rb, 1);
1098  // CLASS_DIAGRAMS = YES, HAVE_DOT = NO
1099  gbox->addWidget(rb,2,0);
1100  rb = new QRadioButton(tr("Use dot tool from the GraphViz package"));
1101  m_diagramModeGroup->addButton(rb, 2);
1102  gbox->addWidget(rb,3,0);
1103  // CLASS_DIAGRAMS = NO, HAVE_DOT = YES
1104 
1105  m_dotGroup = new QGroupBox(tr("Dot graphs to generate"));
1106  QVBoxLayout *vbox = new QVBoxLayout;
1107  m_dotClass=new QCheckBox(tr("Class diagrams"));
1108  // CLASS_GRAPH
1109  m_dotCollaboration=new QCheckBox(tr("Collaboration diagrams"));
1110  // COLLABORATION_GRAPH
1111  m_dotInheritance=new QCheckBox(tr("Overall Class hierarchy"));
1112  // GRAPHICAL_HIERARCHY
1113  m_dotInclude=new QCheckBox(tr("Include dependency graphs"));
1114  // INCLUDE_GRAPH
1115  m_dotIncludedBy=new QCheckBox(tr("Included by dependency graphs"));
1116  // INCLUDED_BY_GRAPH
1117  m_dotCall=new QCheckBox(tr("Call graphs"));
1118  // CALL_GRAPH
1119  m_dotCaller=new QCheckBox(tr("Called by graphs"));
1120  // CALLER_GRAPH
1121  vbox->addWidget(m_dotClass);
1122  vbox->addWidget(m_dotCollaboration);
1123  vbox->addWidget(m_dotInheritance);
1124  vbox->addWidget(m_dotInclude);
1125  vbox->addWidget(m_dotIncludedBy);
1126  vbox->addWidget(m_dotCall);
1127  vbox->addWidget(m_dotCaller);
1128  vbox->addStretch(1);
1129  m_dotGroup->setLayout(vbox);
1130  m_dotClass->setChecked(true);
1131  m_dotGroup->setEnabled(false);
1132  gbox->addWidget(m_dotGroup,4,0);
1133 
1134  m_dotInclude->setChecked(true);
1135  m_dotCollaboration->setChecked(true);
1136  gbox->setRowStretch(5,1);
1137 
1138  connect(m_diagramModeGroup,SIGNAL(buttonClicked(int)),
1139  this,SLOT(diagramModeChanged(int)));
1140  connect(m_dotClass,SIGNAL(stateChanged(int)),
1141  this,SLOT(setClassGraphEnabled(int)));
1142  connect(m_dotCollaboration,SIGNAL(stateChanged(int)),
1143  this,SLOT(setCollaborationGraphEnabled(int)));
1144  connect(m_dotInheritance,SIGNAL(stateChanged(int)),
1145  this,SLOT(setGraphicalHierarchyEnabled(int)));
1146  connect(m_dotInclude,SIGNAL(stateChanged(int)),
1147  this,SLOT(setIncludeGraphEnabled(int)));
1148  connect(m_dotIncludedBy,SIGNAL(stateChanged(int)),
1149  this,SLOT(setIncludedByGraphEnabled(int)));
1150  connect(m_dotCall,SIGNAL(stateChanged(int)),
1151  this,SLOT(setCallGraphEnabled(int)));
1152  connect(m_dotCaller,SIGNAL(stateChanged(int)),
1153  this,SLOT(setCallerGraphEnabled(int)));
1154 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
QGroupBox * m_dotGroup
Definition: wizard.h:214
QCheckBox * m_dotCall
Definition: wizard.h:220
void setIncludedByGraphEnabled(int state)
Definition: wizard.cpp:1196
void setCallerGraphEnabled(int state)
Definition: wizard.cpp:1206
void diagramModeChanged(int)
Definition: wizard.cpp:1156
QCheckBox * m_dotCaller
Definition: wizard.h:221
QCheckBox * m_dotInheritance
Definition: wizard.h:219
QButtonGroup * m_diagramModeGroup
Definition: wizard.h:213
def connect(nxgraph, k1, k2, p1=0, p2=0, kwds)
Definition: graph.py:30
QCheckBox * m_dotClass
Definition: wizard.h:215
void setIncludeGraphEnabled(int state)
Definition: wizard.cpp:1191
void setClassGraphEnabled(int state)
Definition: wizard.cpp:1176
QCheckBox * m_dotInclude
Definition: wizard.h:217
QCheckBox * m_dotCollaboration
Definition: wizard.h:216
Wizard * m_wizard
Definition: wizard.h:222
void setCollaborationGraphEnabled(int state)
Definition: wizard.cpp:1181
QCheckBox * m_dotIncludedBy
Definition: wizard.h:218
void setGraphicalHierarchyEnabled(int state)
Definition: wizard.cpp:1186
void setCallGraphEnabled(int state)
Definition: wizard.cpp:1201

Member Function Documentation

void Step4::diagramModeChanged ( int  id)
privateslot

Definition at line 1156 of file wizard.cpp.

1157 {
1158  if (id==0) // no diagrams
1159  {
1162  }
1163  else if (id==1) // builtin diagrams
1164  {
1167  }
1168  else if (id==2) // dot diagrams
1169  {
1172  }
1173  m_dotGroup->setEnabled(id==2);
1174 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
QGroupBox * m_dotGroup
Definition: wizard.h:214
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_CLASS_DIAGRAMS
Definition: wizard.cpp:53
#define STR_HAVE_DOT
Definition: wizard.cpp:52
void Step4::init ( )

Definition at line 1211 of file wizard.cpp.

1212 {
1214  {
1215  m_diagramModeGroup->button(2)->setChecked(true); // Dot
1216  }
1218  {
1219  m_diagramModeGroup->button(1)->setChecked(true); // Builtin diagrams
1220  }
1221  else
1222  {
1223  m_diagramModeGroup->button(0)->setChecked(true); // no diagrams
1224  }
1232 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
#define STR_INCLUDE_GRAPH
Definition: wizard.cpp:57
QCheckBox * m_dotCall
Definition: wizard.h:220
#define STR_CALLER_GRAPH
Definition: wizard.cpp:60
#define STR_COLLABORATION_GRAPH
Definition: wizard.cpp:55
QCheckBox * m_dotCaller
Definition: wizard.h:221
QCheckBox * m_dotInheritance
Definition: wizard.h:219
QButtonGroup * m_diagramModeGroup
Definition: wizard.h:213
QCheckBox * m_dotClass
Definition: wizard.h:215
#define STR_CLASS_DIAGRAMS
Definition: wizard.cpp:53
#define STR_INCLUDED_BY_GRAPH
Definition: wizard.cpp:58
#define STR_HAVE_DOT
Definition: wizard.cpp:52
#define STR_CLASS_GRAPH
Definition: wizard.cpp:54
#define STR_CALL_GRAPH
Definition: wizard.cpp:59
QCheckBox * m_dotInclude
Definition: wizard.h:217
QCheckBox * m_dotCollaboration
Definition: wizard.h:216
static bool getBoolOption(const QHash< QString, Input * > &model, const QString &name)
Definition: wizard.cpp:100
QCheckBox * m_dotIncludedBy
Definition: wizard.h:218
#define STR_GRAPHICAL_HIERARCHY
Definition: wizard.cpp:56
void Step4::setCallerGraphEnabled ( int  state)
privateslot

Definition at line 1206 of file wizard.cpp.

1207 {
1208  updateBoolOption(m_modelData,STR_CALLER_GRAPH,state==Qt::Checked);
1209 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
#define STR_CALLER_GRAPH
Definition: wizard.cpp:60
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
void Step4::setCallGraphEnabled ( int  state)
privateslot

Definition at line 1201 of file wizard.cpp.

1202 {
1203  updateBoolOption(m_modelData,STR_CALL_GRAPH,state==Qt::Checked);
1204 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_CALL_GRAPH
Definition: wizard.cpp:59
void Step4::setClassGraphEnabled ( int  state)
privateslot

Definition at line 1176 of file wizard.cpp.

1177 {
1178  updateBoolOption(m_modelData,STR_CLASS_GRAPH,state==Qt::Checked);
1179 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_CLASS_GRAPH
Definition: wizard.cpp:54
void Step4::setCollaborationGraphEnabled ( int  state)
privateslot

Definition at line 1181 of file wizard.cpp.

1182 {
1184 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_COLLABORATION_GRAPH
Definition: wizard.cpp:55
void Step4::setGraphicalHierarchyEnabled ( int  state)
privateslot

Definition at line 1186 of file wizard.cpp.

1187 {
1189 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_GRAPHICAL_HIERARCHY
Definition: wizard.cpp:56
void Step4::setIncludedByGraphEnabled ( int  state)
privateslot

Definition at line 1196 of file wizard.cpp.

1197 {
1199 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124
#define STR_INCLUDED_BY_GRAPH
Definition: wizard.cpp:58
void Step4::setIncludeGraphEnabled ( int  state)
privateslot

Definition at line 1191 of file wizard.cpp.

1192 {
1193  updateBoolOption(m_modelData,STR_INCLUDE_GRAPH,state==Qt::Checked);
1194 }
const QHash< QString, Input * > & m_modelData
Definition: wizard.h:223
#define STR_INCLUDE_GRAPH
Definition: wizard.cpp:57
static void updateBoolOption(const QHash< QString, Input * > &model, const QString &name, bool bNew)
Definition: wizard.cpp:124

Member Data Documentation

QGroupBox* Step4::m_diagramMode
private

Definition at line 212 of file wizard.h.

QButtonGroup* Step4::m_diagramModeGroup
private

Definition at line 213 of file wizard.h.

QCheckBox* Step4::m_dotCall
private

Definition at line 220 of file wizard.h.

QCheckBox* Step4::m_dotCaller
private

Definition at line 221 of file wizard.h.

QCheckBox* Step4::m_dotClass
private

Definition at line 215 of file wizard.h.

QCheckBox* Step4::m_dotCollaboration
private

Definition at line 216 of file wizard.h.

QGroupBox* Step4::m_dotGroup
private

Definition at line 214 of file wizard.h.

QCheckBox* Step4::m_dotInclude
private

Definition at line 217 of file wizard.h.

QCheckBox* Step4::m_dotIncludedBy
private

Definition at line 218 of file wizard.h.

QCheckBox* Step4::m_dotInheritance
private

Definition at line 219 of file wizard.h.

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

Definition at line 223 of file wizard.h.

Wizard* Step4::m_wizard
private

Definition at line 222 of file wizard.h.


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