-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#include "HYDROGUI_InputPanel.h"
#include "HYDROGUI_Module.h"
-#include "HYDROGUI_RunBrowser.h"
#include <CAM_Application.h>
#include <SUIT_Desktop.h>
return myModule;
}
+bool HYDROGUI_InputPanel::isApplyEnabled() const
+{
+ return myApply->isEnabled();
+}
+
+void HYDROGUI_InputPanel::setApplyEnabled( bool on )
+{
+ myApply->setEnabled( on );
+}
+
void HYDROGUI_InputPanel::onApply()
{
emit panelApply();
void HYDROGUI_InputPanel::onHelp()
{
- QString aModuleName = myModule->moduleName();
-
- QString aPagePath = HYDROGUI_RunBrowser::getPagePath( aModuleName );
-
- QString aPageName = "";
- QString aWindowTitle = windowTitle();
- if ( !aWindowTitle.isEmpty() )
- {
- aPageName = QStringList( aWindowTitle.split( " " ) ).join( "_" ).append( ".html" );
- aPageName.toLower();
- }
-
- QString aPage = aPagePath + QDir::separator() + aPageName;
- HYDROGUI_RunBrowser::showPage( myModule->getApp(), aPage );
+ emit panelHelp();
}
void HYDROGUI_InputPanel::closeEvent ( QCloseEvent * event )