125 findAction ("axes")->setCheckable (true); |
125 findAction ("axes")->setCheckable (true); |
126 findAction ("axes")->setChecked (gl_axes); |
126 findAction ("axes")->setChecked (gl_axes); |
127 |
127 |
128 findAction ("wireframe")->setCheckable (true); |
128 findAction ("wireframe")->setCheckable (true); |
129 findAction ("wireframe")->setChecked (gl_wireframe); |
129 findAction ("wireframe")->setChecked (gl_wireframe); |
130 |
|
131 #ifdef NO_OVERPAINTING |
|
132 for (int i = 0; i < 7; ++i) |
|
133 findAction (fmt ("camera%s", g_CameraNames[i]))->setCheckable (true); |
|
134 #endif |
|
135 |
130 |
136 updateEditModeActions (); |
131 updateEditModeActions (); |
137 |
132 |
138 // things not implemented yet |
133 // things not implemented yet |
139 findAction ("help")->setEnabled (false); |
134 findAction ("help")->setEnabled (false); |
425 g_ToolBarArea = Qt::LeftToolBarArea; |
420 g_ToolBarArea = Qt::LeftToolBarArea; |
426 initSingleToolBar ("Modes"); |
421 initSingleToolBar ("Modes"); |
427 addToolBarAction ("modeSelect"); |
422 addToolBarAction ("modeSelect"); |
428 addToolBarAction ("modeDraw"); |
423 addToolBarAction ("modeDraw"); |
429 |
424 |
430 #ifdef NO_OVERPAINTING |
|
431 g_CurrentToolBar->addSeparator (); |
|
432 |
|
433 for (int i = 0; i < 7; ++i) |
|
434 addToolBarAction (fmt ("camera%s", g_CameraNames[i])); |
|
435 #endif // NO_OVERPAINTING |
|
436 |
|
437 updateToolBars (); |
425 updateToolBars (); |
438 } |
426 } |
439 |
427 |
440 // ============================================================================= |
428 // ============================================================================= |
441 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
429 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
1001 act->setChecked (i == (size_t) mode); |
989 act->setChecked (i == (size_t) mode); |
1002 |
990 |
1003 if (i != GL::Select) |
991 if (i != GL::Select) |
1004 act->setEnabled (R ()->camera () != GL::Free); |
992 act->setEnabled (R ()->camera () != GL::Free); |
1005 } |
993 } |
1006 |
|
1007 #ifdef NO_OVERPAINTING |
|
1008 for (int i = 0; i < 7; ++i) |
|
1009 findAction (fmt ("camera%s", g_CameraNames[i]))->setChecked (i == (R ()->camera ())); |
|
1010 #endif |
|
1011 } |
994 } |
1012 |
995 |
1013 // ======================================================================================================================================== |
996 // ======================================================================================================================================== |
1014 void ObjectList::contextMenuEvent (QContextMenuEvent* ev) { |
997 void ObjectList::contextMenuEvent (QContextMenuEvent* ev) { |
1015 g_win->spawnContextMenu (ev->globalPos ()); |
998 g_win->spawnContextMenu (ev->globalPos ()); |