Dev Programming Summary?

Money Manager Ex Development related posts for both Android and Desktop

Moderator: Renato

sam_grabham
New MMEX User
Posts: 5
Joined: Wed Sep 26, 2012 12:13 pm
Are you a spam bot?: No
Location: UK

Dev Programming Summary?

Post by sam_grabham »

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
Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Dev Programming Summary?

Post by Nikolay »

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....
sam_grabham
New MMEX User
Posts: 5
Joined: Wed Sep 26, 2012 12:13 pm
Are you a spam bot?: No
Location: UK

Re: Dev Programming Summary?

Post by sam_grabham »

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
sam_grabham
New MMEX User
Posts: 5
Joined: Wed Sep 26, 2012 12:13 pm
Are you a spam bot?: No
Location: UK

Re: Dev Programming Summary?

Post by sam_grabham »

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
Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Dev Programming Summary?

Post by Nikolay »

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
Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Dev Programming Summary?

Post by Nikolay »

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.
Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Dev Programming Summary?

Post by Nikolay »

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
Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Dev Programming Summary?

Post by Nikolay »

The code updated for 100% lua imtegration.
sam_grabham
New MMEX User
Posts: 5
Joined: Wed Sep 26, 2012 12:13 pm
Are you a spam bot?: No
Location: UK

Re: Dev Programming Summary?

Post by sam_grabham »

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
Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Dev Programming Summary?

Post by Nikolay »

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 540 times
Post Reply