Mac IDE

Previous topic - Next topic

bigsofty

Quotethe text has to be saved as UPPERCASE but currently it would be saved how its written.
but GPC can only compile with uppercase commands :/

no idea how to do that :(

Won't your lexical analyser within the editor (Scintilla?) do automatic case conversion for recognised (colour coded) key words?
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

codegit

Lets hope there is a solution to this problem. This is such an exciting project.  :enc: :enc: :enc: :enc:
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

trucidare

the lexer can display keywords in upper case, but only display, not change the text value.

tried this:
Code (glbasic) Select
void Editor::ChangeCaseOfSelection(bool makeUpperCase) {
UndoGroup ug(pdoc);
for (size_t r=0; r<sel.Count(); r++) {
SelectionRange current = sel.Range(r);
pdoc->ChangeCase(Range(current.Start().Position(), current.End().Position()),
        makeUpperCase);
char chr = pdoc->CharAt(current.Start().Position());
chr = toupper(chr);
pdoc->DeleteChars(current.Start().Position(), 1);
pdoc->InsertChar(current.Start().Position(), chr);
// Automatic movement cuts off last character so reset to exactly the same as it was.
sel.Range(r) = current;
}
}


have to look.
last solution is to parse the text and replace keywords in uppercase.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Kitty Hello

There surely is some "getvisibletext" function.

trucidare

[itemEditor setGeneralProperty: SCI_GETSTYLEDTEXT parameter: 0 value: (long)(&tr)];

But crashes in return function with a error who isnt any.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

codegit

LOL .. In c#    string txtIn = richedit.text.toUpper(); I most probably dont understand the problem.  :nana:
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

bigsofty

Fuzzy on this but Isn't internal styled scintilla text 2 bytes long per char, 1 for the character the other for the style bits?
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

trucidare

it is, its a big problem :(

codegit: toupper(char*); is simpler, but does not solve the problem.

the problem ist my editor shows KEYWORD but save keyword to file. and the gpc only know KEYWORD. understand?
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

codegit

Yes I understand. LOL I know that you can solve this problem.  8) Are you going to release the IDE to us users (Payment/free)?  O_O
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

trucidare

isnt decided yet, but yes for users hehe.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

trucidare

ok working on Project wizard now. something like kitties start window.

the problem with uppercase is on "todo for beta" the last point (WRITE IN CAPS AND IT WILL COMPILE :D)

if all is going well i need beta testers next week.

requierements:

1 x Intel Mac (leopard or snow leopard)
1 x PPC Mac (leopard)

for all:

installed XCode environment (iphone sdk not neccessary yet)
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Marmor

also sollte ein G4 PPC mit Leo zum kompiliren reichen ? schon getestet ?  Wenn ja auf zu EBay ;)  <- kleiner tipp für preisbewußte

codegit

If you need an extra tester. I'm available.  =D
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

FlowPX2

Hi Marmor... For iPhone developing you Need a Intel mac!

Marmor

yap its right   G4 only Mac Developing not iphone