Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package


 * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
 * http://www.gnu.org/licenses/gpl-3.0.html

#ifndef AUTOSAVE_H
#define AUTOSAVE_H

#include <wx/intl.h>
#include <wx/string.h>

#include "cbplugin.h" // the base class we 're inheriting
#include "configurationpanel.h"

class wxTimer;
class wxTimerEvent;

00018 class Autosave : public cbPlugin
    wxTimer *timer1;
    wxTimer *timer2;

            int Configure();
00027             int GetConfigurationPriority() const{ return  50; }
00028             int GetConfigurationGroup() const{ return  cgUnknown; }
00029             void BuildMenu(wxMenuBar* menuBar){ return ; }
00030             void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0){ return ; }
00031             bool BuildToolBar(wxToolBar* toolBar){ return false; }
            void OnAttach(); // fires when the plugin is attached to the application
            void Start();
            void OnRelease(bool appShutDown); // fires when the plugin is released from the application
            virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
        void OnTimer(wxTimerEvent& event);

00041 class AutosaveConfigDlg : public cbConfigurationPanel
    Autosave* plugin;

            AutosaveConfigDlg(wxWindow* parent, Autosave* plug);
            virtual ~AutosaveConfigDlg(){};

00049         virtual wxString GetTitle() const { return _("Autosave"); }
00050         virtual wxString GetBitmapBaseName() const { return _T("autosave"); }
00051         virtual void OnApply(){ SaveSettings(); }
00052         virtual void OnCancel(){}
        void LoadSettings();
        void SaveSettings();

#endif // AUTOSAVE_H

Generated by  Doxygen 1.6.0   Back to index