Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: PsYhLo on April 13, 2006, 08:27:17 pm

Title: Function SUGGESTION
Post by: PsYhLo on April 13, 2006, 08:27:17 pm
I'm sure that this is the right place to ask for
I suggest to write function that automatic saves project and/or file in some interval of time
(like 1 hour, 10 minutes, 30 minutes, 2 hours or someting like that)


sorry for my poor english if you didn't uderstand me
Title: Re: Function SUGGESTION
Post by: thomas on April 13, 2006, 08:37:44 pm
You can implement that (almost trivially) with a plugin.
Title: Re: Function SUGGESTION
Post by: PsYhLo on April 13, 2006, 09:17:47 pm
I can't because i'm not a pro like you
I didn't know the wxWidgets and Code::Blocks SDK so i can't write such plugin

This is the reason i suggest this function
Title: Re: Function SUGGESTION
Post by: thomas on April 14, 2006, 12:42:06 am
I've written that plugin, but someone will have to do the Makefile.am for Linux (I can't be bothered late at night  :lol:).
Title: Re: Function SUGGESTION
Post by: PsYhLo on April 14, 2006, 04:08:36 pm
thanks alot now i compile the new SVN revision and will try it
Title: Re: Function SUGGESTION
Post by: killerbot on April 14, 2006, 04:25:20 pm
I've written that plugin, but someone will have to do the Makefile.am for Linux (I can't be bothered late at night  :lol:).
question : the makefile.am is still not done ??
Title: Re: Function SUGGESTION
Post by: PsYhLo on April 14, 2006, 04:48:45 pm
The plugin works fine for now
10x again for it

And 10x for all that work you(i mean everyone who work on this project :wink:) doing for this great IDE the BEST of the BEST
Title: Re: Function SUGGESTION
Post by: thomas on April 14, 2006, 05:49:25 pm
I've written that plugin, but someone will have to do the Makefile.am for Linux (I can't be bothered late at night  :lol:).
question : the makefile.am is still not done ??
I haven't done it, since I am a complete Makefile noob. I am fine with adding a file or two to an existing, working makefile, but building one from scratch is beyond my powers ;)

I'd have to find some docs first...
Title: Re: Function SUGGESTION
Post by: Michael on April 14, 2006, 07:16:11 pm
I'd have to find some docs first...

Some help :):

http://sources.redhat.com/autobook/index.html
http://www.phptr.com/content/images/0130091154/downloads/0130091154.zip

Best wishes,
Michael
Title: Re: Function SUGGESTION
Post by: Michael on April 14, 2006, 08:08:00 pm
Hello,

I have found two "bugs" in the Autosave plugin. See here:

Quote
-------------- Build: Autosave plugin in Code::Blocks ---------------
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DTIXML_USE_STL -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DWINVER=0x0501 -DBUILDING_PLUGIN  -IC:\temp\wxWidgets-2.6.3\include -IC:\temp\wxWidgets-2.6.3\lib\gcc_dll\mswu -IC:\temp\wxWidgets-2.6.3\lib\gcc_dll\mswu -IC:\temp\wxWidgets-2.6.3\contrib\include -Isdk\wxscintilla\include -Isdk\propgrid\include -Isdk -IC:\MinGW\include -Iplugins\autosave -c plugins\autosave\autosave.cpp -o .objs\2.6\plugins\autosave\autosave.o
plugins\autosave\/autosave.h:41: error: extra qualification 'Autosave::' on member 'GetConfigurationPanel'
plugins\autosave\/autosave.h:42: error: extra qualification 'Autosave::' on member 'OnTimer'
Process terminated with status 1 (5 minutes, 35 seconds)
2 errors, 1721 warnings

The problem is that GCC 4.1.0 does not appreciate extra qualification(s) in the header file(s). To solve these errors, just remove the Autosave:: from  the functions GetConfigurationPanel and OnTimer.

Best wishes,
Michael
Title: Re: Function SUGGESTION
Post by: Michael on April 18, 2006, 12:07:26 am
I've written that plugin, but someone will have to do the Makefile.am for Linux (I can't be bothered late at night  :lol:).
question : the makefile.am is still not done ??
I haven't done it, since I am a complete Makefile noob. I am fine with adding a file or two to an existing, working makefile, but building one from scratch is beyond my powers ;)

Hello,

Would it be possible to have the Autosave plugin added to the CodeBlocks-unix.cbp or ContribPlugins-unix.workspace?

Thank you.

Best wishes,
Michael
Title: Re: Function SUGGESTION
Post by: thomas on April 18, 2006, 12:20:56 am
Try CodeBlocks-unix.cbp now :)
Title: Re: Function SUGGESTION
Post by: Michael on April 18, 2006, 12:25:37 am
Try CodeBlocks-unix.cbp now :)

Cool 8). Thank you.

[EDIT]: I have tested it on Ubuntu 5.10 and after a small fight with CodeBlocks-unix.cbp, it seems to works fine :).

Best wishes,
Michael