FEM: Results can now be double-clicked to show their task panel
This commit is contained in:
parent
c5876fe7ca
commit
6b1c433807
|
@ -27,6 +27,7 @@
|
|||
#endif
|
||||
|
||||
#include "ViewProviderResult.h"
|
||||
#include "Gui/Command.h"
|
||||
|
||||
using namespace FemGui;
|
||||
|
||||
|
@ -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 {
|
||||
|
|
|
@ -44,6 +44,8 @@ public:
|
|||
// shows solid in the tree
|
||||
virtual bool isShow(void) const
|
||||
{ return true; }
|
||||
|
||||
bool doubleClicked(void);
|
||||
};
|
||||
|
||||
typedef Gui::ViewProviderPythonFeatureT<ViewProviderResult> ViewProviderResultPython;
|
||||
|
|
Loading…
Reference in New Issue
Block a user