Smalltalk_

Similar documents
Smalltalk_

Smalltalk_

はじめに

Smalltalk_

keysql42_usersguide

Ⅴ 古陶器にみる装飾技法

Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web up

相続支払い対策ポイント

150423HC相続資産圧縮対策のポイント

ハピタス のコピー.pages

Copyright 2008 All Rights Reserved 2

ProVisionaire Control V3.0セットアップガイド

PPP_‚Ü‚Æ‚ß.pdf

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=

Copyright 2010 Funai Consulting Co.,ltd. All right reserved. 1

初心者にもできるアメブロカスタマイズ新2016.pages

- 2 Copyright (C) All Rights Reserved.

Neos PRO User Manuals_JP1

web06.dvi

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

<93C18F578B4C8E965F896988E420976D91BC2E6D6364>

Copyright All Rights Reserved. -2 -!

[ ][ ] HTML [ ] HTML HTML

4D Draw

凡友83号.indd

凡友86号.indd

IPA:セキュアなインターネットサーバー構築に関する調査

実施していただく前に

Microsoft Word - 最終版 バックせどりismマニュアル .docx

Copyright c 2008 Zhenjiang Hu, All Right Reserved.


untitled

Max Library Size Smoke 10 Network Panel Display Default Web Browser Smoke Web Mac open Cleaner Export Destination Path Autodesk Cleaner XL Microsoft W

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir

Solibri Model Checker 9.5 スタードガイド

vuejs_meetup.key

BC4J...4 BC4J Association JSP BC4J JSP OC4J

1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2


Microsoft PowerPoint - uniCMS操作マニュアル.ppt

untitled

untitled

WPD2009_Plone3_theme-2.key

CGI開発支援解説


Cosminexus Application Designer操作ガイド

次世代育成支援行動計画


リバースマップ原稿2

健康保険組合のあゆみ_top

グラフ数値読み取りシステム (GSYS2.4) 利用の手引

ÆþÌçGTK+

Quickstart Guide 3rd Edition

Ⅱ 学校給食の意義と役割

10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #<PlanItem id nil, name nil,...> > item.name = "" => "" > item.valid? => true valid? true false

HIS-CCBASEver2

グローバル タイトル変換テーブルの編集

untitled

6 (1) app.html.eex 28 lib/nano_planner_web/templates/layout/app.html.eex 27 <footer> Oiax Inc <%= this_year() %> Oiax Inc. 29 </footer>

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows

1: Android 2 Android 2.1 Android 4 Activity Android Service ContentProvider BroadcastReceiver Activity ( ): Android 1 Android Service ( ): ContentProv

untitled

ZEMAX Nagata DLL Volume-CAD c Copyright by RIKEN All Rights Reserved : : ( )

2

Elastic stack Jun Ohtani 1

WinDriver PCI Quick Start Guide

Nios II 簡易チュートリアル

Abstract Kinect for Windows RGB Kinect for Windows v Kinect for Windows v2

Lab GPIO_35 GPIO

homes01_P _chousa_sai.indd

KDDI

19_22_26R9000操作編ブック.indb

やよいの顧客管理

弥生給与/やよいの給与計算

弥生 シリーズ

弥生会計 プロフェッショナル/スタンダード/やよいの青色申告

弥生会計/やよいの青色申告

弥生会計 ネットワーク/プロフェッショナル2ユーザー


Copyright 2008 NIFTY Corporation All rights reserved. 2

Copyright 2009, SofTek Systems, Inc. All rights reserved.

2

Nios II ハードウェア・チュートリアル

LiveCode初心者開発入門サンプル

\\afs001-0m0005\project02\A32\M

PowerPoint Presentation

Oracle Warehouse Builder 10g Release 2 リポジトリ拡張Cookbook

2 key. 3

TOPLON PRIO操作手順



2

