calendar/base/content/calendar-views.xul
author Berend Cornelius [:berend] <berend.cornelius@sun.com>
Fri, 23 Jan 2009 11:26:35 +0100
changeset 1730 32974272c46e1bfae1ecd4ffbdfdff9f8c9a5432
parent 1696 f384b7b8145235136b350323c931b0cbc3d56fa5
child 1752 f491e73f7923c704bb1338fb143eb58e01f4e3f5
permissions -rw-r--r--
Bug 468420 - Consolidation of the navigation bar;r=philipp

<?xml version="1.0" encoding="UTF-8"?>
<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is Mozilla Calendar code.
   -
   - The Initial Developer of the Original Code is
   - Berend Cornelius <berend.cornelius@sun.com>
   - Portions created by the Initial Developer are Copyright (C) 2009
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -
   - Alternatively, the contents of this file may be used under the terms of
   - either the GNU General Public License Version 2 or later (the "GPL"), or
   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
   - in which case the provisions of the GPL or the LGPL are applicable instead
   - of those above. If you wish to allow use of your version of this file only
   - under the terms of either the GPL or the LGPL, and not to allow others to
   - use your version of this file under the terms of the MPL, indicate your
   - decision by deleting the provisions above and replace them with the notice
   - and other provisions required by the LGPL or the GPL. If you do not delete
   - the provisions above, a recipient may use your version of this file under
   - the terms of any one of the MPL, the GPL or the LGPL.
   -
   - ***** END LICENSE BLOCK ***** -->

<?xml-stylesheet href="chrome://calendar/skin/calendar-views.css" type="text/css"?>
<?xml-stylesheet href="chrome://calendar/skin/widgets/calendar-widgets.css" type="text/css"?>
<?xml-stylesheet href="chrome://calendar/content/widgets/calendar-widget-bindings.css" type="text/css"?>

<!DOCTYPE overlay SYSTEM "chrome://calendar/locale/calendar.dtd" >


<overlay id="calendar-views-overlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

    <vbox id="calendar-view-box" context="calendar-view-context-menu">
        <hbox id="calendar-nav-control">
            <vbox flex="1">
               <hbox flex="1" class="navigation-inner-box" align="end">
                  <toolbarbutton id="previous-view-button"
                                 class="view-navigation-button"
                                 type="prev"
                                 command="calendar_view_prev_command"/>
                  <toolbarbutton id="today-view-button"
                                 class="today-navigation-button"
                                 label="&calendar.today.button.label;"
                                 command="calendar_view_today_command"/>
                  <toolbarbutton id="next-view-button"
                                 class="view-navigation-button"
                                 type="next"
                                 command="calendar_view_next_command"/>
                  <label id="intervalDescription"
                                 class="view-header"
                                 crop="end"
                                 flex="1"
                                 pack="start"/>
                  <spacer flex="1"/>
                  <label id="calendarWeek"
                         class="view-header"
                         type="end"
                         crop="start"/>
             </hbox>
             <hbox flex="1" class="navigation-bottombox"/>
         </vbox>
         <vbox pack="end">
             <tabs id="view-tabs"
                   class="calview-tabs"
                   setfocus="true">
               <tab id="calendar-day-view-button"
                    label="&calendar.day.button.label;"
                    tooltiptext="&calendar.day.button.tooltip;"
                    calview="day"
                    observes="calendar_day-view_command"/>
               <tab id="calendar-week-view-button"
                    label="&calendar.week.button.label;"
                    tooltiptext="&calendar.week.button.tooltip;"
                    calview="week"
                    observes="calendar_week-view_command"/>
               <tab id="calendar-multiweek-view-button"
                    label="&calendar.multiweek.button.label;"
                    tooltiptext="&calendar.multiweek.button.tooltip;"
                    calview="multiweek"
                    observes="calendar_multiweek-view_command"/>
               <tab id="calendar-month-view-button"
                    label="&calendar.month.button.label;"
                    tooltiptext="&calendar.month.button.tooltip;"
                    calview="month"
                    observes="calendar_month-view_command"/>
             </tabs>
           <box class="navigation-bottombox" type="end"/>
         </vbox>
         <vbox class="view-scrollbarspacer">
           <scrollbar style="visibility:hidden;max-height:1px;height:1px" orient="vertical"/>
         </vbox>
       </hbox>
       <deck flex="1"
            id="view-deck"
            persist="selectedIndex"
            ondraggesture="nsDragAndDrop.startDrag(event, calendarViewDNDObserver);"
            ondragover="nsDragAndDrop.dragOver(event, calendarViewDNDObserver);"
            ondragdrop="nsDragAndDrop.drop(event, calendarViewDNDObserver);">
        <!-- Note: the "id" attributes of the decorated panes **must** follow the
             notation 'type + "-" + "view"', where "type" should refer to the
             displayed time period as described in base/public/calICalendarView.idl -->
        <calendar-decorated-day-view id="day-view" flex="1"
                                     context="calendar-view-context-menu"
                                     item-context="calendar-item-context-menu"/>
        <calendar-decorated-week-view id="week-view" flex="1"
                                      context="calendar-view-context-menu"
                                      item-context="calendar-item-context-menu"/>
        <calendar-decorated-multiweek-view id="multiweek-view" flex="1"
                                           context="calendar-view-context-menu"
                                           item-context="calendar-item-context-menu"/>
        <calendar-decorated-month-view id="month-view" flex="1"
                                       context="calendar-view-context-menu"
                                       item-context="calendar-item-context-menu"/>
      </deck>
    </vbox>
</overlay>