News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Function SUGGESTION

Started by PsYhLo, April 13, 2006, 08:27:17 PM

Previous topic - Next topic

PsYhLo

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
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

thomas

You can implement that (almost trivially) with a plugin.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

PsYhLo

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
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

thomas

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:).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

PsYhLo

thanks alot now i compile the new SVN revision and will try it
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

killerbot

Quote from: 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:).
question : the makefile.am is still not done ??

PsYhLo

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
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

thomas

Quote from: killerbot on April 14, 2006, 04:25:20 PM
Quote from: 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:).
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...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Michael

[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Michael

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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Michael

Quote from: thomas on April 14, 2006, 05:49:25 PM
Quote from: killerbot on April 14, 2006, 04:25:20 PM
Quote from: 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:).
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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

thomas

Try CodeBlocks-unix.cbp now :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Michael

#12
Quote from: thomas on April 18, 2006, 12:20:56 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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]