Ignore:
Timestamp:
Oct 31, 2017 8:00:59 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
6280464
Parents:
0849aec
Message:

More functionality conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    r0849aec r304d082  
    7777 
    7878        # Invoke the initial perspective 
    79         self.perspectiveChanged("Fitting") 
     79        #self.perspectiveChanged("Fitting") 
    8080        self.addWidgets() 
    8181 
     
    9191        # Set up the status bar 
    9292        self.statusBarSetup() 
    93  
    9493        # Show the Welcome panel 
    9594        self.welcomePanel = WelcomePanel() 
     
    117116 
    118117        self.dockedFilesWidget = QDockWidget("Data Explorer", self._workspace) 
    119         self.dockedFilesWidget.setFloating(True) 
     118        self.dockedFilesWidget.setFloating(False) 
    120119        self.dockedFilesWidget.setWidget(self.filesWidget) 
    121120 
    122121        # Disable maximize/minimize and close buttons 
    123122        self.dockedFilesWidget.setFeatures(QDockWidget.NoDockWidgetFeatures) 
    124         self.dockedFilesWidget.setFeatures(Qt.LeftDockWidgetArea) 
    125  
    126         self._workspace.workspace.addDockWidget(Qt.LeftDockWidgetArea, self.dockedFilesWidget) 
     123 
     124        #self._workspace.workspace.addDockWidget(Qt.LeftDockWidgetArea, self.dockedFilesWidget) 
     125        self._workspace.addDockWidget(Qt.LeftDockWidgetArea, self.dockedFilesWidget) 
    127126 
    128127        # Add the console window as another docked widget 
     
    132131        self.listWidget = QTextBrowser() 
    133132        self.logDockWidget.setWidget(self.listWidget) 
    134         self._workspace.workspace.addDockWidget(Qt.BottomDockWidgetAre, self.logDockWidget)  
     133        self._workspace.addDockWidget(Qt.BottomDockWidgetArea, self.logDockWidget) 
    135134 
    136135        # Add other, minor widgets 
     
    192191 
    193192        # Resize to the workspace height 
    194         workspace_height = self._workspace.workspace.sizeHint().height() 
    195         perspective_size = self._current_perspective.sizeHint() 
    196         if workspace_height < perspective_size.height(): 
    197             perspective_width = perspective_size.width() 
    198             self._current_perspective.resize(perspective_width, workspace_height-10) 
     193        #workspace_height = self._workspace.workspace.sizeHint().height() 
     194        #perspective_size = self._current_perspective.sizeHint() 
     195        #if workspace_height < perspective_size.height(): 
     196        #    perspective_width = perspective_size.width() 
     197        #    self._current_perspective.resize(perspective_width, workspace_height-10) 
     198 
    199199        self._current_perspective.show() 
    200200 
Note: See TracChangeset for help on using the changeset viewer.