Author Topic: Function SUGGESTION  (Read 6065 times)

Offline PsYhLo

  • Almost regular
  • **
  • Posts: 157
Function SUGGESTION
« 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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Function SUGGESTION
« Reply #1 on: April 13, 2006, 08:37:44 pm »
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."

Offline PsYhLo

  • Almost regular
  • **
  • Posts: 157
Re: Function SUGGESTION
« Reply #2 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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Function SUGGESTION
« Reply #3 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:).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline PsYhLo

  • Almost regular
  • **
  • Posts: 157
Re: Function SUGGESTION
« Reply #4 on: April 14, 2006, 04:08:36 pm »
thanks alot now i compile the new SVN revision and will try it

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5278
Re: Function SUGGESTION
« Reply #5 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 ??

Offline PsYhLo

  • Almost regular
  • **
  • Posts: 157
Re: Function SUGGESTION
« Reply #6 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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Function SUGGESTION
« Reply #7 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...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."


Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Function SUGGESTION
« Reply #9 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

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Function SUGGESTION
« Reply #10 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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Function SUGGESTION
« Reply #11 on: April 18, 2006, 12:20:56 am »
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."

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Function SUGGESTION
« Reply #12 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
« Last Edit: April 18, 2006, 12:55:24 am by Michael »