From 39959e711e8c810750967bab7f3a8fa8c9e904b4 Mon Sep 17 00:00:00 2001 From: BigEd Date: Sun, 31 Oct 2010 13:39:31 +0000 Subject: [PATCH] three panel splittable (dynamic) screen layout --- expert.css | 55 ++++++++++++++++++++++++++++++++++++++------- expert.html | 61 +++++++++++++++++++++++++++++++++++++------------- expertWires.js | 4 ++-- 3 files changed, 94 insertions(+), 26 deletions(-) diff --git a/expert.css b/expert.css index 03326ea..acd3f7b 100644 --- a/expert.css +++ b/expert.css @@ -1,5 +1,5 @@ /* - Copyright (c) 2010 Brian Silverman, Barry Silverman + Copyright (c) 2010 Brian Silverman, Barry Silverman, Ed Spittles Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -38,13 +38,11 @@ div.frame { } div.leftcolumn { - float: left; width: 804px; /* ugh - matches the div.chip width + border */ } div.rightcolumn { - float: left; - margin-left: 8px; + padding-left: 8px; } div.footer { @@ -76,7 +74,6 @@ canvas.chip { } div.twobuttons{ - position:relative; float:left; } @@ -101,7 +98,6 @@ img.navbutton { } img.navplay { - position: relative; margin-right: 5px; border: 0px; } @@ -119,6 +115,7 @@ table.memtable { font-family: monospace; font-size: 12px; border-spacing: 0px; + overflow: auto; } div#layoutControlPanel{ @@ -142,8 +139,6 @@ a#linkHere{ } div#logstreamscroller{ - height:200px; - width:800px; overflow:auto; } @@ -153,3 +148,47 @@ table.logstream { border-spacing: 2px; text-align:center; } + +/* Splitter */ +#frame { + height: 750px; +} + +div.leftcolumn, div.rightcolumn, { + overflow: auto; +} + +div#righttopdiv, div#tracingdiv { + overflow: auto; + background-color: white; +} + +div.rightcolumn { + background-color: white; +} + +.vsplitbar { + width: 5px; + background: #aaa; +} + +.vsplitbar { + width: 6px; + background: #669 url(3rdparty/img/vgrabber.gif) no-repeat center; +} + +.vsplitbar:hover, .vsplitbar.active { + background: #c66 url(3rdparty/img/vgrabber.gif) no-repeat center; + opacity: 0.7; + filter: alpha(opacity=70); /* IE */ + background: #c99; +} + +.hsplitbar { + height: 6px; + background: #669 url(3rdparty/img/hgrabber.gif) no-repeat center; +} + +.hsplitbar.active, .hsplitbar:hover { + background: #c66 url(3rdparty/img/hgrabber.gif) no-repeat center; +} diff --git a/expert.html b/expert.html index afde298..85d5c84 100644 --- a/expert.html +++ b/expert.html @@ -12,6 +12,9 @@ + + + @@ -75,19 +96,9 @@ function handleOnload() { Link to this location -
-
- - - -
-
-
-
-
-
-
+
+
@@ -98,10 +109,28 @@ function handleOnload() {
-
+

x: 0
y: 0

-
-
+
+ +
+
+
+
+ +
+
+
+ + + +
+
+
+
+
+
+
diff --git a/expertWires.js b/expertWires.js index f439afd..763c337 100644 --- a/expertWires.js +++ b/expertWires.js @@ -312,7 +312,7 @@ function updateChipLayoutVisibility(isOn){ if(expertMode) document.getElementById('layoutControlPanel').style.display = 'block'; document.getElementById('nochip').style.display = 'none'; - document.getElementById('logstreamscroller').style.height="260px"; + //document.getElementById('logstreamscroller').style.height="260px"; // allow the display to update while we load the graphics updateChipLayoutAnimation(true); setStatus('loading graphics...'); @@ -324,7 +324,7 @@ function updateChipLayoutVisibility(isOn){ document.getElementById('chipsurround').style.display = 'none'; document.getElementById('layoutControlPanel').style.display = 'none'; document.getElementById('nochip').style.display = 'block'; - document.getElementById('logstreamscroller').style.height="880px"; + //document.getElementById('logstreamscroller').style.height="880px"; } }