Skip to content

Commit

Permalink
FEM: Results can now be double-clicked to show their task panel
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Apr 17, 2016
1 parent c5876fe commit 6b1c433
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Mod/Fem/Gui/ViewProviderResult.cpp
Expand Up @@ -27,6 +27,7 @@
#endif

#include "ViewProviderResult.h"
#include "Gui/Command.h"

using namespace FemGui;

Expand All @@ -44,6 +45,13 @@ ViewProviderResult::~ViewProviderResult()

}

bool ViewProviderResult::doubleClicked(void)
{
Gui::Command::runCommand(Gui::Command::Gui, "Gui.runCommand('Fem_ShowResult')");
return true;
}


// Python feature -----------------------------------------------------------------------

namespace Gui {
Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Fem/Gui/ViewProviderResult.h
Expand Up @@ -44,6 +44,8 @@ class FemGuiExport ViewProviderResult : public Gui::ViewProviderDocumentObject
// shows solid in the tree
virtual bool isShow(void) const
{ return true; }

bool doubleClicked(void);
};

typedef Gui::ViewProviderPythonFeatureT<ViewProviderResult> ViewProviderResultPython;
Expand Down

0 comments on commit 6b1c433

Please sign in to comment.