--- a/src/gui.cpp Sun May 19 15:36:01 2013 +0300 +++ b/src/gui.cpp Tue May 21 14:02:18 2013 +0300 @@ -124,6 +124,11 @@ findAction ("wireframe")->setCheckable (true); findAction ("wireframe")->setChecked (gl_wireframe); +#ifdef NO_OVERPAINTING + for (int i = 0; i < 7; ++i) + findAction (fmt ("camera%s", g_CameraNames[i]))->setCheckable (true); +#endif + updateEditModeActions (); // things not implemented yet @@ -418,6 +423,13 @@ addToolBarAction ("modeSelect"); addToolBarAction ("modeDraw"); +#ifdef NO_OVERPAINTING + g_CurrentToolBar->addSeparator (); + + for (int i = 0; i < 7; ++i) + addToolBarAction (fmt ("camera%s", g_CameraNames[i])); +#endif // NO_OVERPAINTING + updateToolBars (); } @@ -984,6 +996,11 @@ if (i != GL::Select) act->setEnabled (R ()->camera () != GL::Free); } + +#ifdef NO_OVERPAINTING + for (int i = 0; i < 7; ++i) + findAction (fmt ("camera%s", g_CameraNames[i]))->setChecked (i == (R ()->camera ())); +#endif } // ======================================================================================================================================== @@ -1101,4 +1118,8 @@ cbg_axes->addCheckBox ("Y", Y); cbg_axes->addCheckBox ("Z", Z); return cbg_axes; +} + +void ForgeWindow::setStatusBarText (str text) { + statusBar ()->showMessage (text); } \ No newline at end of file