Changeset 2543

Show
Ignore:
Timestamp:
10/24/08 17:55:57 (3 months ago)
Author:
mwlinnem
Message:

Reverted display settings, and fixed issue with resize and history panels not showing up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugins/visualization/edu.iu.nwb.visualization.guess/ALGORITHM/default/scripts/graphModifier.py

    r2537 r2543  
    3232 
    3333doNotIncludeProperties = ["__edgeid", "image", "node1", "node2"] 
    34  
    35 enumeratedStringFieldMaxSize = 20 
    3634 
    3735# keep track of the changes while using the panel 
     
    517515                dockSelf.layoutPanel = JPanel() # top: main controls bottom: hidden controls 
    518516                dockSelf.layoutPanel.setLayout(BoxLayout(dockSelf.layoutPanel, BoxLayout.Y_AXIS)) 
    519                  
    520517                dockSelf.topPanel = JPanel() # the top panel 
    521                  
    522518                macDimH = 40 
    523                 winDimH = 5
     519                winDimH = 3
    524520                macDimW = 900 
    525                 winDimW = 57
     521                winDimW = 80
    526522                # Here we assume people are using either mac or windows.  
    527523                # If I had a way to test for linux and tweak the sizes I'd do it here. 
     
    535531                dockSelf.topPanel.setPreferredSize(Dimension(dimWidth, dimHeight)) 
    536532                dockSelf.layoutPanel.add(dockSelf.topPanel) 
    537                 dockSelf.buttonPanel = JPanel(GridLayout(2, 5)) # the panel for the buttons 
     533                dockSelf.buttonPanel = JPanel() # the panel for the buttons 
    538534                dockSelf.buttonPanel.setPreferredSize(Dimension(dimWidth, dimHeight)) 
    539535                dockSelf.layoutPanel.add(dockSelf.buttonPanel) 
    540536                dockSelf.bottomPanel = JPanel() # the bottom panel 
    541                 dockSelf.bottomPanel.setPreferredSize(Dimension(dimWidth, dimHeight)) 
     537                dockSelf.bottomPanel.setPreferredSize(Dimension(900, 280)) 
    542538                dockSelf.layoutPanel.add(dockSelf.bottomPanel) 
     539                 
    543540                 
    544541                # object box 
     
    588585                 
    589586                # size panel 
    590                 dockSelf.sizePanel = JPanel(GridLayout(20,20)) 
     587                dockSelf.sizePanel = JPanel(GridLayout(2,4)) 
     588                dockSelf.sizePanel.setVisible(false) 
    591589                 
    592590                # assuming this is for a node, do edges later 
     
    651649                dockSelf.changeHistoryPanel.add(dockSelf.changeHistoryLeftPanel) 
    652650                dockSelf.changeHistoryPanel.add(dockSelf.changeHistoryRightPanel) 
     651                dockSelf.changeHistoryPanel.setVisible(false) 
    653652                 
    654653                # colour button