| 121 findAction ("axes")->setCheckable (true); |
121 findAction ("axes")->setCheckable (true); |
| 122 findAction ("axes")->setChecked (gl_axes); |
122 findAction ("axes")->setChecked (gl_axes); |
| 123 |
123 |
| 124 findAction ("wireframe")->setCheckable (true); |
124 findAction ("wireframe")->setCheckable (true); |
| 125 findAction ("wireframe")->setChecked (gl_wireframe); |
125 findAction ("wireframe")->setChecked (gl_wireframe); |
| |
126 |
| |
127 #ifdef NO_OVERPAINTING |
| |
128 for (int i = 0; i < 7; ++i) |
| |
129 findAction (fmt ("camera%s", g_CameraNames[i]))->setCheckable (true); |
| |
130 #endif |
| 126 |
131 |
| 127 updateEditModeActions (); |
132 updateEditModeActions (); |
| 128 |
133 |
| 129 // things not implemented yet |
134 // things not implemented yet |
| 130 findAction ("help")->setEnabled (false); |
135 findAction ("help")->setEnabled (false); |
| 416 g_ToolBarArea = Qt::LeftToolBarArea; |
421 g_ToolBarArea = Qt::LeftToolBarArea; |
| 417 initSingleToolBar ("Modes"); |
422 initSingleToolBar ("Modes"); |
| 418 addToolBarAction ("modeSelect"); |
423 addToolBarAction ("modeSelect"); |
| 419 addToolBarAction ("modeDraw"); |
424 addToolBarAction ("modeDraw"); |
| 420 |
425 |
| |
426 #ifdef NO_OVERPAINTING |
| |
427 g_CurrentToolBar->addSeparator (); |
| |
428 |
| |
429 for (int i = 0; i < 7; ++i) |
| |
430 addToolBarAction (fmt ("camera%s", g_CameraNames[i])); |
| |
431 #endif // NO_OVERPAINTING |
| |
432 |
| 421 updateToolBars (); |
433 updateToolBars (); |
| 422 } |
434 } |
| 423 |
435 |
| 424 // ============================================================================= |
436 // ============================================================================= |
| 425 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
437 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 982 act->setChecked (i == (size_t) mode); |
994 act->setChecked (i == (size_t) mode); |
| 983 |
995 |
| 984 if (i != GL::Select) |
996 if (i != GL::Select) |
| 985 act->setEnabled (R ()->camera () != GL::Free); |
997 act->setEnabled (R ()->camera () != GL::Free); |
| 986 } |
998 } |
| |
999 |
| |
1000 #ifdef NO_OVERPAINTING |
| |
1001 for (int i = 0; i < 7; ++i) |
| |
1002 findAction (fmt ("camera%s", g_CameraNames[i]))->setChecked (i == (R ()->camera ())); |
| |
1003 #endif |
| 987 } |
1004 } |
| 988 |
1005 |
| 989 // ======================================================================================================================================== |
1006 // ======================================================================================================================================== |
| 990 void ObjectList::contextMenuEvent (QContextMenuEvent* ev) { |
1007 void ObjectList::contextMenuEvent (QContextMenuEvent* ev) { |
| 991 g_win->spawnContextMenu (ev->globalPos ()); |
1008 g_win->spawnContextMenu (ev->globalPos ()); |
| 1100 cbg_axes->addCheckBox ("X", X); |
1117 cbg_axes->addCheckBox ("X", X); |
| 1101 cbg_axes->addCheckBox ("Y", Y); |
1118 cbg_axes->addCheckBox ("Y", Y); |
| 1102 cbg_axes->addCheckBox ("Z", Z); |
1119 cbg_axes->addCheckBox ("Z", Z); |
| 1103 return cbg_axes; |
1120 return cbg_axes; |
| 1104 } |
1121 } |
| |
1122 |
| |
1123 void ForgeWindow::setStatusBarText (str text) { |
| |
1124 statusBar ()->showMessage (text); |
| |
1125 } |