mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 01:54:42 +00:00
Solved an annoyng old consistency bug between toolbars and toolbar menu's
This commit is contained in:
parent
e63bec0e56
commit
d55b16dcd0
@ -24,6 +24,9 @@
|
||||
History
|
||||
|
||||
$Log$
|
||||
Revision 1.38 2006/01/15 03:54:50 glvertex
|
||||
Solved an annoyng old consistency bug between toolbars and toolbar menu's
|
||||
|
||||
Revision 1.37 2006/01/14 00:51:06 davide_portelli
|
||||
A little change
|
||||
|
||||
@ -334,8 +337,7 @@ MainWindow::MainWindow()
|
||||
createMenus();
|
||||
createToolBars();
|
||||
updateMenus();
|
||||
addToolBar(mainToolBar);
|
||||
addToolBar(renderToolBar);
|
||||
|
||||
setWindowTitle(appName());
|
||||
loadPlugins();
|
||||
if(QCoreApplication::instance ()->argc()>1){
|
||||
@ -615,6 +617,7 @@ void MainWindow::createMenus()
|
||||
toolBarMenu = viewMenu->addMenu(tr("&ToolBars"));
|
||||
toolBarMenu->addAction(showToolbarStandardAct);
|
||||
toolBarMenu->addAction(showToolbarRenderAct);
|
||||
connect(toolBarMenu,SIGNAL(aboutToShow()),this,SLOT(updateMenus()));
|
||||
|
||||
//////////////////// Menu Windows /////////////////////////////////////////////////////////////////////////
|
||||
windowsMenu = menuBar()->addMenu(tr("&Windows"));
|
||||
|
||||
@ -24,6 +24,9 @@
|
||||
History
|
||||
|
||||
$Log$
|
||||
Revision 1.68 2006/01/15 03:54:50 glvertex
|
||||
Solved an annoyng old consistency bug between toolbars and toolbar menu's
|
||||
|
||||
Revision 1.67 2006/01/13 12:10:30 vannini
|
||||
Added logging to mean and gaussian curvautres colorization
|
||||
|
||||
@ -471,7 +474,11 @@ void MainWindow::updateMenus()
|
||||
logMenu->setEnabled(active);
|
||||
windowsMenu->setEnabled(active);
|
||||
preferencesMenu->setEnabled(active);
|
||||
|
||||
renderToolBar->setEnabled(active);
|
||||
|
||||
showToolbarRenderAct->setChecked(renderToolBar->isVisible());
|
||||
showToolbarStandardAct->setChecked(mainToolBar->isVisible());
|
||||
if(active){
|
||||
const RenderMode &rm=GLA()->getCurrentRenderMode();
|
||||
switch (rm.drawMode) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user