Dev Programming Summary?

11 posts
Dev Programming Summary?

sam_grabham
New MMEX User

Posts: 5
Joined: Wed Sep 26, 2012 6:13 am
Location: UK
Hi All

Does anyone know if there's a summary of how all of the source code is glued together?, Learning CPP and came across this app when looking for some way of creating reports for printing.

I can see how CPP,wxwidgets,sqlite,Boost and xpm files are used, But were or how are LUA,.po,.m4 files and unittest++ used?

If there's a URL to a developers summary i would be very gratefull as this will save me some time following code through.

Regards

Sam
Re: Dev Programming Summary?

Nikolay
MMEX Developer

Posts: 2284
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
Lua still does not using but included into project for future development.
po files used wxGetTranslation("some string") function.

PS how to use Lua - need ideas....
Re: Dev Programming Summary?

sam_grabham
New MMEX User

Posts: 5
Joined: Wed Sep 26, 2012 6:13 am
Location: UK
Hi

Thanks for reply, I really do like how the app has been put together.

What IDE's do you use for this type of project?

What IDE do you use for creating the wxWidget windows?

Did you create a ERM when the DB was developed or do you remember all in your head?

Regards

Sam
Re: Dev Programming Summary?

sam_grabham
New MMEX User

Posts: 5
Joined: Wed Sep 26, 2012 6:13 am
Location: UK
HI
Also meant to ask how you went about creating the reports.

Did you have a report layout template for place holders for the data etc. i haven't studied the report part fully yet. Did you use a IDE for ease of creating a report. is there a open source tool that can be used to create a report like Crystal Reports used to be like in the 90's?

Regards

Sam
Re: Dev Programming Summary?

Nikolay
MMEX Developer

Posts: 2284
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
It seems do you already have source files https://sourceforge.net/projects/moneym ... 200.9.9.0/
mmex_0.9.9.0_src.tar.bz2

Or you can use svn repository http://sourceforge.net/scm/?type=svn&group_id=163169

How to glue files to executable one read this
http://moneymanagerex.svn.sourceforge.n ... iew=markup

for Linux:
http://moneymanagerex.svn.sourceforge.n ... iew=markup
Re: Dev Programming Summary?

Nikolay
MMEX Developer

Posts: 2284
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
sam_grabham wrote:HI
Also meant to ask how you went about creating the reports.

There is no any report templates mmex use.
Jst get some data from SQLite (or from memory if data caсhed) then transform it to html.
Re: Dev Programming Summary?

Nikolay
MMEX Developer

Posts: 2284
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
sam_grabham wrote:What IDE's do you use for this type of project?

WS Visual Studio for windows or any other. NetBeans, Geany, for example.
What IDE do you use for creating the wxWidget windows?

I use no one.

Did you create a ERM when the DB was developed or do you remember all in your head?

DB has been created and last time not changed.
That structure was recreated using online service.
Image
Re: Dev Programming Summary?

Nikolay
MMEX Developer

Posts: 2284
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
The code updated for 100% lua imtegration.
Re: Dev Programming Summary?

sam_grabham
New MMEX User

Posts: 5
Joined: Wed Sep 26, 2012 6:13 am
Location: UK
Hi

Thanks for all your tips and comments, I will study your code in more detail and try and learn from it.

Regards

Sam Grabham
Re: Dev Programming Summary?

Nikolay
MMEX Developer

Posts: 2284
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
That Lua script may be usefull as example

Code: Select all
--today_date.lua
week = luaGetTranslation(os.date("%A"))
month = luaGetTranslation(os.date("%B"))
if (os.date("%a") == 'Sun' or os.date("%a") == 'Sat') then
   week = '<font color="red">' .. week .. '</font>'
end

var = string.gsub(var, '/', ' ')
var = string.gsub(var, '-', ' ')
var = string.gsub(var, '%%m', luaGetTranslation(os.date("%B")))

nicedate = os.date(var)
nicedate = week .. ", " .. nicedate

return(nicedate)


To start it working the patch uttached should be applied
Attachments
lua4date.diff.zip
(1.23 KiB) Downloaded 254 times
Who is online

Users browsing this forum: No registered users and 25 guests