本文整理汇总了C++中BitmapLoader::MakeStandardMimeMap方法的典型用法代码示例。如果您正苦于以下问题:C++ BitmapLoader::MakeStandardMimeMap方法的具体用法?C++ BitmapLoader::MakeStandardMimeMap怎么用?C++ BitmapLoader::MakeStandardMimeMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BitmapLoader
的用法示例。
在下文中一共展示了BitmapLoader::MakeStandardMimeMap方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PHPWorkspaceViewBase
PHPWorkspaceView::PHPWorkspaceView(wxWindow* parent, IManager* mgr)
: PHPWorkspaceViewBase(parent)
, m_mgr(mgr)
{
// Initialise images map
BitmapLoader* bmpLoader = m_mgr->GetStdIcons();
m_bitmaps = bmpLoader->MakeStandardMimeMap();
EventNotifier::Get()->Connect(
wxEVT_CMD_EXECUTE_ACTIVE_PROJECT, clExecuteEventHandler(PHPWorkspaceView::OnRunActiveProject), NULL, this);
EventNotifier::Get()->Connect(
wxEVT_CMD_STOP_EXECUTED_PROGRAM, wxCommandEventHandler(PHPWorkspaceView::OnStopExecutedProgram), NULL, this);
EventNotifier::Get()->Connect(
wxEVT_CMD_IS_PROGRAM_RUNNING, wxCommandEventHandler(PHPWorkspaceView::OnIsProgramRunning), NULL, this);
EventNotifier::Get()->Connect(
wxEVT_ACTIVE_EDITOR_CHANGED, wxCommandEventHandler(PHPWorkspaceView::OnEditorChanged), NULL, this);
EventNotifier::Get()->Connect(wxEVT_PHP_FILE_RENAMED, PHPEventHandler(PHPWorkspaceView::OnFileRenamed), NULL, this);
EventNotifier::Get()->Connect(
wxEVT_PHP_WORKSPACE_RENAMED, PHPEventHandler(PHPWorkspaceView::OnWorkspaceRenamed), NULL, this);
EventNotifier::Get()->Bind(wxPHP_PARSE_ENDED, &PHPWorkspaceView::OnPhpParserDone, this);
EventNotifier::Get()->Bind(wxPHP_PARSE_PROGRESS, &PHPWorkspaceView::OnPhpParserProgress, this);
BitmapLoader* bl = m_mgr->GetStdIcons();
wxImageList* imageList = bl->MakeStandardMimeImageList();
m_treeCtrlView->AssignImageList(imageList);
}
示例2: ReconcileProjectDlgBaseClass
ReconcileProjectDlg::ReconcileProjectDlg(wxWindow* parent, const wxString& projname)
: ReconcileProjectDlgBaseClass(parent)
, m_projname(projname)
, m_projectModified(false)
{
BitmapLoader bl;
m_bitmaps = bl.MakeStandardMimeMap();
m_dvListCtrl1Unassigned->Bind(wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU, wxDataViewEventHandler(ReconcileProjectDlg::OnDVLCContextMenu), this);
WindowAttrManager::Load(this, wxT("ReconcileProjectDlg"), NULL);
}
示例3: DoInitialize
void OpenResourceDlg::DoInitialize()
{
BitmapLoader* bmpLoader = m_mgr->GetStdIcons();
m_fileImages = bmpLoader->MakeStandardMimeMap();
CLASS_IMG_ID = bmpLoader->LoadBitmap(wxT("cc/16/class"));
FUNC_IMG_ID = bmpLoader->LoadBitmap(wxT("cc/16/function_public"));
CONST_IMG_ID = bmpLoader->LoadBitmap(wxT("cc/16/enumerator"));
DEFINE_IMG_ID = bmpLoader->LoadBitmap(wxT("cc/16/macro"));
VARIABLE_IMG_ID = bmpLoader->LoadBitmap(wxT("cc/16/member_public"));
NAMESPACE_IMG_ID = bmpLoader->LoadBitmap(wxT("cc/16/namespace"));
SetName("OpenResourceDlg");
WindowAttrManager::Load(this);
SetSelectedItem(NULL);
}
示例4: GetPopupMenuSelectionFromUser
int
WelcomePage::DoGetPopupMenuSelection(wxCommandLinkButton* btn, const wxArrayString& strings, const wxString& menuTitle)
{
BitmapLoader bl;
BitmapLoader::BitmapMap_t bmps = bl.MakeStandardMimeMap();
m_idToName.clear();
wxUnusedVar(menuTitle);
wxMenu menu;
for(size_t i = 0; i < strings.GetCount(); i++) {
wxBitmap bmp = bmps[FileExtManager::TypeText];
wxString filename = strings.Item(i);
if(filename.Find("@") != wxNOT_FOUND) {
filename = filename.AfterFirst('@');
}
filename.Trim().Trim(false);
FileExtManager::FileType type = FileExtManager::GetType(filename);
if(bmps.count(type)) {
bmp = bmps[type];
}
wxMenuItem* item = new wxMenuItem(&menu, wxID_ANY, strings.Item(i));
item->SetBitmap(bmp);
m_idToName.insert(std::make_pair(item->GetId(), strings.Item(i)));
menu.Append(item);
}
// get the best position to show the menu
wxPoint pos = btn->GetPosition();
pos = m_scrollWin247->CalcScrolledPosition(pos);
pos.y += btn->GetSize().y;
#ifdef __WXGTK__
pos.y += 5;
pos.x += 5;
#elif defined(__WXMAC__)
pos.y += 10;
pos.x += 10;
#else // MSW
pos.y += 5;
pos.x += 5;
#endif
return GetPopupMenuSelectionFromUser(menu, pos);
}
示例5: OpenWindowsPanelBase
OpenWindowsPanel::OpenWindowsPanel(wxWindow* parent, const wxString& caption)
: OpenWindowsPanelBase(parent)
, m_caption(caption)
, m_mgr(PluginManager::Get())
, m_initDone(false)
, m_workspaceClosing(false)
, m_workspaceOpened(false)
{
BitmapLoader bmpLoader;
m_bitmaps = bmpLoader.MakeStandardMimeMap();
clConfig cfg;
m_auibar->ToggleTool(XRCID("TabsSortTool"), cfg.Read(kConfigTabsPaneSortAlphabetically, true));
EventNotifier::Get()->Connect(wxEVT_INIT_DONE, wxCommandEventHandler(OpenWindowsPanel::OnInitDone), NULL, this);
Bind(wxEVT_IDLE, &OpenWindowsPanel::OnIdle, this);
}
示例6: CscopeTabBase
CscopeTab::CscopeTab( wxWindow* parent, IManager *mgr )
: CscopeTabBase( parent )
, m_table(NULL)
, m_mgr(mgr)
{
BitmapLoader bl;
m_bitmaps = bl.MakeStandardMimeMap();
CScopeConfData data;
m_mgr->GetConfigTool()->ReadObject(wxT("CscopeSettings"), &data);
const wxString SearchScope[] = { wxTRANSLATE("Entire Workspace"), wxTRANSLATE("Active Project") };
m_stringManager.AddStrings(sizeof(SearchScope)/sizeof(wxString), SearchScope, data.GetScanScope(), m_choiceSearchScope);
wxFont defFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_font = wxFont( defFont.GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
m_checkBoxUpdateDb->SetValue(data.GetRebuildOption());
m_checkBoxRevertedIndex->SetValue(data.GetBuildRevertedIndexOption());
SetMessage(_("Ready"), 0);
Clear(); // To make the Clear button UpdateUI work initially
EventNotifier::Get()->Connect(wxEVT_CL_THEME_CHANGED, wxCommandEventHandler(CscopeTab::OnThemeChanged), NULL, this);
}