11 #ifndef PROCESS_DOCS_DIALOG_HPP
12 #define PROCESS_DOCS_DIALOG_HPP
18 #include <QFileDialog>
21 #include <QMessageBox>
26 #include <ui_ManageAttrDlg.h>
28 #include <ui_PlyCellGraphDlg.h>
31 class QTreeWidgetItem;
42 setName(
"Mesh/Attributes/Manage Attributes");
43 setDesc(
"Manage Mesh Attributes");
44 setIcon(QIcon(
":/images/Manage.png"));
46 addParm(
"Mesh number",
"Mesh number",
"-1");
49 bool initialize(QWidget *parent);
50 bool run() {
return true; }
52 bool setUpTree(
const QStringList &attr);
55 void on_attrTreeWidget_itemClicked(QTreeWidgetItem *,
int);
56 void on_clearPushButton_clicked();
57 void on_clearAllPushButton_clicked();
58 void on_savePushButton_clicked();
70 Ui_PlyCellGraphDlg
ui;
76 setName(
"Mesh/Attributes/Save to CSV");
77 setDesc(
"Save Measure Attribute Maps to a csv file. Labels and parent labels will always be saved in the first two columns.");
78 setIcon(QIcon(
":/images/MakeHeatMap.png"));
80 addParm(
"File Name",
"Name of the file to save to (if empty Dialog will be opened)",
"");
81 addParm(
"Attribute Name",
"Attribute name. Comma separated list of attribute names (if empty Dialog will be opened)",
"");
86 bool initialize(QWidget* parent);
90 if(!checkState().mesh(MESH_ANY))
92 Mesh *mesh = currentMesh();
93 return run(mesh, parm(
"File Name"));
96 bool run(
Mesh* mesh, QString filename);
109 Ui_PlyCellGraphDlg
ui;
115 setName(
"Mesh/Attributes/Save to CSV Extended");
116 setDesc(
"Save Measure Attribute Maps to a csv file. Labels and parent labels will always be saved in the first two columns.\n"
117 "Extended process that includes extra columns to facilitate the data import into R and other platforms.");
118 setIcon(QIcon(
":/images/MakeHeatMap.png"));
120 addParm(
"File Name",
"File name (if empty Dialog will be opened)",
"");
121 addParm(
"Missing Data Handling",
"Missing Data Handling",
"Empty", QStringList() <<
"Empty" <<
"0" <<
"NA");
122 addParm(
"Genotype",
"Add a genotype name column. Leave empty to ignore",
"");
123 addParm(
"Sample Name",
"Add a sample name column. Leave empty to ignore",
"");
124 addParm(
"Time Point",
"Add a time point column. Leave empty to ignore",
"");
125 addParm(
"Stage",
"Add a stage column. Leave empty to ignore",
"");
130 bool initialize(QWidget* parent);
134 if(!checkState().mesh(MESH_ANY))
136 Mesh *mesh = currentMesh();
137 return run(mesh, parm(
"File Name"), parm(
"Missing Data Handling"), parm(
"Genotype"), parm(
"Sample Name"), parm(
"Time Point"), parm(
"Stage"));
140 bool run(
Mesh* mesh, QString filename, QString missingData, QString genotype, QString sample, QString timepoint, QString stage);
144 attrMapsToBeSaved = attrList;
158 setName(
"Mesh/Attributes/Clear Attr Map");
159 setDesc(
"Create an empty attribute map of the specified type");
160 setIcon(QIcon(
":/images/Clear.png"));
162 addParm(
"Type",
"",
"Double", QStringList() <<
"Double" <<
"Int" <<
"Vector" <<
"Tensor");
163 addParm(
"Name",
"",
"EmptyAttrMap");
168 if(!checkState().mesh(MESH_ANY))
170 Mesh *mesh = currentMesh();
171 return run(mesh, parm(
"Type"), parm(
"Name"));
174 bool run(
Mesh* mesh, QString type, QString name);