SourceForge.net Logo
Rss::Blocks 0.2
a codeblocks plugin that shows rss feeds

F:/C++/rssblocks/trunk/rssblocks.h

Go to the documentation of this file.
00001 /***************************************************************
00002  * Name:      rssblocks.h
00003  * Purpose:   Code::Blocks plugin
00004  * Author:    Gabriel Espinoza (virtuosonic@users.sourceforge.net)
00005  * Created:   2011-02-24
00006  * Copyright: Gabriel Espinoza
00007  * License:   GPLv3+
00008  **************************************************************/
00009 #ifndef RSSBLOCKS_H
00010 #define RSSBLOCKS_H
00011 
00012 // For compilers that support precompilation, includes <wx/wx.h>
00013 #include <wx/wxprec.h>
00014 
00015 #ifndef WX_PRECOMP
00016 #include <wx/wx.h>
00017 #endif
00018 
00019 #include <cbplugin.h> // for "class cbPlugin"
00020 #include "rssblockscfgdlg.h"
00021 namespace rssblocks {
00022 class rsswindow;
00023 
00029 class RssBlocksPlugin : public cbPlugin
00030 {
00031         public:
00033                 RssBlocksPlugin();
00035                 virtual ~RssBlocksPlugin();
00036 
00037                 virtual int Configure();
00038                 virtual int GetConfigurationPriority() const {return 50;}
00039                 virtual int GetConfigurationGroup() const {return cgUnknown;}
00044                 virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) {
00045 
00046                         RssBlocksCfgDlg* dlg = new RssBlocksCfgDlg(this,parent,ID_RSSCFGDLG);
00047                         return dlg;
00048                 }
00049 
00057                 virtual void BuildMenu(wxMenuBar* menuBar);
00058                 virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
00059                 virtual bool BuildToolBar(wxToolBar* toolBar);
00060         protected:
00071                 virtual void OnAttach();
00072 
00082                 virtual void OnRelease(bool appShutDown);
00083 
00084         private:
00085                 rsswindow* m_window;
00086                 static const long ID_RSSMENU;
00087                 static const long ID_RSSCFGDLG;
00088                 //handlers
00089                 void OnMenuRss(wxCommandEvent& event);
00090                 void OnUpdateCfg(wxCommandEvent& event);
00091                 DECLARE_EVENT_TABLE();
00092 };
00093 }//namespace rssblocks
00094 
00095 #endif // RSSBLOCKS_H