summaryrefslogtreecommitdiffstats
path: root/kturtle/TODO
blob: 83c33dffe47548197fc57cc407212b4221ce04f6 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
This document goes on the BUGs and WISHes that regarding KTurtle

18 june 2005
------------------
for KDE 3.5
- add the fractals examples from http://www.stber-koenig.de/markus/kturtle/ in the examples folder
-> problem when adding examples for translations

- implement KNewStuff to share logo files via kde-files.org per language with png associated on the website


    CHECKLIST FOR KTURTLE IN KDE 3.4:

annma> get some other sprites alternative to the turtle

 cies> or a better website

annma> I would say: hunt bugs

 cies> i think promotion will be an important part

annma> I would say make sure we test kturtle thoroughly
annma> remove config, remove installed files and try from scratch

 cies> more examples? would that pull?
annma> more examples are only in en_US at the moment

annma> is all the code in the doc working correctly?
 cies> dint check for a while
 cies> i changed some syntaxt
annma> that is to be checked

 cies> maybe a contest...
 cies> best logo script gets in the examples of the next kturtle
 cies> and get TRANSLATED to many lang.s
 cies> how does that sound?
annma> yes
 cies> good for a dot story
annma> sounds good









Chapeters in this documents:

BUGs
 - urgent bugs (small/regular and critical)
 - big ones (that need losts of work)
 - regular ones (the phat cocroach type)
 - small bugs (annoyances that can be considered urgent, ie poisonless musquito's)
 - unconfirmed
 
WISHes
 - important WISHes (that are needed for a 1.0 release and help to fulfill kturtles objectives)
 - less important but nice WISHes
 - WISHes that still have to be discussed

 
       here we go!
 

My [cies] TODO list (in this order!):
- the connection with the manual should be fixed (might need a change in kdelibs)  FIXED tnx Waldo!
- bug, wishes, errmsgs-fixes concering the interpreter  HAS TO RESULT IN HUGE REFACTORING
- spice up the errormessage window with my great ideas  ON HOLD


  
 
>>>>> BUGs::Urgent

cies> currently no urgent bugs that i know of. except for:
THERE IS NO HELP ON THE ERROR DIALOG! (nor on the ColorPicker Dialog and the Configure Dlg)
		this is needed for help button references




>>>>> BUGs::Big
  - I porbably have to refine the way error message get emitted, problems: Ugly-, short-, technical messages.
 
 I'll have to: 
 
- try to break up/refine the most common errors
- Reformulate all the error messages after simulating them
- have links in there to corresponing help pages --> see WISHes
- Maybe more LONGER, desciptive error messages should be triggered by the 'Help on Error", these messages should be stored in/out-side of the executer/parser, but maybe even better, the errormsg file. I18n should then be easy, and it should supply richtext ((k)html) + links to the manual. (this could be in the same dialog)
- errmsgs should maybe be filtered since there is quite some garbage in the errors that come back.
- possible no newlines in a command this could make the error messages more specific/descriptive. DONE




>>>>> BUGs::Regular
cies: get all the commands in the logokeywords.*.xml file working properly, and remove the commands that are not needed:
Need to work eventually:
- input (without window, grabKeyEvents... not easy :)
- sprite* (i'll maybe look into this when i have Qt3.3 which fixes the nasty crashbug that came across)
- 'speed' will come later [seperate 'move' methods have to be made inaddition to the line methods]

would be nice (not in yet):
- message, just a dialog with sone user defined text
- and a dialog that return a bool (YesNoDlg)
- more drawing functions, use directly from QCanvas; like: filled circle, filled square, filled triangle
- more expressers: isString, isNumber, isRound
- round()
- true and fasle as cunfiguarables  ---> in highlightstyle as Fat/grey

- <joke> and what about a 'goto' command ( you can never make them mistakes young enough, muahoahoaaaa >:-} ) </joke> well?


- use qt-richtext <qt></qt> in dialogs etc.




>>>>> BUGs::Small
have the slow-execution cursor stop at more places like: inputwindow, inline functions

if the inputwindow is canceled the returned value is empty. Yet we need to be a hybrid string ("") or number (0).

when aborting execution dont say "Done." in the statusbar

Maybe change the location of the Logo highlightstyles 




>>>>> BUGs::Unconfirmed
annma can you go though the next 2 bugs and supply some more info bout them to me? tnx
- The documentation of "not" seems wrong. Should it be a unary <-- annma
   operator?
- German examples are twice the same (ask Matthias) <--annma




>>>>> WISHes::important
cies> refactor the interpreter so it is easier to add new commands (using meta programming)




>>>>> WISHes::less important but nice
I saw the KD Executer talk on the aKademy... I (cies) want KD Executer tests for KTurtle to better manage the quality! [ maybe this is important, :) ]