Visio-.v...[..1.vsd


Java演習(4) -- 変数と型 --


Ver.1 1/17/2003 2

Copyright 2006 KDDI Corporation. All Rights Reserved page1


16 NanoPlanner name PlanItem.changeset/2 > validate_required([:name]) name :name Ecto.Changeset validate_required/3 Ecto.Changeset "validate_"

Transcription:

USB 20120704/ VisualWorks78nc.zip vw78jun793mac.zip vw78jun793win.zip 20120704/ ClickEarth.html ClickEarth.pdf ClickEarth.st ClickEarth_files GUI GUI VisualWorks ClickEarth.html System Browser KSU Package Example System workspace fileinblock packageblock fileinblock := [ [ afilename afilename := JunFileRequesterDialog requestfilename. afilename ifnil: [^nil]. afilename filein] on: UserInterrupt do: [:anexception anexception proceed]]. packageblock := [ acollection (acollection := OrderedCollection new) add: #comment: -> 'Copyright 2008-2012 KSU (Kyoto Sangyo University). All Right Reserved.'; add: #bundle: -> #KSU; add: #package: -> 'KSU-Template'; add: #namespace: -> #KSU; add: #category: -> 'KSU-Template'; yourself. JunSystem perform: ((acollection collect: [:each each key]) inject: String new into: [:selector :key selector, key]) assymbol witharguments: (acollection collect: [:each each value]) asarray]. fileinblock value. packageblock value ClickEarth.st.st KSU Package KSU-Template Template example1

windowspec Edit GUI

3

Menu Bar Apply Menu: #menubar Menu resources menubar

Click Widget Window ClickWidget1 Position ClickWidget1 ClickWidget1 Propotion Offset Apply

Basics ID #imageofearth

2 String ID

Apply Input Field 2

2 ID #longitudefiled Type String Apply

Apply Position label Color

Install example1

Menu Bar Menu Bar Smalltalk GUI Application Model windowspec windowspec KSU-Template, ClickEarth, Class, windowspec windowspec "Tools.UIPainter new openonclass: self andselector: #windowspec" <resource: #canvas> ^#(#{UI.FullSpec} #window: #(#{UI.WindowSpec} #label: ' ' #min: #(#{Core.Point} 512 320 ) #max: #(#{Core.Point} 512 320 ) #bounds: #(#{Graphics.Rectangle} 468 280 980 600 ) #flags: 4 <-- Menu Bar #menu: #menubar ) #component: Transcript

Transcript

Transcript Transcript cr; show: 'hoge' Do it hoge

windowspec Edit Visual #imageofearth Apply

resources imageofearth

Image Editor Install Install

Selector zzz

Default Click: #clicked: Filed Aspect

Install Filed KSU-Template, Instance, aspects, latitudefield latitudefield latitudefield ifnil: [latitudefield := String new asvalue]. ^latitudefield KSU-Template, Instance, aspects, longitudefield longitudefield longitudefield ifnil: [longitudefield := String new asvalue]. ^longitudefield imageofearth #clicked: KSU-Template, Instance, actions, clicked: clicked: thepoint apoint awrapper asensor aboolean apoint := thepoint. (awrapper := self builder ifnil: [^nil] ifnotnil: [:abuilder abuilder componentat: #imageofearth]) ifnil: [^nil]. asensor := awrapper widget controller sensor. JunCursors crosscursor showwhile: [aboolean := true. [aboolean] whiletrue: [apoint := asensor cursorpoint. apoint y = 0 iftrue: [apoint := apoint x @ JunGeometry accuracy]. (self pictureofearth bounds containspoint: apoint) iftrue: [self updatelongitudefield: apoint; updatelatitudefield: apoint; updateviewfinderofearth: apoint. aboolean := asensor shiftdown]]] example1

click imageofearth ID imageofearth ID #imageofearth Senders imageofearth

Smalltalk MVC Application Model Sensor ( ) Builder ID Sensor View & Controller Filed Filed aspects Application Model Model View & Controller menubar Source decode KSU-Template, ClickEarth, Class, resources, menubar menubar "Tools.MenuEditor new openonclass: self andselector: #menubar" <resource: #menu> ^#(#{UI.Menu} #( #(#{UI.MenuItem} #rawlabel: ' ' #submenu: #(#{UI.Menu} #( #(#{UI.MenuItem} #rawlabel: ' ' #value: #viewearth ) #(#{UI.MenuItem} #rawlabel: ' ' #value: #closerequest ) ) #(1 1 ) nil ) ) ) #(1 ) nil ) decodeasliteralarray inspect it

Menu workspace self startup menubar clicked: _clicked: thepoint apoint awrapper asensor aboolean apoint := thepoint. (awrapper := self builder ifnil: [^nil] _ accept KSU-Template, ClickEarth, Instance, actions, clicked: clicked: apoint (self pictureofearth bounds containspoint: apoint) iffalse: [^nil]. self updatelongitudefield: apoint; updatelatitudefield: apoint; updateviewfinderofearth: apoint KSU-Template, ClickEarth, Instance, actions, clicked: clicked: apoint asensor (self pictureofearth bounds containspoint: apoint) iffalse: [^nil]. self updatelongitudefield: apoint; updatelatitudefield: apoint; updateviewfinderofearth: apoint. asensor := (self controllerat: #imageofearth) sensor. "<-- Click Widget sensor " asensor altdown inspect "<-- alt(option) inspect " yellowbutton Windows alt KSU-Template, ClickEarth, Instance, actions, clicked: clicked: apoint asensor (self pictureofearth bounds containspoint: apoint) iffalse: [^nil]. self updatelongitudefield: apoint; updatelatitudefield: apoint; updateviewfinderofearth: apoint. asensor := (self controllerat: #imageofearth) sensor.

[asensor altdown] whiletrue: "<-- alt " [Processor yield. Transcript cr; show: asensor cursorpoint printstring] clicked ( ) alt KSU-Template, ClickEarth, Instance, actions, clicked: clicked: apoint ablock asensor ablock := [:thepoint (self pictureofearth bounds containspoint: thepoint) iffalse: [^nil]. self updatelongitudefield: thepoint; updatelatitudefield: thepoint; updateviewfinderofearth: thepoint]. ablock value: apoint. asensor := (self controllerat: #imageofearth) sensor. [asensor altdown] whiletrue: [Processor yield. ablock value: asensor cursorpoint] ( alt ) zero clicked: apoint ablock asensor ablock := [:thepoint thepoint y = 0 iftrue: [thepoint y: JunGeometry accuracy]. (self pictureofearth bounds containspoint: thepoint) iffalse: [^nil]. self updatelongitudefield: thepoint; updatelatitudefield: thepoint; updateviewfinderofearth: thepoint]. ablock value: apoint. asensor := (self controllerat: #imageofearth) sensor. [asensor altdown] whiletrue: [Processor yield. ablock value: asensor cursorpoint] inspect

0 0 KSU-Template, ClickEarth, Instance, actions, _clicked: _clicked: thepoint apoint awrapper asensor aboolean apoint := thepoint. (awrapper := self builder ifnil: [^nil] ifnotnil: [:abuilder abuilder componentat: #imageofearth]) ifnil: [^nil]. asensor := awrapper widget controller sensor. JunCursors crosscursor showwhile: [aboolean := true. [aboolean] whiletrue: [apoint := asensor cursorpoint. apoint y = 0 iftrue: [apoint := apoint x @ JunGeometry accuracy]. (self pictureofearth bounds containspoint: apoint) iftrue: [self updatelongitudefield: apoint; updatelatitudefield: apoint; updateviewfinderofearth: apoint. aboolean := asensor shiftdown]]] iffalse nil iftrue KSU-Template, ClickEarth, Instance, actions, clicked: clicked: apoint ablock asensor ablock := [:thepoint thepoint y = 0 iftrue: [thepoint y: JunGeometry accuracy]. (self pictureofearth bounds containspoint: thepoint) iftrue: [self updatelongitudefield: thepoint; updatelatitudefield: thepoint; updateviewfinderofearth: thepoint]]. ablock value: apoint. asensor := (self controllerat: #imageofearth) sensor. [asensor altdown] whiletrue: [Processor yield. ablock value: asensor cursorpoint]