Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Code reformatting
Code reformatting [message #13738] Fri, 25 January 2008 11:49 Go to next message
mdelfede is currently offline  mdelfede
Messages: 1308
Registered: September 2007
Ultimate Contributor
I'm making a plugin for code reformatting, based on Astyle.
I already changed code in Astyle to use NTL instead of STL, I'll test it this week end.
I want to put patched Astyle in 'plugins' folder and make some additions to theide... it's right to do so ?
And... how can I save user settings in order to have them loaded when ide starts ?

Ciao

Max
Re: Code reformatting [message #13742 is a reply to message #13738] Fri, 25 January 2008 13:52 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14257
Registered: November 2005
Ultimate Member
mdelfede wrote on Fri, 25 January 2008 05:49

I'm making a plugin for code reformatting, based on Astyle.
I already changed code in Astyle to use NTL instead of STL, I'll test it this week end.
I want to put patched Astyle in 'plugins' folder and make some additions to theide... it's right to do so ?
And... how can I save user settings in order to have them loaded when ide starts ?

Ciao

Max



Well, it would be fun to do so without Astyle, but yes, you are on the right track.

Configs: TheIDE has two configurations: "global" and "main package specific". Adding things is easy; see

void Ide::SerializeWorkspace(Stream& s);

and

void Ide::Serialize(Stream& s);

but even better approach might be using modular serialization (which is later included), see

ide/OutputMode.cpp

or

ide/laydes/laywin.cpp

Mirek
Re: Code reformatting [message #13743 is a reply to message #13742] Fri, 25 January 2008 14:11 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1308
Registered: September 2007
Ultimate Contributor
luzr wrote on Fri, 25 January 2008 13:52



Well, it would be fun to do so without Astyle, but yes, you are on the right track.


Fun maybe, but easy not at all.... if you want to make something complete.
Astyle works really good indeed, ant it looks well coded.

Quote:


Configs: TheIDE has two configurations: "global" and "main package specific". Adding things is easy; see

void Ide::SerializeWorkspace(Stream& s);

and

void Ide::Serialize(Stream& s);

but even better approach might be using modular serialization (which is later included), see

ide/OutputMode.cpp

or

ide/laydes/laywin.cpp



Thanx, I'll take a look at them.

Ciao

Max
Previous Topic: New hash folding function...
Next Topic: MSC 9 Compilation Warnings -- Fix
Goto Forum:
  


Current Time: Sun May 11 19:48:57 CEST 2025

Total time taken to generate the page: 0.00727 seconds