Skip to content

Commit

Permalink
Revert "For Royale convert (reference Moonshine-IDE/Moonshine-IDE#646)"
Browse files Browse the repository at this point in the history
This reverts commit 16db2d6.

This commit broke the nightly builds for Moonshine.  Move future changes to a branch.
  • Loading branch information
JoelProminic committed Dec 10, 2021
1 parent 16db2d6 commit 60dc2fc
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 131 deletions.
25 changes: 8 additions & 17 deletions src/components/domino/Body.as
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ package components.domino
{
import components.ComponentBase;

import interfaces.IDominoComponent;
import interfaces.dominoComponents.IDominoBody;
import interfaces.IComponent;
import interfaces.dominoComponents.IBody;

import utils.CodeMxmlUtils;
import utils.CodeXMLUtils;

public class Body extends ComponentBase implements IDominoBody
public class Body extends ComponentBase implements IBody
{
private static const DOMINO_ELEMENT_NAME:String = "body";
public static var ELEMENT_NAME:String = "Body";

private var _component:IDominoComponent;
private var _component:IComponent;

private var _xml:XML;

public function Body(component:IDominoComponent = null)
public function Body(component:IComponent = null)
{
super();

Expand All @@ -39,7 +39,7 @@ package components.domino



private function get component():IDominoComponent
private function get component():IComponent
{
return _component ? _component : this;
}
Expand All @@ -65,27 +65,18 @@ package components.domino
{
var xml:XML = new XML("<" + CodeMxmlUtils.getMXMLTagNameWithSelection(this, DOMINO_ELEMENT_NAME) + "/>");

CodeXMLUtils.addSizeHtmlStyleToXML(xml, this as IDominoComponent);
CodeXMLUtils.addSizeHtmlStyleToXML(xml, this as IComponent);



var elementCount:int = component["numElements"];
for(var i:int = 0; i < elementCount; i++)
{
var element:IDominoComponent = component["getElementAt"](i) as IDominoComponent;
var element:IComponent = component["getElementAt"](i) as IComponent;
xml.appendChild(element.toCode());
}

return xml;
}

public function toRoyaleCode():XML
{
var tab_xml:XML = new XML("");


return tab_xml;

}
}
}
18 changes: 1 addition & 17 deletions src/components/domino/DominoButton.as
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package components.domino
{
import interfaces.dominoComponents.IDominoButton;
import interfaces.IDominoComponent;
import interfaces.IComponent;
import components.ComponentBase;
import utils.CodeMxmlUtils;
import utils.CodeXMLUtils;
Expand Down Expand Up @@ -344,22 +344,6 @@ package components.domino
return par_xml;


}

//<j:Button text="%ViewComponentLabel%" click="{dispatchEvent(new ScreenEvent(ScreenEvent.EVENT_NAVIGATE_TO, %ViewComponentName%.NAME))}"
//percentWidth="60"/>

public function toRoyaleCode():XML
{
var button_xml:XML = new XML("<j:Button />");
if(this.label==null){
this.label = "default";
}
button_xml.@text= this.label
button_xml.@percentWidth = "60"

return button_xml;

}
}
}
2 changes: 1 addition & 1 deletion src/components/domino/DominoCalendar.as
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package components.domino
import interfaces.components.ICalendar;
import utils.CodeXMLUtils;
import utils.CodeMxmlUtils;
import interfaces.IDominoComponent;
import interfaces.IComponent;

//<Calendar date="yearmonthday" dateformat="weekdaymonthdayyear"
//dateseparator1=" " dateseparator2="/" dateseparator3="/"
Expand Down
10 changes: 0 additions & 10 deletions src/components/domino/DominoSection.as
Original file line number Diff line number Diff line change
Expand Up @@ -337,16 +337,6 @@ package components.domino
return section_xml;
}


public function toRoyaleCode():XML
{
var tab_xml:XML = new XML("");


return tab_xml;

}


}
}
14 changes: 1 addition & 13 deletions src/components/domino/DominoTabView.as
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ package components.domino
import converter.DominoConverter;
import components.primeFaces.Div;

import interfaces.IComponent;
import interfaces.IComponent;
import interfaces.components.ITabView;
import interfaces.dominoComponents.IDominoTabView;

import mx.controls.Alert;

import global.domino.DominoGlobals;

public class DominoTabView extends ComponentBase implements IDominoTabView
public class DominoTabView extends ComponentBase implements ITabView
{
public static const PRIME_FACES_XML_ELEMENT_NAME:String = "tabView";
public static const ELEMENT_NAME:String = "TabView";
Expand Down Expand Up @@ -740,15 +738,5 @@ package components.domino
return flag;

}


public function toRoyaleCode():XML
{
var tab_xml:XML = new XML("");


return tab_xml;

}
}
}
12 changes: 0 additions & 12 deletions src/converter/Converter.as
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ package converter
import events.ConverterErrorEvent;
import events.ConverterEvent;

import interfaces.IDominoComponent;
import interfaces.IComponent;
import interfaces.ISurface;

Expand Down Expand Up @@ -63,17 +62,6 @@ package converter
"Column"
];
}

public function getNewInstanceOfDominoComponent(name:String):IDominoComponent
{
if ((name in this.classLookup))
{
var type:Class = this.classLookup[name];
return new type() as IDominoComponent;
}

return null;
}

public function getNewInstanceOfComponent(name:String):IComponent
{
Expand Down
12 changes: 0 additions & 12 deletions src/converter/DominoConverter.as
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package converter
import events.ConverterEvent;

import interfaces.IComponent;
import interfaces.IDominoComponent;
import interfaces.ISurface;

import surface.SurfaceMockup;
Expand Down Expand Up @@ -56,17 +55,6 @@ package converter
"Column"
];
}

public function getNewInstanceOfDominoComponent(name:String):IDominoComponent
{
if ((name in this.classLookup))
{
var type:Class = this.classLookup[name];
return new type() as IDominoComponent;
}

return null;
}

public function getNewInstanceOfComponent(name:String):IComponent
{
Expand Down
7 changes: 0 additions & 7 deletions src/interfaces/IDominoComponent.as

This file was deleted.

21 changes: 0 additions & 21 deletions src/interfaces/dominoComponents/IDominoBody.as

This file was deleted.

4 changes: 2 additions & 2 deletions src/interfaces/dominoComponents/IDominoButton.as
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package interfaces.dominoComponents
{
import interfaces.IDominoComponent;
import interfaces.IComponent;
import interfaces.IIsSelected;

public interface IDominoButton extends IDominoComponent, IIsSelected
public interface IDominoButton extends IComponent, IIsSelected
{
function get label():String;
function set label(value:String):void;
Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/dominoComponents/IDominoSection.as
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ package interfaces.dominoComponents
{
import interfaces.IComponent;
import interfaces.IIsSelected;
import interfaces.IDominoComponent;
/** dxl example of text
<par def='6'><run><font color='blue'/>
Example string...
</run></par>
*/

public interface IDominoSection extends IDominoComponent, IIsSelected
public interface IDominoSection extends IComponent, IIsSelected
{
function get title():String;
function set title(value:String):void;
Expand Down
17 changes: 0 additions & 17 deletions src/interfaces/dominoComponents/IDominoTabView.as

This file was deleted.

0 comments on commit 60dc2fc

Please sign in to comment.