My favorites
▼
|
Sign in
xmlisp
eXtreme Media Lisp: Rich media cross-platform programming for 3D (OpenGL) and 2D applications
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
XMLisp
/
sources
/
XLUI
/
examples
/
2D
/
Currency Converter.lisp
r1809
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;; Currency Converter, compare to http://trac.clozure.com/openmcl/wiki/EasyGuiCurrencyConverter
;; http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/02Essence/02Essence.html#//apple_ref/doc/uid/TP40000863-CH3-SW5
;; 02/04/09 Alexander Repenning
(in-package :xlui)
(defmethod CONVERT-CURRENCY-ACTION ((w application-window) (Button button))
(setf (value (view-named w "amount"))
(* (value (view-named w "rate"))
(value (view-named w "dollars")))))
<application-window title="Currency Converter" width="300" height="180">
<column align="stretch" valign="stretch" padding="9">
<row align="stretch" minimize="vertical" valign="bottom">
<label text="Exchange Rate per $1:" align="right" flex="2"/>
<editable-number name="rate" text="1.0" flex="1"/>
</row>
<row align="stretch" minimize="vertical" valign="bottom">
<label text="Dollars to Convert:" align="right" flex="2"/>
<editable-number name="dollars" text="1.0" flex="1"/>
</row>
<row align="stretch" minimize="vertical" valign="bottom">
<label text="Amount in the other Currency:" align="right" flex="2"/>
<editable-number name="amount" text="1.0" flex="1"/>
</row>
<row align="right" valign="bottom" vflex="1">
<button text="Convert" action="convert-currency-action" default-button="true"/>
</row>
</column>
</application-window>
Show details
Hide details
Change log
r7
by alex.repenning on May 26, 2009
Diff
first version: basic XMLisp with scene graph, picking animation
Go to:
/trunk/XMLisp
/trunk/XMLisp/binaries
/trunk/XMLisp/bookmarks
...ons | Open Screen Project.webloc
...alytics of XMLisp project.webloc
...Multithreading and OpenGL.webloc
...Working with Texture Data.webloc
...b With Open Source Plugin.webloc
...ook - Using the Win32 API.webloc
...r Interface Library (YUI).webloc
...Y- Tropical Paradise Demo.webloc
...ks/Yorik's plant textures.webloc
...arks/xmlisp - Google Code.webloc
/trunk/XMLisp/resources
...k/XMLisp/resources/English.lproj
.../English.lproj/InfoPlist.strings
...urces/English.lproj/MainMenu.nib
...h.lproj/MainMenu.nib/classes.nib
...lish.lproj/MainMenu.nib/info.nib
...oj/MainMenu.nib/keyedobjects.nib
/trunk/XMLisp/resources/images
...sp/resources/images/<XMLisp).png
...Lisp/resources/images/agentcubes
...s/agentcubes/action_pallette.png
...rces/images/agentcubes/behaviors
...cubes/behaviors/behavior_car.png
...ubes/behaviors/behavior_frog.png
...cubes/behaviors/behavior_log.png
...gentcubes/condition_pallette.png
...ntcubes/cover_flow_behaviors.png
...ges/agentcubes/frogger_world.png
...ges/agentcubes/world_toolbar.png
...sources/images/aqua-gradient.png
...urces/images/disclosureDown.tiff
...rces/images/disclosureRight.tiff
...esources/images/file_generic.png
...ources/images/folder_generic.png
...esources/images/green-leaves.jpg
...s/images/name_bar_background.png
.../resources/images/red-leaves.jpg
.../images/scalable-game-design.png
...es/sidebar_selection_texture.png
...urces/images/sidebar_texture.png
/trunk/XMLisp/resources/sounds
...ources/sounds/Destroy-it-now.mp3
...isp/resources/sounds/Explode.mp3
...MLisp/resources/sounds/False.mp3
...XMLisp/resources/sounds/Fupp.mp3
...ources/sounds/Glass-On-Stown.mp3
...XMLisp/resources/sounds/Honk.mp3
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1401 bytes, 32 lines
View raw file
Powered by
Google Project Hosting