Modified:
trunk/Classes/Phaux-base/WHBrowser.php
trunk/Classes/Phaux-base/WHHalo.php
Log:
Brows from the halo
Modified: trunk/Classes/Phaux-base/WHBrowser.php
==============================================================================
--- trunk/Classes/Phaux-base/WHBrowser.php (original)
+++ trunk/Classes/Phaux-base/WHBrowser.php Wed Oct 24 08:05:46 2007
@@ -211,7 +211,7 @@
return '
.whbrowser form{display:inline;}
.whbrowser-source {
- font-size: 14px;
+ font-size: 12px;
}
.whbrowser select{width:200px;}
';
Modified: trunk/Classes/Phaux-base/WHHalo.php
==============================================================================
--- trunk/Classes/Phaux-base/WHHalo.php (original)
+++ trunk/Classes/Phaux-base/WHHalo.php Wed Oct 24 08:05:46 2007
@@ -29,6 +29,16 @@
return $this;
}
+ public function browsParent(){
+ $this->session()->toggleHalos();
+ $this->session()->mainComponent()->callModel(
+ Object::construct('WHBrowser')->
+ setCurrentClass($this->decoratedComponent->getClass())->
+ addDecoration(Object::construct('WHWindowDecoration'))->
+ onAnswerCallback($this->session(),'toggleHalos'));
+ return $this;
+ }
+
public function renderSourceButtonOn($html){
if($this->showHTML){
$label = 'R';
@@ -40,6 +50,12 @@
$html->text(' ]');
}
+ public function renderBrowsButtonOn($html){
+ return $html->text('[ ').
+ $html->anchor()->callback($this,'browsParent')->with('B').
+ $html->text(' ]');
+ }
+
public function renderInspectButtonOn($html){
return $html->text('[ ').
$html->anchor()->callback($this,'inspectParent')->with('I').
@@ -56,6 +72,7 @@
return $html->div()->class('halo-header')->with(
$html->div()->class('icons')->with(
$html->div()->class('halo-mode')->with(
+ $this->renderBrowsButtonOn($html).
$this->renderInspectButtonOn($html).
$this->renderSourceButtonOn($html)
)