Changeset 261

Show
Ignore:
Timestamp:
10/05/06 17:31:41 (7 years ago)
Author:
lmajano
Message:

Work in progress.

Location:
coldbox/trunk/src/system
Files:
13 added
9 modified
1 moved

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/src/system/config/readme.txt

    r247 r261  
    8080http://localhost/coldbox/system/admin/index.cfm 
    8181 
    82 Default Password: Coldbox. 
     82Default Password: coldbox. 
    8383 
    8484The readme.txt in the Application Template folder gives you an in depth overview 
  • coldbox/trunk/src/system/config/settings.xml

    r240 r261  
    1212        <Setting name="FrameworkBlog" value="http://www.luismajano.com/blog"/> 
    1313        <Setting name="FrameworkForums" value="http://www.luismajano.com/forums"/> 
    14         <Setting name="FrameworkAPI" value="http://www.luismajano.com/projects/coldbox/cfdocs"/> 
     14        <Setting name="FrameworkAPI" value="http://www.coldboxframework.com/documents/cfdocs"/> 
    1515        <Setting name="FrameworkTrac" value="http://ortus.svnrepository.com/coldbox/"/> 
    1616        <Setting name="DashboardName" value="ColdboxDashboard"/> 
  • coldbox/trunk/src/system/dashboard/config/config.xml.cfm

    r239 r261  
    11<?xml version="1.0" encoding="ISO-8859-1"?> 
    2 <Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    3  xsi:noNamespaceSchemaLocation="http://www.luismajano.com/projects/coldbox/schema/config_1.1.0.xsd"> 
     2<Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
     3        xsi:noNamespaceSchemaLocation="http://www.coldboxframework.com/schema/config_1.1.0.xsd"> 
    44        <Settings> 
    55                <Setting name="AppName"                                         value="ColdboxDashboard"/> 
     
    3232                <Setting name="TracSite"                                value="http://ortus.svnrepository.com/coldbox/" /> 
    3333                <Setting name="OfficialSite"                    value="http://www.coldboxframework.com" /> 
    34                 <Setting name="SchemaDocs"                              value="http://www.luismajano.com/projects/coldbox/documents/SchemaDocs/"/> 
     34                <Setting name="SchemaDocs"                              value="http://www.coldboxframework.com/documents/SchemaDocs/"/> 
    3535        </YourSettings> 
    3636         
     
    5252         
    5353        <WebServices> 
    54                 <WebService name="DistributionWS" URL="http://www.luismajano.com/projects/coldbox/distribution/coldbox.cfc?wsdl" /> 
     54                <WebService name="DistributionWS" URL="http://www.coldboxframework.com/distribution/coldbox.cfc?wsdl" /> 
    5555        </WebServices> 
    5656         
  • coldbox/trunk/src/system/dashboard/handlers/ehAppbuilder.cfc

    r249 r261  
    3232         
    3333        <cffunction name="generateApplication" access="public" returntype="void"> 
     34                <cfset var generatorResults = ""> 
     35                <!--- param the necessary values ---> 
     36                <cfset paramValue("onapplicationstart_cb", "false")> 
     37                <cfset paramValue("onrequeststart_cb", "false")> 
     38                <cfset paramValue("onrequestend_cb", "false")> 
     39                <cfset paramValue("onexception_cb", "false")> 
     40                 
    3441                <!--- Start application Generation ---> 
     42                <cfset generatorResults = application.dbservice.get("appGeneratorService").generate(getCollection())> 
     43                <!--- Check for Errors ---> 
     44                <cfif generatorResults.error > 
     45                        <cfset getPlugin("messagebox").setMessage("error", "An error ocurred during generation")> 
     46                <cfelse> 
     47                        <cfset getPlugin("messagebox").setMessage("info", "Your application has been successfully generated.")> 
     48                </cfif> 
    3549                 
    3650                <!--- Set the View ---> 
  • coldbox/trunk/src/system/dashboard/includes/dashboard.js

    r250 r261  
    5252} 
    5353function helpon(){ 
    54         Effect.BlindDown('helpbox'); 
     54        Effect.BlindDown('helpbox',{duration:.5}); 
    5555} 
    5656function helpoff(){ 
    57         new Effect.BlindUp('helpbox'); 
     57        new Effect.BlindUp('helpbox',{duration:.5}); 
    5858} 
    5959//******************************************************************************** 
     
    312312 
    313313//Navigation of app Builder  
    314 function stepper( vsource, vtarget ){ 
     314function stepper( vsource, vtarget, direction ){ 
    315315        $(vsource).style.display = "none"; 
    316         Effect.BlindDown(vtarget, {duration:.3}); 
    317 } 
     316        Effect.SlideDown(vtarget, {duration:.5}); 
     317        //Change step Color 
     318        $("step_" + vtarget).className = 'menu_appgenerator_step_on'; 
     319        //Change Indicator 
     320        if ( direction == "forward" ){ 
     321                currentGeneratorStep =  $("step_" + vtarget).innerHTML; 
     322                $("step_" + vtarget).innerHTML = "^" + currentGeneratorStep; 
     323                $("step_" + vsource).innerHTML = "Done"; 
     324        } 
     325        else{ 
     326                $("step_" + vsource).innerHTML = currentGeneratorStep; 
     327                currentGeneratorStep = $("step_" + vtarget).innerHTML; 
     328                $("step_" + vtarget).innerHTML = "^Done"; 
     329        } 
     330} 
     331var currentGeneratorStep = "^Step 1"; 
    318332//Validation for app Builder 
    319333function validate_basic(vRelocate){ 
     
    341355        else{ 
    342356                if (vRelocate)  
    343                         stepper('basic_set','applicationloggin_set'); 
     357                        stepper('basic_set','applicationloggin_set','forward'); 
    344358                return true; 
    345359        } 
     
    356370        else{ 
    357371                if (vRelocate)  
    358                         stepper('applicationloggin_set','development_set'); 
     372                        stepper('applicationloggin_set','development_set','forward'); 
    359373                return true; 
    360374        } 
    361375} 
    362 function validate_eventhandlers(){ 
     376function validate_eventhandlers(vRelocate){ 
    363377        var errors = ""; 
     378        if( vRelocate == null ){ 
     379                vRelocate = true; 
     380        } 
    364381        if ( $("maineventhandler").value == ""){ 
    365382                errors += "- Please enter the main event handler's name.\n"; 
     
    374391        } 
    375392        else{ 
    376                 if ( validate_basic(false) && validate_applicationlogging(false)){ 
    377                         divon("pleasewait_div"); 
     393                if (vRelocate) 
     394                        stepper('eventhandler_set','generation_set','forward'); 
     395                return true; 
     396        } 
     397} 
     398function validateGeneration(){ 
     399        //Check inputs 
     400        var errors = ""; 
     401        if ( $("authorname").value == ""){ 
     402                errors += "- Please enter your name.\n"; 
     403        } 
     404        if ( $("skeleton_name").value == ""){ 
     405                errors += "- Please enter the name of this skeleton that will be generated.\n"; 
     406        } 
     407        if ( $("generation_target").value == ""){ 
     408                errors += "- Please enter the target directory in the web server where your application will be generated.\n"; 
     409        } 
     410        if ( errors != ""){ 
     411                alert(errors); 
     412                return false; 
     413        } 
     414        else{ 
     415                if ( validate_basic(false) && validate_applicationlogging(false) && validate_eventhandlers(false) ) 
    378416                        return true; 
    379                 } 
    380417                else 
    381418                        return false; 
  • coldbox/trunk/src/system/dashboard/includes/style.css

    r251 r261  
    294294        list-style: none; 
    295295} 
    296 .menu_appgenerator li{ 
     296.menu_appgenerator_step{ 
    297297        float: left; 
    298         height: 25px; 
     298        height: 15px; 
    299299        width:  60px; 
    300300        text-align: center; 
     
    303303        background-image: url(../images/th_bg.gif); 
    304304        background-repeat: repeat-x; 
    305         cursor: pointer; 
    306305        border-top: 1px solid #002F93;  
    307306        border-bottom: 1px solid #0090FF; 
    308307        border-left: 1px solid #ffffff; 
    309308        color: #000000; 
    310         padding-top: 10px; 
    311 } 
    312 .appgenerator_li_on{ 
     309        padding-top: 5px; 
     310} 
     311.menu_appgenerator_step_on{ 
     312        float: left; 
     313        height: 15px; 
     314        width:  60px; 
     315        text-align: center; 
     316        vertical-align: middle; 
    313317        background-color: #5DE3FF; 
    314318        background-image: url(../images/th_sorted_bg.gif); 
    315319        background-repeat: repeat-x; 
    316320        font-weight: bold; 
    317 } 
    318  
    319  
    320  
    321  
    322  
     321        border-top: 1px solid #002F93;  
     322        border-bottom: 1px solid #0090FF; 
     323        border-left: 1px solid #ffffff; 
     324        color: #000000; 
     325        padding-top: 5px; 
     326} 
     327 
     328 
     329 
     330 
     331 
  • coldbox/trunk/src/system/dashboard/model/beans/generatorBean.cfc

    r251 r261  
    55        <!--- Constructor ---> 
    66        <cfset variables.instance = structnew()> 
    7         <cfset variables.instance.basic_step = structnew()> 
    8         <cfset variables.instance.basic_step = structnew()> 
    9         <cfset variables.instance.basic_step = structnew()> 
    10         <cfset variables.instance.basic_step = structnew()> 
    117         
    128        <!--- ************************************************************* ---> 
    139         
    1410        <cffunction name="init" access="public" returntype="generatorBean" output="false"> 
    15                 <cfreturn this> 
     11                <cfscript> 
     12                //Init Bean 
     13                instance.appname = ""; 
     14                instance.appmapping = ""; 
     15                instance.debugmode = ""; 
     16                instance.debugpassword = ""; 
     17                instance.enabledumpvar = ""; 
     18                instance.udflibraryfile = ""; 
     19                instance.messageboxstyleclass = ""; 
     20                instance.defaultlayout = ""; 
     21                instance.customerrortemplate = ""; 
     22                instance.coldboxlogging = ""; 
     23                instance.coldboxlogslocation = ""; 
     24                instance.coldfusionlogging = ""; 
     25                instance.i18nflag = ""; 
     26                instance.defaultlocale = ""; 
     27                instance.defaultlocalestorage = ""; 
     28                instance.defaultresourcebundle = ""; 
     29                instance.appdevmapping = ""; 
     30                instance.configautoreload = ""; 
     31                instance.handlersindexautoreload = ""; 
     32                instance.enablebugreports = ""; 
     33                instance.bugemails = ArrayNew(1); 
     34                instance.devurls = ArrayNew(1); 
     35                instance.webservices = ArrayNew(1); 
     36                instance.maineventhandler = ""; 
     37                instance.defaultevent = ""; 
     38                instance.onapplicationstart = ""; 
     39                instance.onrequeststart = ""; 
     40                instance.onrequestend = ""; 
     41                instance.onexception = ""; 
     42                instance.authorname = ""; 
     43                instance.skeleton_name = ""; 
     44                instance.generation_target = "";                 
     45                return this; 
     46                </cfscript> 
    1647        </cffunction> 
    1748         
     
    1950                 
    2051<!------------------------------------------- PUBLIC -------------------------------------------> 
    21  
    22         <!--- ************************************************************* ---> 
    23          
    24         <cffunction name="changeProxySettings" access="public" returntype="void" output="false"> 
    25                 <cfargument name="proxyflag"            required="true" type="boolean"> 
    26                 <cfargument name="proxyserver"          required="false" type="string" default=""> 
    27                 <cfargument name="proxyuser"            required="false" type="string" default=""> 
    28                 <cfargument name="proxypassword"        required="false" type="string" default=""> 
    29                 <cfargument name="proxyport"            required="false" type="string" default="">               
    30                 <!--- Save Proxy Settings --->   
    31                 <cfset instance.xmlObj.xmlRoot.proxyflag.xmlText = arguments.proxyflag> 
    32                 <cfset instance.xmlObj.xmlRoot.proxyserver.xmlText = arguments.proxyserver> 
    33                 <cfset instance.xmlObj.xmlRoot.proxyuser.xmlText = arguments.proxyuser> 
    34                 <cfset instance.xmlObj.xmlRoot.proxypassword.xmlText = arguments.proxypassword> 
    35                 <cfset instance.xmlObj.xmlRoot.proxyport.xmlText = arguments.proxyport> 
    36                 <!--- Savce XML ---> 
    37                 <cfset saveSettings()> 
    38                 <!--- Parse Settings Again ---> 
    39                 <cfset instance.qSettings = queryNew("")> 
    40                 <cfset parseSettings()> 
    41                 <!--- Save XML ---> 
    42                 <cfset saveSettings()> 
     52         
     53        <!--- ************************************************************* ---> 
     54         
     55        <cffunction name="getInstance" access="public" returntype="struct" output="false">       
     56                <cfreturn instance> 
     57        </cffunction> 
     58         
     59        <!--- ************************************************************* ---> 
     60         
     61        <cffunction name="setInstance" access="public" returntype="void" output="false">         
     62                <cfargument name="instance" type="struct" required="true"> 
     63                <cfset instance = arguments.instance> 
    4364        </cffunction> 
    4465                 
     66        <!--- ************************************************************* ---> 
     67         
     68        <cffunction name="getappname" access="public" output="false" returntype="string" hint="Get appname"> 
     69                <cfreturn instance.appname/> 
     70        </cffunction> 
     71         
     72        <cffunction name="setappname" access="public" output="false" returntype="void" hint="Set appname"> 
     73                <cfargument name="appname" type="string" required="true"/> 
     74                <cfset instance.appname = arguments.appname /> 
     75        </cffunction> 
     76         
     77        <cffunction name="getdebugmode" access="public" output="false" returntype="boolean" hint="Get debugmode"> 
     78                <cfreturn instance.debugmode/> 
     79        </cffunction> 
     80         
     81        <cffunction name="setdebugmode" access="public" output="false" returntype="void" hint="Set debugmode"> 
     82                <cfargument name="debugmode" type="boolean" required="true"/> 
     83                <cfset instance.debugmode = arguments.debugmode/> 
     84        </cffunction> 
     85         
     86        <cffunction name="getdebugpassword" access="public" output="false" returntype="string" hint="Get debugpassword"> 
     87                <cfreturn instance.debugpassword/> 
     88        </cffunction> 
     89         
     90        <cffunction name="setdebugpassword" access="public" output="false" returntype="void" hint="Set debugpassword"> 
     91                <cfargument name="debugpassword" type="string" required="true"/> 
     92                <cfset instance.debugpassword = arguments.debugpassword/> 
     93        </cffunction> 
     94         
     95        <cffunction name="getenabledumpvar" access="public" output="false" returntype="boolean" hint="Get enabledumpvar"> 
     96                <cfreturn instance.enabledumpvar/> 
     97        </cffunction> 
     98         
     99        <cffunction name="setenabledumpvar" access="public" output="false" returntype="voidlean" hint="Set enabledumpvar"> 
     100                <cfargument name="enabledumpvar" type="boolean" required="true"/> 
     101                <cfset instance.enabledumpvar = arguments.enabledumpvar/> 
     102        </cffunction> 
     103         
     104        <cffunction name="getudflibraryfile" access="public" output="false" returntype="string" hint="Get udflibraryfile"> 
     105                <cfreturn instance.udflibraryfile/> 
     106        </cffunction> 
     107         
     108        <cffunction name="setudflibraryfile" access="public" output="false" returntype="void" hint="Set udflibraryfile"> 
     109                <cfargument name="udflibraryfile" type="string" required="true"/> 
     110                <cfset instance.udflibraryfile = arguments.udflibraryfile/> 
     111        </cffunction> 
     112         
     113        <cffunction name="getmessageboxstyleclass" access="public" output="false" returntype="string" hint="Get messageboxstyleclass"> 
     114                <cfreturn instance.messageboxstyleclass/> 
     115        </cffunction> 
     116         
     117        <cffunction name="setmessageboxstyleclass" access="public" output="false" returntype="void" hint="Set messageboxstyleclass"> 
     118                <cfargument name="messageboxstyleclass" type="string" required="true"/> 
     119                <cfset instance.messageboxstyleclass = arguments.messageboxstyleclass/> 
     120        </cffunction> 
     121         
     122        <cffunction name="getdefaultlayout" access="public" output="false" returntype="string" hint="Get defaultlayout"> 
     123                <cfreturn instance.defaultlayout/> 
     124        </cffunction> 
     125         
     126        <cffunction name="setdefaultlayout" access="public" output="false" returntype="void" hint="Set defaultlayout"> 
     127                <cfargument name="defaultlayout" type="string" required="true"/> 
     128                <cfset instance.defaultlayout = arguments.defaultlayout/> 
     129        </cffunction> 
     130         
     131        <cffunction name="getcustomerrortemplate" access="public" output="false" returntype="string" hint="Get customerrortemplate"> 
     132                <cfreturn instance.customerrortemplate/> 
     133        </cffunction> 
     134         
     135        <cffunction name="setcustomerrortemplate" access="public" output="false" returntype="void" hint="Set customerrortemplate"> 
     136                <cfargument name="customerrortemplate" type="string" required="true"/> 
     137                <cfset instance.customerrortemplate = arguments.customerrortemplate/> 
     138        </cffunction> 
     139         
     140        <cffunction name="getcoldboxlogging" access="public" output="false" returntype="boolean" hint="Get coldboxlogging"> 
     141                <cfreturn instance.coldboxlogging/> 
     142        </cffunction> 
     143         
     144        <cffunction name="setcoldboxlogging" access="public" output="false" returntype="void" hint="Set coldboxlogging"> 
     145                <cfargument name="coldboxlogging" type="boolean" required="true"/> 
     146                <cfset instance.coldboxlogging = arguments.coldboxlogging/> 
     147        </cffunction> 
     148         
     149        <cffunction name="getcoldboxlogslocation" access="public" output="false" returntype="string" hint="Get coldboxlogslocation"> 
     150                <cfreturn instance.coldboxlogslocation/> 
     151        </cffunction> 
     152         
     153        <cffunction name="setcoldboxlogslocation" access="public" output="false" returntype="void" hint="Set coldboxlogslocation"> 
     154                <cfargument name="coldboxlogslocation" type="string" required="true"/> 
     155                <cfset instance.coldboxlogslocation = arguments.coldboxlogslocation/> 
     156        </cffunction> 
     157         
     158        <cffunction name="getcoldfusionlogging" access="public" output="false" returntype="boolean" hint="Get coldfusionlogging"> 
     159                <cfreturn instance.coldfusionlogging/> 
     160        </cffunction> 
     161         
     162        <cffunction name="setcoldfusionlogging" access="public" output="false" returntype="void" hint="Set coldfusionlogging"> 
     163                <cfargument name="coldfusionlogging" type="boolean" required="true"/> 
     164                <cfset instance.coldfusionlogging = arguments.coldfusionlogging/> 
     165        </cffunction> 
     166         
     167        <cffunction name="geti18nflag" access="public" output="false" returntype="boolean" hint="Get i18nflag"> 
     168                <cfreturn instance.i18nflag/> 
     169        </cffunction> 
     170         
     171        <cffunction name="seti18nflag" access="public" output="false" returntype="void" hint="Set i18nflag"> 
     172                <cfargument name="i18nflag" type="boolean" required="true"/> 
     173                <cfset instance.i18nflag = arguments.i18nflag/> 
     174        </cffunction> 
     175         
     176        <cffunction name="getdefaultlocale" access="public" output="false" returntype="string" hint="Get defaultlocale"> 
     177                <cfreturn instance.defaultlocale/> 
     178        </cffunction> 
     179         
     180        <cffunction name="setdefaultlocale" access="public" output="false" returntype="void" hint="Set defaultlocale"> 
     181                <cfargument name="defaultlocale" type="string" required="true"/> 
     182                <cfset instance.defaultlocale = arguments.defaultlocale/> 
     183        </cffunction> 
     184         
     185        <cffunction name="getdefaultlocalestorage" access="public" output="false" returntype="string" hint="Get defaultlocalestorage"> 
     186                <cfreturn instance.defaultlocalestorage/> 
     187        </cffunction> 
     188         
     189        <cffunction name="setdefaultlocalestorage" access="public" output="false" returntype="void" hint="Set defaultlocalestorage"> 
     190                <cfargument name="defaultlocalestorage" type="string" required="true"/> 
     191                <cfset instance.defaultlocalestorage = arguments.defaultlocalestorage/> 
     192        </cffunction> 
     193         
     194        <cffunction name="getdefaultresourcebundle" access="public" output="false" returntype="string" hint="Get defaultresourcebundle"> 
     195                <cfreturn instance.defaultresourcebundle/> 
     196        </cffunction> 
     197         
     198        <cffunction name="setdefaultresourcebundle" access="public" output="false" returntype="void" hint="Set defaultresourcebundle"> 
     199                <cfargument name="defaultresourcebundle" type="string" required="true"/> 
     200                <cfset instance.defaultresourcebundle = arguments.defaultresourcebundle/> 
     201        </cffunction> 
     202         
     203        <cffunction name="getappdevmapping" access="public" output="false" returntype="string" hint="Get appdevmapping"> 
     204                <cfreturn instance.appdevmapping/> 
     205        </cffunction> 
     206         
     207        <cffunction name="setappdevmapping" access="public" output="false" returntype="void" hint="Set appdevmapping"> 
     208                <cfargument name="appdevmapping" type="string" required="true"/> 
     209                <cfset instance.appdevmapping = arguments.appdevmapping/> 
     210        </cffunction> 
     211         
     212        <cffunction name="getconfigautoreload" access="public" output="false" returntype="boolean" hint="Get configautoreload"> 
     213                <cfreturn instance.configautoreload/> 
     214        </cffunction> 
     215         
     216        <cffunction name="setconfigautoreload" access="public" output="false" returntype="void" hint="Set configautoreload"> 
     217                <cfargument name="configautoreload" type="boolean" required="true"/> 
     218                <cfset instance.configautoreload = arguments.configautoreload/> 
     219        </cffunction> 
     220         
     221        <cffunction name="gethandlersindexautoreload" access="public" output="false" returntype="boolean" hint="Get handlersindexautoreload"> 
     222                <cfreturn instance.handlersindexautoreload/> 
     223        </cffunction> 
     224         
     225        <cffunction name="sethandlersindexautoreload" access="public" output="false" returntype="void" hint="Set handlersindexautoreload"> 
     226                <cfargument name="handlersindexautoreload" type="boolean" required="true"/> 
     227                <cfset instance.handlersindexautoreload = arguments.handlersindexautoreload/> 
     228        </cffunction> 
     229         
     230        <cffunction name="getenablebugreports" access="public" output="false" returntype="boolean" hint="Get enablebugreports"> 
     231                <cfreturn instance.enablebugreports/> 
     232        </cffunction> 
     233         
     234        <cffunction name="setenablebugreports" access="public" output="false" returntype="void" hint="Set enablebugreports"> 
     235                <cfargument name="enablebugreports" type="boolean" required="true"/> 
     236                <cfset instance.enablebugreports = arguments.getenablebugreports/> 
     237        </cffunction> 
     238         
     239        <cffunction name="getmaineventhandler" access="public" output="false" returntype="string" hint="Get maineventhandler"> 
     240                <cfreturn instance.maineventhandler/> 
     241        </cffunction> 
     242         
     243        <cffunction name="setmaineventhandler" access="public" output="false" returntype="void" hint="Set maineventhandler"> 
     244                <cfargument name="maineventhandler" type="string" required="true"/> 
     245                <cfset instance.maineventhandler = arguments.maineventhandler/> 
     246        </cffunction> 
     247         
     248        <cffunction name="getdefaultevent" access="public" output="false" returntype="string" hint="Get defaultevent"> 
     249                <cfreturn instance.defaultevent/> 
     250        </cffunction> 
     251         
     252        <cffunction name="setdefaultevent" access="public" output="false" returntype="void" hint="Set defaultevent"> 
     253                <cfargument name="defaultevent" type="string" required="true"/> 
     254                <cfset instance.defaultevent = arguments.defaultevent/> 
     255        </cffunction> 
     256         
     257        <cffunction name="getonapplicationstart" access="public" output="false" returntype="boolean" hint="Get onapplicationstart"> 
     258                <cfreturn instance.onapplicationstart/> 
     259        </cffunction> 
     260         
     261        <cffunction name="setonapplicationstart" access="public" output="false" returntype="void" hint="Set onapplicationstart"> 
     262                <cfargument name="onapplicationstart" type="boolean" required="true"/> 
     263                <cfset instance.onapplicationstart =  arguments.onapplicationstart/> 
     264        </cffunction> 
     265         
     266        <cffunction name="getonrequeststart" access="public" output="false" returntype="boolean" hint="Get onrequeststart"> 
     267                <cfreturn instance.onrequeststart/> 
     268        </cffunction> 
     269         
     270        <cffunction name="setonrequeststart" access="public" output="false" returntype="void" hint="Set onrequeststart"> 
     271                <cfargument name="onrequeststart" type="boolean" required="true"/> 
     272                <cfset instance.onrequeststart = arguments.onrequeststart/> 
     273        </cffunction> 
     274         
     275        <cffunction name="getonrequestend" access="public" output="false" returntype="boolean" hint="Get onrequestend"> 
     276                <cfreturn instance.onrequestend/> 
     277        </cffunction> 
     278         
     279        <cffunction name="setonrequestend" access="public" output="false" returntype="void" hint="Set onrequestend"> 
     280                <cfargument name="onrequestend" type="boolean" required="true"/> 
     281                <cfset instance.onrequestend = arguments.onrequestend/> 
     282        </cffunction> 
     283         
     284        <cffunction name="getonexception" access="public" output="false" returntype="boolean" hint="Get onexception"> 
     285                <cfreturn instance.onexception/> 
     286        </cffunction> 
     287         
     288        <cffunction name="setonexception" access="public" output="false" returntype="void" hint="Set onexception"> 
     289                <cfargument name="onexception" type="boolean" required="true"/> 
     290                <cfset instance.onexception = arguments.onexception/> 
     291        </cffunction> 
     292         
     293        <cffunction name="getauthorname" access="public" output="false" returntype="string" hint="Get authorname"> 
     294                <cfreturn instance.authorname/> 
     295        </cffunction> 
     296         
     297        <cffunction name="setauthorname" access="public" output="false" returntype="void" hint="Set authorname"> 
     298                <cfargument name="authorname" type="string" required="true"/> 
     299                <cfset instance.authorname = arguments.authorname/> 
     300        </cffunction> 
     301         
     302        <cffunction name="getskeleton_name" access="public" output="false" returntype="string" hint="Get skeleton_name"> 
     303                <cfreturn instance.skeleton_name/> 
     304        </cffunction> 
     305         
     306        <cffunction name="setskeleton_name" access="public" output="false" returntype="void" hint="Set skeleton_name"> 
     307                <cfargument name="skeleton_name" type="string" required="true"/> 
     308                <cfset instance.skeleton_name = arguments.skeleton_name/> 
     309        </cffunction> 
     310         
     311        <cffunction name="getgeneration_target" access="public" output="false" returntype="string" hint="Get generation_target"> 
     312                <cfreturn instance.generation_target/> 
     313        </cffunction> 
     314         
     315        <cffunction name="setgeneration_target" access="public" output="false" returntype="void" hint="Set generation_target"> 
     316                <cfargument name="generation_target" type="string" required="true"/> 
     317                <cfset instance.generation_target = arguments.generation_target/> 
     318        </cffunction> 
     319         
     320<!------------------------------------------- ARRAY TYPES ------------------------------------------->   
     321         
     322        <cffunction name="getbugemails" access="public" output="false" returntype="array" hint="Get bugemails"> 
     323                <cfreturn instance.bugemails/> 
     324        </cffunction> 
     325         
     326        <cffunction name="setbugemails" access="public" output="false" returntype="void" hint="Set bugemails"> 
     327                <cfargument name="bugemails" type="array" required="true"/> 
     328                <cfset instance.bugemails = arguments.bugemails/> 
     329        </cffunction> 
     330         
     331        <cffunction name="getdevurls" access="public" output="false" returntype="array" hint="Get devurls"> 
     332                <cfreturn instance.devurls/> 
     333        </cffunction> 
     334         
     335        <cffunction name="setdevurls" access="public" output="false" returntype="void" hint="Set devurls"> 
     336                <cfargument name="devurls" type="array" required="true"/> 
     337                <cfset instance.devurls = arguments.devurls/> 
     338        </cffunction> 
     339         
     340        <cffunction name="getwebservices" access="public" output="false" returntype="array" hint="Get webservices"> 
     341                <cfreturn instance.webservices/> 
     342        </cffunction> 
     343         
     344        <cffunction name="setwebservices" access="public" output="false" returntype="void" hint="Set webservices"> 
     345                <cfargument name="webservices" type="array" required="true"/> 
     346                <cfset instance.webservices = arguments.webservices/> 
     347        </cffunction> 
     348 
     349<!------------------------------------------- ARRAY ADDS ------------------------------------------->    
     350 
     351        <cffunction name="addbugemail" access="public" output="false" returntype="void" hint="Add bugemails"> 
     352                <cfargument name="bugemail" type="string" required="true"/> 
     353                <cfset ArrayAppend(instance.bugemails,arguments.bugemail) /> 
     354        </cffunction> 
     355         
     356        <cffunction name="adddevurl" access="public" output="false" returntype="void" hint="Add devurl"> 
     357                <cfargument name="devurl" type="string" required="true"/> 
     358                <cfset ArrayAppend(instance.devurls,arguments.devurl) /> 
     359        </cffunction> 
     360         
     361        <cffunction name="addwebservice" access="public" output="false" returntype="void" hint="Add webservice"> 
     362                <cfargument name="wsname"  type="string"  required="true"/> 
     363                <cfargument name="wsdlpro" type="string"  required="true"/> 
     364                <cfargument name="wsdldev" type="string"  required="false" default=""/> 
     365                <cfset var wsStruct = structnew()> 
     366                <cfset wsStruct.name = arguments.wsname> 
     367                <cfset wsStruct.wsdlpro = arguments.wsdlpro> 
     368                <cfset wsStruct.wsdldev = arguments.wsdldev> 
     369                <cfset ArrayAppend(instance.webservices,wsStruct) /> 
     370        </cffunction> 
     371 
     372         
    45373<!------------------------------------------- PRIVATE -------------------------------------------> 
    46374         
  • coldbox/trunk/src/system/dashboard/model/dbservice.cfc

    r226 r261  
    77                <cfset instance.settings = CreateObject("component","settings").init()> 
    88                <cfset instance.fwsettings = CreateObject("component","fwsettings").init()> 
     9                <cfset instance.appGeneratorService = CreateObject("component","appGeneratorService").init()> 
    910                <cfreturn this> 
    1011        </cffunction> 
  • coldbox/trunk/src/system/dashboard/model/fwsettings.cfc

    r239 r261  
    55        <!--- Constructor ---> 
    66        <cfset variables.instance = structnew()> 
    7         <cfset variables.instance.settingsFilePath = ExpandPath("/coldbox/system/config/settings.xml")> 
     7        <cfset variables.instance.settingsFilePath = ExpandPath("../config/settings.xml")> 
    88        <cfset variables.instance.qSettings = queryNew("")> 
    99        <cfset variables.instance.xmlObj = ""> 
     
    4343                </cfscript>      
    4444        </cffunction> 
     45         
     46        <!--- ************************************************************* ---> 
    4547         
    4648        <cffunction name="saveEncodingSettings" access="public" returntype="void" output="false"> 
  • coldbox/trunk/src/system/dashboard/views/tools/vwAppBuilder.cfm

    r251 r261  
    5555        <!--- STEP MENU ---> 
    5656        <div class="menu_appgenerator"> 
    57                 <ul> 
    58                         <li class="appgenerator_li_on">Step 1</li> 
    59                         <li>Step 2</li> 
    60                         <li>Step 3</li> 
    61                         <li>Step 4</li> 
    62                         <li>Step 5</li> 
    63                         <li>Step 6</li>                                  
    64                 </ul> 
     57                <div class="menu_appgenerator_step_on"  id="step_basic_set">^Step 1</div> 
     58                <div class="menu_appgenerator_step"     id="step_applicationloggin_set">Step 2</div> 
     59                <div class="menu_appgenerator_step"     id="step_development_set">Step 3</div> 
     60                <div class="menu_appgenerator_step"     id="step_webservices_set">Step 4</div> 
     61                <div class="menu_appgenerator_step"     id="step_eventhandler_set">Step 5</div> 
     62                <div class="menu_appgenerator_step"     id="step_generation_set">Step 6</div>                                    
    6563        </div> 
    66         <br><br> 
    67         <div style="margin: 5px"> 
     64        <br><br><br> 
    6865                <!--- ************************************************************* ---> 
    6966                <!--- STEP 1: BASIC CONFIGURATIONS SET ---> 
     
    278275            <!--- Navigation ---> 
    279276            <div align="right"> 
    280                <input type="button" name="next_btn" value="<< Previous" onClick="stepper('applicationloggin_set','basic_set')"> &nbsp; 
    281                <input type="button" name="next_btn" value="Next >>" onClick="stepper('applicationloggin_set','development_set')"> 
     277               <input type="button" name="next_btn" value="<< Previous" onClick="stepper('applicationloggin_set','basic_set', 'backward')"> &nbsp; 
     278               <input type="button" name="next_btn" value="Next >>" onClick="stepper('applicationloggin_set','development_set','forward')"> 
    282279            </div> 
    283280         
     
    374371        <!--- Navigation ---> 
    375372        <div align="right"> 
    376         <input type="button" name="next_btn" value="<< Previous" onClick="stepper('development_set','applicationloggin_set')"> &nbsp; 
    377         <input type="button" name="next_btn" value="Next >>" onClick="stepper('development_set','webservices_set')"> 
     373        <input type="button" name="next_btn" value="<< Previous" onClick="stepper('development_set','applicationloggin_set','backward')"> &nbsp; 
     374        <input type="button" name="next_btn" value="Next >>" onClick="stepper('development_set','webservices_set','forward')"> 
    378375        </div> 
    379376        </fieldset> 
     
    446443         <!--- Navigation ---> 
    447444        <div align="right"> 
    448         <input type="button" name="next_btn" value="<< Previous" onClick="stepper('webservices_set','development_set')" > &nbsp; 
    449         <input type="button" name="next_btn" value="Next >>" onClick="stepper('webservices_set','eventhandler_set')"> 
     445        <input type="button" name="next_btn" value="<< Previous" onClick="stepper('webservices_set','development_set','backward')" > &nbsp; 
     446        <input type="button" name="next_btn" value="Next >>" onClick="stepper('webservices_set','eventhandler_set','forward')"> 
    450447        </div> 
    451448        </fieldset> 
     
    542539        <!--- Navigation ---> 
    543540        <div align="right" style="margin-right:5px;margin-bottom: 10px"> 
    544         <input type="button" name="next_btn" value="<< Previous" onClick="stepper('eventhandler_set','webservices_set')"> &nbsp; 
    545                 <input type="submit" value="Generate Application Skeleton" onClick="return validate_eventhandlers()" > 
     541        <input type="button" name="next_btn" value="<< Previous" onClick="stepper('eventhandler_set','webservices_set','backward')"> &nbsp; 
     542                <input type="button" name="next_btn" value="Next >>" onClick="return validate_eventhandlers()" > 
    546543                </div> 
    547544        </fieldset> 
     
    551548        <!--- STEP 6: GENERATION STEP ---> 
    552549        <!--- ************************************************************* ---> 
    553         <div  id="generation_step" style="display: none"> 
     550        <div  id="generation_set" style="display: none"> 
    554551        <fieldset> 
    555552         <Br> 
     
    564561             </tr>       
    565562              
     563             <tr bgcolor="##ffffff"> 
     564                <td align="right"  style="border-right:1px solid ##ddd"> 
     565                <strong>Your Name <span class="redtext">*</span></strong><br> (Author of the Generation) 
     566                </td> 
     567                <td> 
     568                <input type="text" name="authorname" id="authorname" value="" size="20"> 
     569                </td> 
     570             </tr> 
     571              
    566572                 <tr onMouseOver="getHint('skeleton_name')"  onMouseOut="resetHint()" title=""> 
    567573                <td align="right" width="40%" style="border-right:1px solid ##ddd"> 
     
    589595        <!--- Navigation ---> 
    590596        <div align="right" style="margin-right:5px;margin-bottom: 10px"> 
    591         <input type="button" name="next_btn" value="<< Previous" onClick="stepper('generation_step','eventhandler_set')"> &nbsp; 
     597        <input type="button" name="next_btn" value="<< Previous" onClick="stepper('generation_set','eventhandler_set','backward')"> &nbsp; 
    592598                <input type="submit" value="Generate Application Skeleton" onClick="return validateGeneration()" > 
    593599                </div>