the default font can be a bit bigger and sans serif, and default the <tab> on 2 spaces


have a context menu on right-click in the canvas to save the drawing (right-click -> Save Canvas). cies: then also put "print canvas" and "fullscreen" in there

have the coords of the pixel under the mouse on the canvas in the statusbar


CLI-file-selection (for mimetype eaz)


cies: a fontchooser would be fun
30/12/2003 annma: for the editor font? I can do it ---> default editor font should be bigger and sans serif
04/01/2003 we'll see after the editor part is done





>>>>> WISHes::still subject to discussion
commands do not follow usual commands like forward is FD, reference: http://asijonline.net/ep/logo/logo_com.htm
  -is there a logo standardisation? Compatibility is something that i (cies) would think is overdone. Logo is only used for a short moment, to learn programming; it will never produce real-world programs. So?


Preview in konqueror: (from IRC discussion about the preview thing a mimetype and a litle kpart-previewer would not be too dificult wouldn't it
<TSDgeos> you could put the widget you use in klogo in the kpart in read only mode
<polux> yeah good idea, instead of including it as a katepart, making a kturtlepart)
<cies> we could but what is the use of it? will it help to fulfill kturtles objectives?


Translating data in the knewstuff.xml file: how would the translators access the file which is on the server?
  - i dunno what's ment by this.. annma?



After a conversiation with lypanov I came to the conclusion that making the executer 'statefull' is a very by thing! So I take the cheap approach using kapp->processEvents();... Maybe someday, later, I'll do it neatly -- the lypanov pointed out. FIXED



annma - 29th December 2003
about the resizing
I think the canvas size should fill all the right side under the toolbar when KTurtle is started. When resizing the window with the mouse, the canvas grows bigger, everything resize smoothly (-> resizeEvent( QResizeEvent * )).
You can leave the resizing option of the canvas in the Settings but only for having the canvas bigger. That would mean setting minimums in the config dialog.

cies: Sorry i have to disagree, let me explain: a lot of logoscripts will be written on a certain canvas size, if the canvas is made bigger the script will give 'broken' output. I also dont have a way to update the 'wrapping' if a canvas is resized. IMHO the canvassize should be changed by a command, nl. canvassize x,y -- which works on my side of mother earth :-) IMHO all changes to the canvas MUST be done by commands and not by clicky-clicky... Putting the 'initial canvas size' in the settings window is only for the teatcher to setup all his computers.

Sorry for beeing so inflexible... *Really*  I am still open for discussion! :-) I just have developed a certain vision of KTurtle's future that is really hard to let go.
(annma 30/12/2003 ok then, but the config option should be made clearer that the new canvas size will be next start)



Annma: Idea from my daughter: have a Tux and a Konqui as alternate turtle for the cursor. I don't know if it's possible and if you like it ;)

