help_plugin.h
来自「非常好用的可移植的多平台C/C++源代码编辑器」· C头文件 代码 · 共 48 行
H
48 行
#ifndef HELP_PLUGIN_H
#define HELP_PLUGIN_H
#include <settings.h> // SDK
#include <cbplugin.h>
#include <cbproject.h>
#include <simpletextlog.h>
#include <sdk_events.h>
#include <settings.h> // much of the SDK is here
#include <sdk_events.h>
#include <cbplugin.h> // the base class we're inheriting
#include <wx/dynarray.h>
#include "HelpConfigDialog.h"
class HelpPlugin : public cbPlugin
{
public:
HelpPlugin();
~HelpPlugin();
int Configure();
void BuildMenu(wxMenuBar *menuBar);
void BuildModuleMenu(const ModuleType type, wxMenu *menu, const wxString &arg);
bool BuildToolBar(wxToolBar *toolBar);
void OnAttach(); // fires when the plugin is attached to the application
void OnRelease(bool appShutDown); // fires when the plugin is released from the application
protected:
void OnFindItem(wxCommandEvent &event);
void OnHelp(wxCommandEvent &event);
void AddToPopupMenu(wxMenu *menu, int id, const wxString &help);
void AddToHelpMenu(int id, const wxString &help);
void RemoveFromHelpMenu(int id, const wxString &help);
void AddFile();
wxString HelpFileFromId(int id);
void LaunchHelp(const wxString &helpfile, const wxString &keyword = wxEmptyString);
private:
wxMenuBar *m_pMenuBar;
HelpCommon::HelpFilesVector m_Vector;
int m_LastId;
DECLARE_EVENT_TABLE()
};
CB_DECLARE_PLUGIN();
#endif // HELP_PLUGIN_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?