diff sv/main/MainWindow.cpp @ 204:c5970f7af886

remove in the preferences the possibility to have one property box per panes
author lbajardsilogic
date Wed, 30 Jan 2008 09:06:08 +0000
parents 74d1b3bda5a3
children 00cf9a7faa4d
line wrap: on
line diff
--- a/sv/main/MainWindow.cpp	Tue Jan 29 17:21:42 2008 +0000
+++ b/sv/main/MainWindow.cpp	Wed Jan 30 09:06:08 2008 +0000
@@ -369,12 +369,10 @@
     connect(m_viewManager, SIGNAL(viewZoomLevelChanged(View *, unsigned long, bool)),
             this, SLOT(viewZoomLevelChanged(View *, unsigned long, bool)));
 
-    connect(Preferences::getInstance(),
+    /*connect(Preferences::getInstance(),
             SIGNAL(propertyChanged(PropertyContainer::PropertyName)),
             this,
-            SLOT(preferenceChanged(PropertyContainer::PropertyName)));
-
-//    preferenceChanged("Property Box Layout");
+            SLOT(preferenceChanged(PropertyContainer::PropertyName)));*/
 
     if (m_oscQueue && m_oscQueue->isOK()) {
         connect(m_oscQueue, SIGNAL(messagesAvailable()), this, SLOT(pollOSC()));
@@ -967,13 +965,13 @@
     action->setChecked(m_viewManager->getZoomWheelsEnabled());
     menu->addAction(action);
         
-    action = new QAction(tr("Show Property Bo&xes"), this);
+    /*action = new QAction(tr("Show Property Bo&xes"), this);
     action->setShortcut(tr("X"));
     action->setStatusTip(tr("Show the layer property boxes at the side of the main window"));
     connect(action, SIGNAL(triggered()), this, SLOT(togglePropertyBoxes()));
     action->setCheckable(true);
     action->setChecked(true);
-    menu->addAction(action);
+    menu->addAction(action);*/
 
     action = new QAction(tr("Show Status &Bar"), this);
     action->setStatusTip(tr("Show context help information in the status bar at the bottom of the window"));
@@ -3509,21 +3507,6 @@
 }
 
 void
-MainWindow::togglePropertyBoxes()
-{
-    if (m_paneStack->getLayoutStyle() == PaneStack::NoPropertyStacks) {
-        if (Preferences::getInstance()->getPropertyBoxLayout() ==
-            Preferences::VerticallyStacked) {
-            m_paneStack->setLayoutStyle(PaneStack::PropertyStackPerPaneLayout);
-        } else {
-            m_paneStack->setLayoutStyle(PaneStack::SinglePropertyStackLayout);
-        }
-    } else {
-        m_paneStack->setLayoutStyle(PaneStack::NoPropertyStacks);
-    }
-}
-
-void
 MainWindow::toggleStatusBar()
 {
     QSettings settings;
@@ -3541,20 +3524,11 @@
     settings.endGroup();
 }
 
-void
+/*void
 MainWindow::preferenceChanged(PropertyContainer::PropertyName name)
 {
-    if (name == "Property Box Layout") {
-        if (m_paneStack->getLayoutStyle() != PaneStack::NoPropertyStacks) {
-            if (Preferences::getInstance()->getPropertyBoxLayout() ==
-                Preferences::VerticallyStacked) {
-                m_paneStack->setLayoutStyle(PaneStack::PropertyStackPerPaneLayout);
-            } else {
-                m_paneStack->setLayoutStyle(PaneStack::SinglePropertyStackLayout);
-            }
-        }
-    }
-}
+    
+}*/
 
 void
 MainWindow::play()
@@ -4670,11 +4644,7 @@
                 }                    
             } else if (property == "zoomwheels") {
                 m_viewManager->setZoomWheelsEnabled(value > 0.5);
-            } else if (property == "propertyboxes") {
-                bool toggle = ((value < 0.5) !=
-                               (m_paneStack->getLayoutStyle() == PaneStack::NoPropertyStacks));
-                if (toggle) togglePropertyBoxes();
-            }
+            } 
                 
         } else {
             PropertyContainer *container = 0;