cies: That is a good plan!  I have tux allready in my sprites dir (I'm a fan too!)... but there's one nice thing about the turtle: this animal is very regocnisable from above, and the head points in the direction of movement. Tux is more a front faced character, so nice would be to have an option to put the automatic turning off, and to have a different method to turn tux by command. [please note that i wont do any extra work on getting qt3.3 (needed for sprites), it comes when it comes]



  


>>>> RECENTLY FIXED BUGs

- settings->configure cauzes crash FIXED thanks to Martijn Klingens  ->  move "LanguageLabel = new QLabel(kcfg_LanguageComboBox..." down a few lines (after kcfg_LanguageComboBox is init'ed) BACKPORT

- default language translation somehow doesnt work, it seems NO Logo language is selected at all FIXED
- this also results in no examples FIXED


- About the language: when user is set to fr (not fr_FR but fr like me being in Canada), the parsing does not   work because Settings::LogoLanguage() is set to fr and NOT to fr_FR.
  Syntax highlighting does not work for fr        DONE annma
 
- Default does not work in Language ComboBox -> I am not sure your use of KConfig XT is optimum here, Cies
  and other bug: output: kturtle: desktopLanguage: fr:en_US
  kturtle: defaultLanguage: en_US
  Why is not default Language fr_FR?              DONE annma 02/04/2004

- open recent does not keep the files after quitting DONE annma 02/04/2004

- crash on quitting after Opening files           DONE annma 02/04/2004

- cies: Make the interpreter (stolen from wsbasic.sf.net) (executer, parser, lexer, number and treenode) more native Qt. Right now they are a mixture of standard-CLI-C++ and Qt thingies (i put the Qt thingies there). I tried do that but i found that i'm not comfortable with the concept of streams -- which are used a lot in the interpreter. Especially streaming QString was an obstacle i couldnt take.     DONE
>>>>> after this is done we can also make the ()[],.""-configurable

With long lines and wrapping the canvas can get into a endless loop -> 100%CPU, i tried a lot to fix this allready, maybe my solution needs some tuning :).
Maybe i should just catch errors and break that endless loop :)        FIXED!!! FINALLY




cies: The KconfigXT issue: If an error like this
"""
  make[4]: Entering directory `/home/cies/kdenonbeta/kturtle/src'
  ./kturtle.kcfg ./settings.kcfgc; ret=$?; \
  if test "$ret" != 0; then rm -f settings.h ; exit $ret ; fi
  /bin/sh: line 1: ./kturtle.kcfg: Permission denied
  make[4]: *** [settings.h] Error 126
"""
happends when make'ing KTurtle form cvs one should change the first line of configure.in.in from:
  #MIN_CONFIG(3.0)
into:
  #MIN_CONFIG(3.2)
that will fix it :-)   FIXED with KDE 3.3 (I suspect)



- display the current command language in StatusBar? DONE apperently


print command is buggy, examples:        FIXED!
      print 2004 + " before " + 25
   from the manual should output
      "2004 before 25"
   according to the comment, but outputs
      "2029"
		
		
		
RESEARCH ON THE HELP PROBLEM

then the help-kioslave is kdelibs/kdoctools

little help needed: when i use konq to go
"help:/kate?anchor=kate-part-selection-persistent" (which is the proper way to go
there iirc) i get seemingly transferred to
"help:/kate/index.html#kate-part-selection-persistent" but not to the anchor on that
page -- it stays on the top of that page. When i enter the location bar again i get
to the anchor.  --->  shoud i file a bug, for with apps should i do that OR where is
the code that handles this. Anyone? :)

yet this works wel if i go straight to (in konq):
help:/kate/index.html#kate-part-selection-persistent

or if i use kdcop to set "help:/kate/index.html#kate-part-selection-persistent" in
KHelpCenterIface-OpenUrl, than all works fine...

yet this doesnt work
dcop khelpcenter KHelpCenterIface openUrl "help:/kate/index.html#kate-part-selection-persistent", ""


Im tryered of this... I can fix it; too much for me. Sorry


in kdelibs/kdecore/kapp... :
url = QString("help:/%1?anchor=%2").tqarg(appname).tqarg(anchor);
and
DCOPRef( "khelpcenter", "KHelpCenterIface" ).send( "openUrl", url, startup_id );














*************
vi .cvsrc
      cvs -z4 -q
      diff -u3 -p
      update -dP
      checkout -P

touch /home/cies/.cvspass

export CVSROOT=:pserver:cies@cvs.kde.org:/home/kde
cvs login

mkdir kdecvs
cd kdecvs/

cvs co -l kdeedu
cvs co kdeedu/kturtle
cvs co -l kde-i18n
cvs co -l kde-i18n/nl
cvs co -l kde-i18n/nl/data
cvs co -l kde-i18n/nl/data/kdeedu
cvs co kde-i18n/nl/data/kdeedu/kturtle
cvs co -l kdeedu/doc
cvs co kdeedu/doc/kturtle

cd kdeedu/
cvs co admin
make -f Makefile.cvs && ./configure

cd ../kde-i18n
cvs co admin
make -f Makefile.cvs && ./configure