Line
Link Here
|
0 |
-- a/src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp |
0 |
++ b/src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp |
Lines 101-108
Link Here
|
101 |
|
101 |
|
102 |
// constructor |
102 |
// constructor |
103 |
DoxyBlocks::DoxyBlocks() : |
103 |
DoxyBlocks::DoxyBlocks() : |
104 |
m_pToolbar(0l), |
104 |
m_pToolbar(nullptr), |
105 |
m_DoxyBlocksLog(0l), |
105 |
m_DoxyBlocksLog(nullptr), |
106 |
m_LogPageIndex(0), |
106 |
m_LogPageIndex(0), |
107 |
m_bAutoVersioning(false) |
107 |
m_bAutoVersioning(false) |
108 |
{ |
108 |
{ |
Lines 234-241
Link Here
|
234 |
*/ |
234 |
*/ |
235 |
void DoxyBlocks::OnUpdateUI(wxUpdateUIEvent& WXUNUSED(event)) |
235 |
void DoxyBlocks::OnUpdateUI(wxUpdateUIEvent& WXUNUSED(event)) |
236 |
{ |
236 |
{ |
237 |
if(Manager::Get()->GetProjectManager()->GetProjects()->GetCount() == 0){ |
237 |
if (Manager::Get()->GetProjectManager()->GetProjects()->GetCount() == 0) |
238 |
m_pToolbar->Enable(false); |
238 |
{ |
|
|
239 |
if (m_pToolbar) |
240 |
m_pToolbar->Enable(false); |
239 |
wxMenuBar *menuBar = Manager::Get()->GetAppFrame()->GetMenuBar(); |
241 |
wxMenuBar *menuBar = Manager::Get()->GetAppFrame()->GetMenuBar(); |
240 |
menuBar->FindItem(ID_MENU_DOXYWIZARD)->Enable(false); |
242 |
menuBar->FindItem(ID_MENU_DOXYWIZARD)->Enable(false); |
241 |
menuBar->FindItem(ID_MENU_EXTRACTPROJECT)->Enable(false); |
243 |
menuBar->FindItem(ID_MENU_EXTRACTPROJECT)->Enable(false); |
Lines 264-277
Link Here
|
264 |
Manager::Get()->ProcessEvent(evt); |
266 |
Manager::Get()->ProcessEvent(evt); |
265 |
} |
267 |
} |
266 |
} |
268 |
} |
267 |
m_DoxyBlocksLog = 0; |
269 |
m_DoxyBlocksLog = nullptr; |
268 |
} |
270 |
} |
269 |
|
271 |
|
270 |
cbConfigurationPanel *DoxyBlocks::GetConfigurationPanel(wxWindow *parent) |
272 |
cbConfigurationPanel* DoxyBlocks::GetConfigurationPanel(wxWindow *parent) |
271 |
{ |
273 |
{ |
272 |
//create and display the configuration dialog for your plugin |
274 |
//create and display the configuration dialog for your plugin |
273 |
if(!IsAttached()){ |
275 |
if (!IsAttached()) |
274 |
return 0; |
276 |
{ |
|
|
277 |
return nullptr; |
275 |
} |
278 |
} |
276 |
|
279 |
|
277 |
// Get the version string before instantiating the panel so that it is recorded before |
280 |
// Get the version string before instantiating the panel so that it is recorded before |
Lines 346-352
Link Here
|
346 |
|
349 |
|
347 |
cbConfigurationPanel* DoxyBlocks::GetProjectConfigurationPanel(wxWindow* /*parent*/, cbProject* /*project*/) |
350 |
cbConfigurationPanel* DoxyBlocks::GetProjectConfigurationPanel(wxWindow* /*parent*/, cbProject* /*project*/) |
348 |
{ |
351 |
{ |
349 |
return 0; |
352 |
return nullptr; |
350 |
} |
353 |
} |
351 |
|
354 |
|
352 |
void DoxyBlocks::OnConfigure(wxCommandEvent & WXUNUSED(event)) |
355 |
void DoxyBlocks::OnConfigure(wxCommandEvent & WXUNUSED(event)) |