From 0216409e390b2005d6bc4eaf564ef9ca2e508dab Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 02 Sep 2019 11:49:36 -0400 Subject: [PATCH] New maximize button. --- ObjEditor.java | 32 ++++++++++++++++++++++++++------ 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/ObjEditor.java b/ObjEditor.java index eab8b93..46f9842 100644 --- a/ObjEditor.java +++ b/ObjEditor.java @@ -906,10 +906,20 @@ cButton minButton; cButton maxButton; - cButton fullButton; + cButton fullScreenButton; cButton collapseButton; cButton maximize3DButton; + public void Show3DView() + { + // bug + //gridPanel.setDividerLocation(1.0); + //bigPanel.setDividerLocation(0.0); + bigThree.ClearUI(); + bigThree.add(centralPanel); + bigThree.FlushUI(); + } + void ToggleFullScreen() { GraphicsDevice device = frame.getGraphicsConfiguration().getDevice(); @@ -936,14 +946,18 @@ // framePanel.setDividerLocation(46); // icons are 24x24 //frame.setVisible(true); -// radio.layout = keepButton; + radio.layout = keepButton; //theFrame = null; keepButton = null; -// radio.layout.doClick(); + radio.layout.doClick(); } else { keepButton = radio.layout; + + radio.layout = twoButton; + Show3DView(); + //keeprect = frame.getBounds(); // frame.setBounds(0, 0, frame.getToolkit().getScreenSize().width, // frame.getToolkit().getScreenSize().height); @@ -965,6 +979,7 @@ // radio.layout = fullscreenLayout; // radio.layout.doClick(); //frame.setVisible(true); + CollapseToolbar(); } frame.validate(); @@ -1985,11 +2000,16 @@ { if ((Integer)pce.getOldValue() == 1) { - if (radio.layout != expandedLayout) + if (CameraPane.FULLSCREEN) { - radio.layout = expandedLayout; - radio.layout.doClick(); + ToggleFullScreen(); } + +// if (radio.layout != expandedLayout) +// { +// radio.layout = expandedLayout; +// radio.layout.doClick(); +// } } } }); -- Gitblit v1.6.2