Author Topic: How Execute my plugin when I save?  (Read 7040 times)

Larri

  • Guest
How Execute my plugin when I save?
« on: November 23, 2007, 04:49:33 am »
Hello,  I have a plugin and I install it. How can I execute the plugin when I save all the project (shift+ctrl+S).

I Want to say: every time that I save all (shift+Ctrl+S) I want to execute my plugin.

         THANKS


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: How Execute my plugin when I save?
« Reply #1 on: November 23, 2007, 08:36:34 am »
I Want to say: every time that I save all (shift+Ctrl+S) I want to execute my plugin.
If you really mean per-file: Hook into the cbEVT_EDITOR_SAVE event.
If you mean when you save your project: Hook into the cbEVT_PROJECT_SAVE event.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

alfre

  • Guest
Re: How Execute my plugin when I save?
« Reply #2 on: November 28, 2007, 09:20:23 pm »
Where can I find the cbEVT_EDITOR_SAVE event and the cbEVT_PROJECT_SAVE event.Thanks again

Offline artoj

  • Almost regular
  • **
  • Posts: 206
  • Location: Supporting my team
    • http://ajonsson.kapsi.fi/
Re: How Execute my plugin when I save?
« Reply #3 on: November 28, 2007, 09:28:50 pm »
Where can I find the cbEVT_EDITOR_SAVE event and the cbEVT_PROJECT_SAVE event.Thanks again

src/include/sdk_events.h

alfre

  • Guest
Re: How Execute my plugin when I save?
« Reply #4 on: November 28, 2007, 11:06:21 pm »
(Sorry my english)

Sorry I dont explain me so well,  I want  to steal this event. Example : when cbEVT_PROJECT_SAVE event execute, do something(Execute my pluggin).

 The idea is : Execute my pluggin when I save. How can I do that.


                                    THANKS for your time

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: How Execute my plugin when I save?
« Reply #5 on: November 29, 2007, 09:15:45 am »
Sorry I dont explain me so well,  I want  to steal this event. Example : when cbEVT_PROJECT_SAVE event execute, do something(Execute my pluggin).

 The idea is : Execute my pluggin when I save. How can I do that.

Code::Blocks SDK events
Be patient!
This bug will be fixed soon...

alfre

  • Guest
Re: How Execute my plugin when I save?
« Reply #6 on: November 30, 2007, 10:30:04 pm »
(Sorry my English)

I try to do it, but don't work. Maybe I don't understand  the article "Code::Blocks SDK events", if you have any example or everything else I appreciate that.

The Errors are:

borrar1/alfre.cpp:54:     error:       ‘class Manager’ has no member named ‘RegisterEventSink’
borrar1/alfre.cpp:54:     error:        expected type-specifier before ‘cbFunctorBase’
borrar1/alfre.cpp:54:     error:        expected `)' before ‘cbFunctorBase’
borrar1/alfre.cpp:54:     error:        expected primary-expression before ‘>’ token



                                          THANKS for your time
« Last Edit: November 30, 2007, 10:45:10 pm by alfre »