Mod: redundant void 2
This commit is contained in:
@@ -166,7 +166,7 @@ void CmdTechDrawPageDefault::activated(int iMsg)
|
||||
}
|
||||
}
|
||||
|
||||
bool CmdTechDrawPageDefault::isActive(void)
|
||||
bool CmdTechDrawPageDefault::isActive()
|
||||
{
|
||||
return hasActiveDocument();
|
||||
}
|
||||
@@ -246,7 +246,7 @@ void CmdTechDrawPageTemplate::activated(int iMsg)
|
||||
}
|
||||
}
|
||||
|
||||
bool CmdTechDrawPageTemplate::isActive(void)
|
||||
bool CmdTechDrawPageTemplate::isActive()
|
||||
{
|
||||
return hasActiveDocument();
|
||||
}
|
||||
@@ -281,7 +281,7 @@ void CmdTechDrawRedrawPage::activated(int iMsg)
|
||||
page->redrawCommand();
|
||||
}
|
||||
|
||||
bool CmdTechDrawRedrawPage::isActive(void)
|
||||
bool CmdTechDrawRedrawPage::isActive()
|
||||
{
|
||||
bool havePage = DrawGuiUtil::needPage(this);
|
||||
bool haveView = DrawGuiUtil::needView(this, false);
|
||||
@@ -427,7 +427,7 @@ void CmdTechDrawView::activated(int iMsg)
|
||||
commitCommand();
|
||||
}
|
||||
|
||||
bool CmdTechDrawView::isActive(void)
|
||||
bool CmdTechDrawView::isActive()
|
||||
{
|
||||
return DrawGuiUtil::needPage(this);
|
||||
}
|
||||
@@ -461,7 +461,7 @@ void CmdTechDrawActiveView::activated(int iMsg)
|
||||
Gui::Control().showDialog(new TaskDlgActiveView(page));
|
||||
}
|
||||
|
||||
bool CmdTechDrawActiveView::isActive(void)
|
||||
bool CmdTechDrawActiveView::isActive()
|
||||
{
|
||||
return DrawGuiUtil::needPage(this);
|
||||
}
|
||||
@@ -505,7 +505,7 @@ void CmdTechDrawSectionView::activated(int iMsg)
|
||||
commitCommand();
|
||||
}
|
||||
|
||||
bool CmdTechDrawSectionView::isActive(void)
|
||||
bool CmdTechDrawSectionView::isActive()
|
||||
{
|
||||
bool havePage = DrawGuiUtil::needPage(this);
|
||||
bool haveView = DrawGuiUtil::needView(this);
|
||||
@@ -554,7 +554,7 @@ void CmdTechDrawDetailView::activated(int iMsg)
|
||||
Gui::Control().showDialog(new TaskDlgDetail(dvp));
|
||||
}
|
||||
|
||||
bool CmdTechDrawDetailView::isActive(void)
|
||||
bool CmdTechDrawDetailView::isActive()
|
||||
{
|
||||
bool havePage = DrawGuiUtil::needPage(this);
|
||||
bool haveView = DrawGuiUtil::needView(this);
|
||||
@@ -708,7 +708,7 @@ void CmdTechDrawProjectionGroup::activated(int iMsg)
|
||||
Gui::Control().showDialog(new TaskDlgProjGroup(multiView, true));
|
||||
}
|
||||
|
||||
bool CmdTechDrawProjectionGroup::isActive(void)
|
||||
bool CmdTechDrawProjectionGroup::isActive()
|
||||
{
|
||||
bool havePage = DrawGuiUtil::needPage(this);
|
||||
bool taskInProgress = false;
|
||||
@@ -904,7 +904,7 @@ void CmdTechDrawBalloon::activated(int iMsg)
|
||||
}
|
||||
}
|
||||
|
||||
bool CmdTechDrawBalloon::isActive(void)
|
||||
bool CmdTechDrawBalloon::isActive()
|
||||
{
|
||||
bool havePage = DrawGuiUtil::needPage(this);
|
||||
bool haveView = DrawGuiUtil::needView(this);
|
||||
@@ -946,7 +946,7 @@ void CmdTechDrawClipGroup::activated(int iMsg)
|
||||
commitCommand();
|
||||
}
|
||||
|
||||
bool CmdTechDrawClipGroup::isActive(void)
|
||||
bool CmdTechDrawClipGroup::isActive()
|
||||
{
|
||||
return DrawGuiUtil::needPage(this);
|
||||
}
|
||||
@@ -1021,7 +1021,7 @@ void CmdTechDrawClipGroupAdd::activated(int iMsg)
|
||||
commitCommand();
|
||||
}
|
||||
|
||||
bool CmdTechDrawClipGroupAdd::isActive(void)
|
||||
bool CmdTechDrawClipGroupAdd::isActive()
|
||||
{
|
||||
bool havePage = DrawGuiUtil::needPage(this);
|
||||
bool haveClip = false;
|
||||
@@ -1094,7 +1094,7 @@ void CmdTechDrawClipGroupRemove::activated(int iMsg)
|
||||
commitCommand();
|
||||
}
|
||||
|
||||
bool CmdTechDrawClipGroupRemove::isActive(void)
|
||||
bool CmdTechDrawClipGroupRemove::isActive()
|
||||
{
|
||||
bool havePage = DrawGuiUtil::needPage(this);
|
||||
bool haveClip = false;
|
||||
@@ -1159,7 +1159,7 @@ void CmdTechDrawSymbol::activated(int iMsg)
|
||||
}
|
||||
}
|
||||
|
||||
bool CmdTechDrawSymbol::isActive(void)
|
||||
bool CmdTechDrawSymbol::isActive()
|
||||
{
|
||||
return DrawGuiUtil::needPage(this);
|
||||
}
|
||||
@@ -1217,7 +1217,7 @@ void CmdTechDrawDraftView::activated(int iMsg)
|
||||
}
|
||||
}
|
||||
|
||||
bool CmdTechDrawDraftView::isActive(void)
|
||||
bool CmdTechDrawDraftView::isActive()
|
||||
{
|
||||
return DrawGuiUtil::needPage(this);
|
||||
}
|
||||
@@ -1282,7 +1282,7 @@ void CmdTechDrawArchView::activated(int iMsg)
|
||||
commitCommand();
|
||||
}
|
||||
|
||||
bool CmdTechDrawArchView::isActive(void)
|
||||
bool CmdTechDrawArchView::isActive()
|
||||
{
|
||||
return DrawGuiUtil::needPage(this);
|
||||
}
|
||||
@@ -1331,7 +1331,7 @@ void CmdTechDrawSpreadsheetView::activated(int iMsg)
|
||||
commitCommand();
|
||||
}
|
||||
|
||||
bool CmdTechDrawSpreadsheetView::isActive(void)
|
||||
bool CmdTechDrawSpreadsheetView::isActive()
|
||||
{
|
||||
//need a Page and a SpreadSheet::Sheet
|
||||
bool havePage = DrawGuiUtil::needPage(this);
|
||||
@@ -1387,7 +1387,7 @@ void CmdTechDrawExportPageSVG::activated(int iMsg)
|
||||
}
|
||||
}
|
||||
|
||||
bool CmdTechDrawExportPageSVG::isActive(void)
|
||||
bool CmdTechDrawExportPageSVG::isActive()
|
||||
{
|
||||
return DrawGuiUtil::needPage(this);
|
||||
}
|
||||
@@ -1453,7 +1453,7 @@ void CmdTechDrawExportPageDXF::activated(int iMsg)
|
||||
}
|
||||
|
||||
|
||||
bool CmdTechDrawExportPageDXF::isActive(void)
|
||||
bool CmdTechDrawExportPageDXF::isActive()
|
||||
{
|
||||
return DrawGuiUtil::needPage(this);
|
||||
}
|
||||
@@ -1485,12 +1485,12 @@ void CmdTechDrawProjectShape::activated(int iMsg)
|
||||
}
|
||||
}
|
||||
|
||||
bool CmdTechDrawProjectShape::isActive(void)
|
||||
bool CmdTechDrawProjectShape::isActive()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void CreateTechDrawCommands(void)
|
||||
void CreateTechDrawCommands()
|
||||
{
|
||||
Gui::CommandManager& rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user