Commit ae559699 authored by Florent D'Halluin's avatar Florent D'Halluin
Browse files

[yavgui] Fix GState.

Add missing getter.
Fix some warnings.

* yavgui/src/g_state.cc,
* yavgui/src/g_state.hh,
* yavgui/src/g_state.hxx: Do that.
parent b4c859d1
2009-08-04 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Fix GState.
Add missing getter.
Fix some warnings.
* yavgui/src/g_state.cc,
* yavgui/src/g_state.hh,
* yavgui/src/g_state.hxx: Do that.
2009-08-04 d-halluin <d-halluin@lrde.epita.fr>
 
[yavgui] Add a custom scene class.
......
......@@ -108,7 +108,7 @@ namespace gui
painter->setBrush (QColor("black"));
painter->drawPath (path);
}
painter->drawText (QRect(radius_, -radius_, 40, radius_),
painter->drawText (QRectF(radius_, -radius_, 40, radius_),
Qt::AlignCenter
| Qt::AlignTop,
final_entry_);
......@@ -142,7 +142,7 @@ namespace gui
painter->setBrush (QColor("black"));
painter->drawPath (path);
}
painter->drawText (QRect(-radius_ - 40, -radius_, 40, radius_),
painter->drawText (QRectF(-radius_ - 40, -radius_, 40, radius_),
Qt::AlignCenter
| Qt::AlignTop,
initial_entry_);
......
......@@ -77,6 +77,8 @@ namespace gui
inline void set_final_entry (QString final_entry);
inline QString final_entry ();
inline int index ();
public slots:
void refresh ();
void select ();
......
......@@ -72,7 +72,6 @@ namespace gui
void GState::set_initial_entry (QString initial_entry)
{
// FIXME: propagate to vcsn_automaton.
initial_entry_ = initial_entry;
}
......@@ -83,10 +82,14 @@ namespace gui
void GState::set_final_entry (QString final_entry)
{
// FIXME: propagate to vcsn_automaton.
final_entry_ = final_entry;
}
int GState::index ()
{
return index_;
}
} // ! namespace display
} // ! namespace gui
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment