Skip to content

Commit

Permalink
EOD
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jul 9, 2016
1 parent 3a16ae9 commit 291d59d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
12 changes: 11 additions & 1 deletion qttesteditconceptmapdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,21 @@ void ribi::cmap::QtTestEditConceptMapDialog::ToggleVirtualBastard() noexcept
}


void ribi::cmap::QtTestEditConceptMapDialog::on_button_view_graphviz_clicked()
void ribi::cmap::QtTestEditConceptMapDialog::on_button_view_graphviz_summary_clicked()
{
SaveSummaryToFile(m_qtconceptmap->GetConceptMap(),"summary.dot");
convert_dot_to_svg("summary.dot","summary.svg");
convert_svg_to_png("summary.svg","summary.png");
ui->image_concept_map_summary->setPixmap(QPixmap("summary.png"));
this->repaint();
}

void ribi::cmap::QtTestEditConceptMapDialog::on_button_view_graphviz_full_clicked()
{
SaveToFile(m_qtconceptmap->GetConceptMap(),"full.dot");
convert_dot_to_svg("full.dot","full.svg");
convert_svg_to_png("full.svg","full.png");
ui->image_concept_map_full->setPixmap(QPixmap("full.png"));
this->repaint();

}
4 changes: 3 additions & 1 deletion qttesteditconceptmapdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ private slots:
void OnCheck();
void OnVirtualBastard();

void on_button_view_graphviz_clicked();
void on_button_view_graphviz_summary_clicked();

void on_button_view_graphviz_full_clicked();

private:

Expand Down
15 changes: 11 additions & 4 deletions qttesteditconceptmapdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,16 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="button_view_graphviz">
<widget class="QPushButton" name="button_view_graphviz_summary">
<property name="text">
<string>&amp;View GraphViz concep maps</string>
<string>&amp;View summary GraphViz concept map</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button_view_graphviz_full">
<property name="text">
<string>View &amp;full GraphViz concept map</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -159,7 +166,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>480</width>
<width>437</width>
<height>280</height>
</rect>
</property>
Expand Down Expand Up @@ -188,7 +195,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>480</width>
<width>437</width>
<height>280</height>
</rect>
</property>
Expand Down

0 comments on commit 291d59d

Please sign in to comment.