Skip to content
Extraits de code Groupes Projets

Api update

Fusionnées Kubat a demandé de fusionner api-update vers master
2 fichiers
+ 12
0
Comparer les modifications
  • Côte à côte
  • En ligne
Fichiers
2
+ 11
0
@@ -91,3 +91,14 @@ VivyApplication::getMainWindow() const
throw std::logic_error("No main window in the graphic VivyApplication");
return mainWindowPtr.get();
}
/*
* @return the current VivyDocument, or null if there isn't one or if the current document is not a VivyDocument
*/
VivyDocument *
VivyApplication::getCurrentVivyDocument() const
{
if (!mainWindowPtr)
throw std::logic_error("No main window in the graphic VivyApplication");
return dynamic_cast<VivyDocument*>(mainWindowPtr.get()->getCurrentDocument());
}
Chargement en cours