1
#include <sdk.h> // Code::Blocks SDK
2
#include <configurationpanel.h>
3
#include "wxSmithDateTimePicker.h"
5
// Register the plugin with Code::Blocks.
6
// We are using an anonymous namespace so we don't litter the global one.
9
PluginRegistrant<wxSmithDateTimePicker> reg(_T("wxSmithDateTimePicker"));
15
wxSmithDateTimePicker::wxSmithDateTimePicker()
17
// Make sure our resources are available.
18
// In the generated boilerplate code we have no resources but when
19
// we add some, it will be nice that this code is in place already ;)
20
if(!Manager::LoadResource(_T("wxSmithDateTimePicker.zip")))
22
NotifyMissingFile(_T("wxSmithDateTimePicker.zip"));
27
wxSmithDateTimePicker::~wxSmithDateTimePicker()
31
void wxSmithDateTimePicker::OnAttach()
33
// do whatever initialization you need for your plugin
34
// NOTE: after this function, the inherited member variable
35
// m_IsAttached will be TRUE...
36
// You should check for it in other functions, because if it
37
// is FALSE, it means that the application did *not* "load"
38
// (see: does not need) this plugin...
41
void wxSmithDateTimePicker::OnRelease(bool appShutDown)
43
// do de-initialization for your plugin
44
// if appShutDown is true, the plugin is unloaded because Code::Blocks is being shut down,
45
// which means you must not use any of the SDK Managers
46
// NOTE: after this function, the inherited member variable
47
// m_IsAttached will be FALSE...