Changeset 342


Ignore:
Timestamp:
06/14/12 18:34:52 (13 years ago)
Author:
tjcschipper
Message:
  • Fixed callbacks/actions in LineWithActionsWidgetThijs?.js. Previously an onClick event would not fire the correct callback. They were also incorrectly bound to the context of the widget, so the this keyword referred to the properties object instead of the LineWithActions?.
  • Changed a bunch of stuff in CSS files, general layout.
  • Added another mockup page to show the Session selection page.
Location:
Dev/branches/rest-dojo-ui/client
Files:
2 added
11 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/css/layout.css

    r340 r342  
    4545    /* Section headers */
    4646    font-size: 18px;
     47    margin: 0 0 4px 0;
    4748}
    4849.claro h4 {
     
    6970    height: 16px;
    7071    line-height: 16px;
     72    margin: 0 0 4px 0;
    7173}
    7274.claro .breadcrumbs .breadcrumb {
  • Dev/branches/rest-dojo-ui/client/rft/css/rftButtons.css

    r339 r342  
    6363}
    6464.claro .rftBlockButton .rftIcon {
    65     height: 16px;
    66     width: 16px;
    67     background-image: url('images/icons/rftIcons16.png');
     65    height: 16px !important;
     66    width: 16px !important;
     67    background-image: url('images/icons/rftIcons16.png') !important;
     68    margin-right: 4px !important;
    6869}
    6970.claro .rftBlockButton.rftBlockButtonHover .rftIcon {
    70     background-image: url('images/icons/rftIcons16black.png');
     71    background-image: url('images/icons/rftIcons16black.png') !important;
    7172}
    7273.claro .rftBlockButton.rftBlockButtonHover .dijitButtonNode {
     
    113114    color: #993dec;
    114115}
    115 
     116.claro .rftBlockButton.trans .dijitButtonNode {
     117    background: transparent;
     118}
     119.claro .rftBlockButton.trans.rftBlockButtonHover .dijitButtonNode {
     120    background: #ffffff !important;
     121    color: #000000;
     122}
    116123
    117124/* InlineButton */
  • Dev/branches/rest-dojo-ui/client/rft/css/rftIcons.css

    r335 r342  
    3434    background-position: -64px 0px;
    3535}
    36 .rftIconSurvey {
     36.rftIconSessionActive {
    3737    background-position: -96px 0px;
    3838}
    39 .rftIconQuestion {
     39.rftIconSessionTemplate {
    4040    background-position: -128px 0px;
    4141}
    42 .rftIconQuestionAlt {
     42.rftIconSurvey {
    4343    background-position: -160px 0px;
    4444}
    45 .rftIconAccept {
     45.rftIconQuestion {
    4646    background-position: -192px 0px;
    4747}
    48 .rftIconCancel {
     48.rftIconQuestionFill {
    4949    background-position: -224px 0px;
    5050}
    51 .rftIconDelete {
     51.rftIconRespondent {
    5252    background-position: -256px 0px;
    5353}
    54 .rftIconHome {
     54.rftIconAnswer {
    5555    background-position: -288px 0px;
    5656}
    57 .rftIconPreview {
     57.rftIconAnswerSet {
    5858    background-position: -320px 0px;
    5959}
    60 .rftIconSave {
     60.rftIconGameData {
    6161    background-position: -352px 0px;
    6262}
    63 .rftIconSettings {
     63.rftIconUser {
    6464    background-position: -384px 0px;
    6565}
    66 .rftIconUndo {
     66.rftIconAccept {
    6767    background-position: -416px 0px;
    6868}
    69 .rftIconPrevious {
     69.rftIconCancel {
    7070    background-position: -448px 0px;
    7171}
    72 .rftIconNext {
     72.rftIconPlus {
    7373    background-position: -480px 0px;
    7474}
    75 .rftIconHalfArrowUp {
     75.rftIconMinus {
    7676    background-position: -512px 0px;
    7777}
    78 .rftIconHalfArrowDown {
     78.rftIconIncrease {
    7979    background-position: -544px 0px;
    8080}
    81 .rftIconHalfArrowLeft {
     81.rftIconDecrease {
    8282    background-position: -576px 0px;
    8383}
    84 .rftIconHalfArrowRight {
     84.rftIconDelete {
    8585    background-position: -608px 0px;
    8686}
    87 .rftIconFullArrowUp {
     87.rftIconHome {
    8888    background-position: -640px 0px;
    8989}
    90 .rftIconFullArrowDown {
     90.rftIconPreview {
    9191    background-position: -672px 0px;
    9292}
    93 .rftIconFullArrowLeft {
     93.rftIconSave {
    9494    background-position: -704px 0px;
    9595}
    96 .rftIconFullArrowRight {
     96.rftIconDiscard {
    9797    background-position: -736px 0px;
    9898}
    99 .rftIconHelp {
     99.rftIconSettings {
    100100    background-position: -768px 0px;
    101101}
    102 .rftIconInspect {
     102.rftIconUndo {
    103103    background-position: -800px 0px;
    104104}
    105 .rftIconMinus {
     105.rftIconRedo {
    106106    background-position: -832px 0px;
    107107}
    108 .rftIconPlus {
     108.rftIconBack {
    109109    background-position: -864px 0px;
    110110}
    111 
    112 /*  The following do not yet have an icon and are displaced a bit to make room for possible extra inlineIcons.
    113     The reserved offsets are:  896, 928, 960, 992, 1024, 1056 and 1088 */
    114 .rftIconRespondent {
     111.rftIconForward {
     112    background-position: -896px 0px;
     113}
     114.rftIconRefresh {
     115    background-position: -928px 0px;
     116}
     117.rftIconHelp {
     118    background-position: -960px 0px;
     119}
     120.rftIconInspect {
     121    background-position: -992px 0px;
     122}
     123.rftIconFullArrowUp {
     124    background-position: -1024px 0px;
     125}
     126.rftIconFullArrowDown {
     127    background-position: -1056px 0px;
     128}
     129.rftIconFullArrowLeft {
     130    background-position: -1088px 0px;
     131}
     132.rftIconFullArrowRight {
    115133    background-position: -1120px 0px;
    116134}
    117 .rftIconAnswerSet {
     135.rftIconHalfArrowUp {
    118136    background-position: -1152px 0px;
    119137}
    120 .rftIconAnswer {
     138.rftIconHalfArrowDown {
    121139    background-position: -1184px 0px;
    122140}
    123 .rftIconGameData {
     141.rftIconHalfArrowLeft {
    124142    background-position: -1216px 0px;
    125143}
     144.rftIconHalfArrowRight {
     145    background-position: -1248px 0px;
     146}
  • Dev/branches/rest-dojo-ui/client/rft/css/rftSelector.css

    r339 r342  
    5656    color: #ffffff;
    5757}
     58.claro .rftLineWithButtons.trans {
     59    background-color: transparent;
     60    color: #ffffff;
     61}
    5862
    5963/* Background colour settings for the various contexts of rftLineWithButtons */
     
    103107    background-color: #00ff00;
    104108}
     109
     110/* rftSessionBar */
     111.claro .rftSessionBar {
     112    margin: 8px 0;
     113}
     114.claro .rftSessionBar .rftIcon.typeIcon {
     115    background-image: url('images/icons/rftIcons32.png');
     116    height: 32px;
     117    width: 32px;
     118    margin: 20px 8px;
     119    float: left;
     120}
     121.claro .rftSessionBar .rftLineWithButtons {
     122    margin: 0;
     123    padding: 0;
     124}
  • Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidgetThijs.js

    r339 r342  
    2828                            baseClass: 'rftBlockButton',
    2929                            modifiers: this.modifiers,
    30                             label: action,
    31                             iconClass: 'rftIcon rftIcon'+action,
     30                            label: "Default",
     31                            iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
    3232                            title: action,
    33                             onClick: lang.hitch(this, function(){
    34                                 this.actions[action].callback(this.userObject);
    35                             })
    36                         },
    37                         this.actions[action].properties);
     33                            onClick: lang.hitch(this, this.actions[action].callback)
     34                        }, this.actions[action].properties);
    3835                        properties["class"] = properties.modifiers;
    3936                        new Button(properties).placeAt(this.buttonsNode);
     
    4239                            baseClass: 'rftInlineButton',
    4340                            modifiers: 'black',
     41                            label: "Default",
    4442                            showLabel: false,
    45                             iconClass: 'rftIcon rftIcon'+action,
     43                            iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
    4644                            title: action,
    47                             onClick: lang.hitch(this, function(){
    48                                 this.actions[action].callback(this.userObject);
    49                             })
    50                         },
    51                         this.actions[action].properties);
     45                            onClick: lang.hitch(this, this.actions[action].callback)
     46                        }, this.actions[action].properties);
    5247                        properties["class"] = properties.modifiers;
    5348                        new Button(properties).placeAt(this.buttonsNode);
     
    6560                return !preventDefault;
    6661            },
    67             onClick: function(e) {}
     62            onClick: function(e) {},
     63            _setTitleAttr: function(value){
     64                this.title = value;
     65                this.refresh();
     66            }
    6867        });
    6968    });
  • Dev/branches/rest-dojo-ui/client/rft/ui/SelectorThijs.js

    r338 r342  
    3737                    modifiers: this.modifiers,
    3838                    actions: {
    39                         "Accept" : {
     39                        "AddToSurvey" : {
    4040                            callback: function(arg){},
    4141                            properties: {
    4242                                blockButton: true,
    43                                 modifiers: this.modifiers
     43                                modifiers: this.modifiers,
     44                                icon: "Accept",
     45                                label: "Include"
    4446                            }
    4547                        }
     
    5052                    modifiers: this.modifiers,
    5153                    actions: {
    52                         "HalfArrowDown" : {
     54                        "ToggleDropdown" : {
    5355                            callback: lang.hitch(this,function(){
    5456                                var node = this.optionsNode;
     
    8789                                blockButton: true,
    8890                                modifiers: this.modifiers,
    89                                 showLabel: false
     91                                showLabel: false,
     92                                icon: "HalfArrowDown"
    9093                            }
    9194                        }
     
    9598                    title: 'Are there direct colleagues among the other participants?',
    9699                    actions: {
    97                         "Inspect" : {
     100                        "InfoHover" : {
    98101                            callback: infoFunction,
    99102                            properties: {
    100103                                blockButton: false,
    101                                 showLabel: false
     104                                showLabel: false,
     105                                icon: "Inspect"
    102106                            }
    103107                        }
  • Dev/branches/rest-dojo-ui/client/rft/ui/templates/List.html

    r316 r342  
    11<div>
    22    <div data-dojo-attach-point="containerNode"></div>
    3     <div>
    4         <span>Move selected</span>
    5         <button data-dojo-type="dijit.form.Button">Up</button>
    6         <button data-dojo-type="dijit.form.Button">Down</button>
     3    <div style="float: right;">
     4        <span>Move selected: </span>
     5        <button data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftBlockButton', iconClass:'rftIcon rftIconFullArrowUp'" class="trans"></button>
     6        <button data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftBlockButton', iconClass:'rftIcon rftIconFullArrowDown'" class="trans"></button>
    77    </div>
    88</div>
Note: See TracChangeset for help on using the changeset viewer.