home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / timber-0.0beta.tar.gz / timber-0.0beta.tar / Timber / Timber.rcp < prev    next >
Text File  |  2000-01-14  |  11KB  |  230 lines

  1. #include "TimberRsc.h"
  2.  
  3. FORM ID TimberListForm AT (0 0 160 160)
  4. MENUID TimberListMenu
  5. BEGIN
  6.     TITLE "Timber" 
  7.     REPEATBUTTON "\002" ID TimberListPrevButton AT (43 0 12 13) LEFTANCHOR NOFRAME FONT 4
  8.     SELECTORTRIGGER "" TimberListDateTrigger AT (56 1 43 11) 
  9.     REPEATBUTTON "\003" ID TimberListNextButton AT (PrevRight+1 0 12 13) LEFTANCHOR NOFRAME FONT 4
  10.     PUSHBUTTON "L" ID TimberListListButton AT (2 147 11 12) LEFTANCHOR GROUP TimberListViewGroup
  11.     PUSHBUTTON "M" ID TimberListMonthButton AT (PrevRight+1 PrevTop 11 12) LEFTANCHOR GROUP TimberListViewGroup
  12.     PUSHBUTTON "Q" ID TimberListQuarterButton AT (PrevRight+1 PrevTop 11 12) LEFTANCHOR GROUP TimberListViewGroup
  13.     PUSHBUTTON "Y" ID TimberListYearButton AT (PrevRight+1 PrevTop 11 12) LEFTANCHOR GROUP TimberListViewGroup
  14.     PUSHBUTTON "S" ID TimberListSmoothButton AT (PrevRight+1 PrevTop 11 12) LEFTANCHOR GROUP TimberListViewGroup
  15.     BUTTON "New"   ID TimberListNewButton   AT (PrevRight+5 PrevTop 27 AUTO) FRAME FONT 0
  16.     BUTTON "Goal"   ID TimberListGoalButton   AT (PrevRight+5 PrevTop 27 AUTO) FRAME FONT 0
  17.     BUTTON "Prefs"   ID TimberListPrefButton   AT (PrevRight+5 PrevTop 27 AUTO) FRAME FONT 0
  18.     TABLE ID TimberListTable AT (0 19 145 120) ROWS TimberListRows COLUMNS TimberListCols COLUMNWIDTHS 145
  19.     SCROLLBAR ID TimberListScrollBar AT (150 19 7 122) 
  20.         VALUE 0 MIN 0 MAX 0 PAGESIZE 0
  21.    LABEL "busy..." ID TimberListBusyLabel AT (135 1) FONT 0
  22. END
  23.  
  24. FORM ID TimberGraphForm AT (0 0 160 160)
  25. MENUID TimberGraphMenu
  26. BEGIN
  27.     TITLE "Timber" 
  28.     REPEATBUTTON "\002" ID TimberGraphPrevButton AT (43 0 12 13) LEFTANCHOR NOFRAME FONT 4
  29.     SELECTORTRIGGER "" TimberGraphDateTrigger AT (56 1 43 11) 
  30.     REPEATBUTTON "\003" ID TimberGraphNextButton AT (PrevRight+1 0 12 13) LEFTANCHOR NOFRAME FONT 4
  31.     PUSHBUTTON "L" ID TimberGraphListButton AT (2 147 11 12) LEFTANCHOR GROUP TimberGraphViewGroup
  32.     PUSHBUTTON "M" ID TimberGraphMonthButton AT (PrevRight+1 PrevTop 11 12) LEFTANCHOR GROUP TimberGraphViewGroup
  33.     PUSHBUTTON "Q" ID TimberGraphQuarterButton AT (PrevRight+1 PrevTop 11 12) LEFTANCHOR GROUP TimberGraphViewGroup
  34.     PUSHBUTTON "Y" ID TimberGraphYearButton AT (PrevRight+1 PrevTop 11 12) LEFTANCHOR GROUP TimberGraphViewGroup
  35.     PUSHBUTTON "S" ID TimberGraphSmoothButton AT (PrevRight+1 PrevTop 11 12) LEFTANCHOR GROUP TimberListViewGroup
  36.     BUTTON "New"   ID TimberGraphNewButton   AT (PrevRight+5 PrevTop 27 AUTO) FRAME FONT 0
  37.     BUTTON "Goal"   ID TimberGraphGoalButton   AT (PrevRight+5 PrevTop 27 AUTO) FRAME FONT 0
  38.     BUTTON "Prefs"   ID TimberGraphPrefButton   AT (PrevRight+5 PrevTop 27 AUTO) FRAME FONT 0
  39.    LABEL "busy..." ID TimberGraphBusyLabel AT (135 1)
  40. END
  41.  
  42. FORM ID TimberNewForm AT (2 80 156 78)
  43. MODAL
  44. BEGIN
  45.   TITLE "Add New Weight"
  46.   LABEL "Date:" AUTOID AT (26 22) Font 1 
  47.   SELECTORTRIGGER "" ID NewDateTrigger AT (PrevRight+4 PrevTop 56 AUTO) LEFTANCHOR FONT 0
  48.   LABEL "Weight:" AUTOID AT (13 PrevBottom+4) Font 1  
  49.   FIELD ID NewWeightField AT (PrevRight+4 PrevTop 58 AUTO) USABLE LEFTALIGN FONT 0 UNDERLINED MAXCHARS 10   
  50.   BUTTON "  Add  " ID NewAddButton AT (5 61 AUTO AUTO)
  51.   BUTTON "Cancel" ID NewCancelButton AT (PrevRight+6 PrevTop AUTO AUTO)
  52. END
  53.  
  54. FORM ID TimberEditForm AT (2 80 156 78)
  55. MODAL
  56. BEGIN
  57.   TITLE "Edit Weight"
  58.   LABEL "Date:" AUTOID AT (26 22) Font 1 
  59.   SELECTORTRIGGER "" ID EditDateTrigger AT (PrevRight+4 PrevTop 56 AUTO) LEFTANCHOR FONT 0
  60.   LABEL "Weight:" AUTOID AT (13 PrevBottom+4) Font 1  
  61.   FIELD ID EditWeightField AT (PrevRight+4 PrevTop 58 AUTO) USABLE LEFTALIGN FONT 0 UNDERLINED MAXCHARS 10   
  62.   BUTTON "Change" ID EditOKButton AT (5 61 AUTO AUTO)
  63.   BUTTON "Cancel" ID EditCancelButton AT (PrevRight+5 PrevTop AUTO AUTO)
  64.   BUTTON "Delete" ID EditDeleteButton AT (PrevRight+5 PrevTop AUTO AUTO)
  65. END
  66.  
  67. FORM ID TimberDeleteForm AT (2 80 156 78)
  68. MODAL
  69. BEGIN
  70.   TITLE "Delete Weights"
  71.   LABEL "Date:" AUTOID AT (5 22) Font 1 
  72.   SELECTORTRIGGER "" ID EditDeleteDateTrigger AT (PrevRight+4 PrevTop 56 AUTO) LEFTANCHOR FONT 0
  73.   LABEL "" AUTOID AT (5 PrevBottom+4)
  74.   CHECKBOX "Also delete prior to date" ID EditDeletePriorCheck AT (5 PrevTop AUTO AUTO) FONT 1
  75.   BUTTON "Delete" ID EditDeleteOKButton AT (5 61 AUTO AUTO)
  76.   BUTTON "Cancel" ID EditDeleteCancelButton AT (PrevRight+6 PrevTop AUTO AUTO)
  77. END
  78.  
  79. FORM ID TimberPrefForm AT (2 2 156 156)
  80. MODAL
  81. BEGIN
  82.   TITLE "Timber Preferences"
  83.   LABEL "List precision:" AUTOID AT (34 17) FONT 1
  84.   POPUPTRIGGER "1" PrefListPrecisionTrigger AT (PrevRight+1 PrevTop AUTO AUTO)
  85.   POPUPLIST ID PrefListPrecisionTrigger PrefListPrecisionList
  86.   LIST "0" "1" "2" "3" "4" ID PrefListPrecisionList AT (PrevLeft+14 PrevTop 9 56) NONUSABLE DISABLED
  87.   
  88.   LABEL "Graph precision:" AUTOID AT (23 PrevTop+11) FONT 1
  89.   POPUPTRIGGER "1" PrefDrawPrecisionTrigger AT (PrevRight+1 PrevTop AUTO AUTO)
  90.   POPUPLIST ID PrefDrawPrecisionTrigger PrefDrawPrecisionList
  91.   LIST "0" "1" "2" "3" "4" ID PrefDrawPrecisionList AT (PrevLeft+14 PrevTop 9 56) NONUSABLE DISABLED
  92.  
  93.   CHECKBOX "Use global min/max" ID PrefGlobalMinMaxCheck AT (20 PrevTop+21 AUTO AUTO) FONT 1
  94. CHECKBOX "Show goal line" ID PrefShowGoalCheck AT (20 PrevBottom AUTO AUTO) FONT 1
  95. CHECKBOX "Show average line" ID PrefShowAverageCheck AT (20 PrevBottom AUTO AUTO) FONT 1
  96. CHECKBOX "Month scroll in list" ID PrefMonthScrollCheck AT (20 PrevBottom AUTO AUTO) FONT 1
  97. CHECKBOX "Ask before replace" ID PrefReplaceAskCheck AT (20 PrevBottom+10 AUTO AUTO) FONT 1 CHECKED
  98. CHECKBOX "Ask before delete" ID PrefDeleteAskCheck AT (20 PrevBottom AUTO AUTO) FONT 1 CHECKED
  99.   BUTTON "  OK  " ID PrefOKButton AT (5 139 AUTO AUTO)
  100.   BUTTON "Cancel" ID PrefCancelButton AT (PrevRight+5 PrevTop AUTO AUTO)
  101. END
  102.  
  103. FORM ID TimberGoalForm AT (2 40 156 118)
  104. MODAL
  105. BEGIN
  106.   TITLE "Edit Goal"
  107.   LABEL "Start date:" AUTOID AT (25 22) Font 1 
  108.   SELECTORTRIGGER "" ID GoalStartDateTrigger AT (88 22 56 12) LEFTANCHOR FONT 0
  109.   LABEL "" AUTOID AT (13 38)
  110.   LABEL "Start weight:" GoalStartWeightLabel AT (13 38) Font 1  
  111.   FIELD ID GoalStartWeightField AT (88 38 50 12) USABLE LEFTALIGN FONT 0 UNDERLINED MAXCHARS 10   
  112.   LABEL "" AUTOID AT (39 61) 
  113.   LABEL "End date:" AUTOID AT (38 61) USABLE Font 1 
  114.   SELECTORTRIGGER "" ID GoalEndDateTrigger AT (88 61 56 12) LEFTANCHOR FONT 0
  115.   LABEL "" AUTOID AT (26 77)
  116.   LABEL "End weight:" GoalEndWeightLabel AT (26 77) USABLE Font 1  
  117.   FIELD ID GoalEndWeightField AT (88  77 50 12) LEFTALIGN FONT 0 UNDERLINED MAXCHARS 10   
  118.   BUTTON "Set goal" ID GoalOKButton AT (5 101 AUTO AUTO)
  119.   BUTTON "Cancel" ID GoalCancelButton AT (PrevRight+5 PrevTop AUTO AUTO)
  120. END
  121.  
  122. MENU TimberListMenu
  123. BEGIN
  124.   PULLDOWN "Edit"
  125.   BEGIN 
  126.     MENUITEM "Add new weight...  " EditAddItem "N"
  127.     MENUITEM "Delete weights...  " EditDeleteItem "D"
  128.   END
  129.   PULLDOWN "Options"
  130.   BEGIN
  131.     MENUITEM "Set goal...   " OptionsGoalItem "G"
  132.     MENUITEM "Preferences...  " OptionsPrefItem "R"
  133.     MENUITEM "-" AUTOID
  134.     MENUITEM "Help" OptionsHelpItem "H"
  135.     MENUITEM "About GPL" OptionsAboutGPLItem "L"
  136.     MENUITEM "About Timber" OptionsAboutItem "A"
  137.   END
  138. END
  139.  
  140. ALERT ID DeleteAlert
  141. CONFIRMATION
  142. BEGIN
  143.   TITLE "Delete Weight?"
  144.   MESSAGE "Delete the weight entry of ^1?"
  145.   BUTTONS "OK" "Cancel"
  146. END
  147.   
  148. ALERT ID ReplaceAlert
  149. CONFIRMATION
  150. BEGIN
  151.   TITLE "Replace Weight?"
  152.   MESSAGE "Replace the weight entry of ^1?"
  153.   BUTTONS "OK" "Cancel"
  154. END
  155.   
  156. ALERT ID MoveAlert
  157. CONFIRMATION
  158. BEGIN
  159.   TITLE "Move Weight?"
  160.   MESSAGE "Move the weight entry from ^1\nto ^2?"
  161.   BUTTONS "OK" "Cancel"
  162. END
  163.   
  164. ALERT ID ChangeAlert
  165. CONFIRMATION
  166. BEGIN
  167.   TITLE "Change and Move Weight?"
  168.   MESSAGE "Change the weight entry of ^1\nand move it to\n^2?"
  169.   BUTTONS "OK" "Cancel"
  170. END
  171.   
  172. ALERT ID DebugAlert
  173. INFORMATION
  174. BEGIN
  175.   TITLE "Debug Message"
  176.   MESSAGE "^1"
  177.   BUTTONS "OK"
  178. END
  179.  
  180. ALERT ID DebugAlert3
  181. INFORMATION
  182. BEGIN
  183.   TITLE "Debug Message"
  184.   MESSAGE "^1 ^2 ^3"
  185.   BUTTONS "OK"
  186. END
  187.  
  188. ALERT ID MemoryFullAlert
  189. ERROR
  190. BEGIN
  191.   TITLE "Memory Full"
  192.   MESSAGE "Not enough memory.\n\nNo new records can be created."
  193.   BUTTONS "OK" 
  194. END
  195.  
  196. ALERT ID NoTimberDBAlert
  197. ERROR
  198.   BEGIN
  199.   TITLE "No Database"
  200.   MESSAGE "Timber can't find its database.\n\nThe program will be aborted."
  201.   BUTTONS "OK"
  202. END
  203.  
  204. STRING ID OptionsHelpString "\225 View date selection:\nTap on the date at the top of the view, use the arrow buttons left and right of it, or use the scroll buttons. In the list view, you can also use the scroll bar.\n\n\225 View selection:\nTap on the view selector at the bottom left of the view.\n Choose (L)ist, (M)onth, (Q)uarter, (Y)ear or (S)moothed year view.\n\n\225 Create a new entry:\nTap on the \"New\" button.\n\n\225 Edit or delete an entry:\nIn list view, tap on the entry.\n\n\225 Delete multiple entries:\nTo delete all entries prior to and including a date use \"Delete weights\" in the \"Edit\" menu.\n\n\225 Set goal:\nTap on the \"Goal\" button.\n\n\225 Set preferences:\nTap on the \"Prefs\" button."
  205.  
  206. STRING ID AboutGPLString "Copyright (C) 2000\nby Jens R. Woinowski\n\nThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\nThe main terms of GNU GPL are:\n\n\225 You may use and distribute this program freely.\n\n\225 If you distribute this program, you have to do it together with the sources. In the spirit of the GPL, you may also beam this program, as long as the \"About Timber\" information is not removed or changed. So, anybody still can get the sources via the internet.\n\n\225 You may also make changes to the program, as long as you impose GPL rules on your changed version and deliver your changed sources to the public.\n\n\225 You may charge reasonable copying fees for distributing this program.\n\n\225 This program is provided on an \"as is basis\". No implicit or explicit guarantees of error freeness or usability are made. No liability for damages or financial losses caused by using this program is taken by the author. Read GPL very carefully concerning this issue!\n\n\225 The idea of GPL is to deliver good software to a broad public. E.g., Timber was built using GPL tools on a LINUX system. Without these, it would not exist..." 
  207. ALERT ID OptionsAboutAlert
  208. INFORMATION
  209. BEGIN
  210.   TITLE "About Timber"
  211.   MESSAGE "Timber 0.0 Beta\n\225 Timber is open source\n    software under GPL.\n\225 Get sources at:\n    www.woinowski.de\n\225 Contact:\n    jens@woinowski.de\n\n\tJens R. Woinowski\n\t\t      Jan 14, 2000"
  212.   BUTTONS "OK"
  213. END
  214.  
  215. ALERT ID DeleteOldAlert
  216. CONFIRMATION
  217. BEGIN
  218.   TITLE "Delete Weights?"
  219.   MESSAGE "Do really want to delete ^1 entries?"
  220.   BUTTONS "Delete" "Cancel"
  221. END
  222.  
  223.  
  224. STRING ID ChooseDayTitle "Select Day"
  225. STRING ID ChooseMonthTitle "Select Month"
  226.  
  227. VERSION ID 1000 "0.0"
  228.  
  229. ICON "Timber.bmp"
  230.