Commit ff5ca570 authored by John Tourtellott's avatar John Tourtellott
Browse files

Add Cubit toolbar with simple "launch" button

parent f843fb1f
set(PluginHdrs
set(client_headers
pqCubitToolBar.h
pqCumulusJobsPanel.h
)
)
set(PluginSrcs
pqCumulusJobsPanel.cxx
)
set(client_sources
pqCubitToolBar.cxx
pqCumulusJobsPanel.cxx
)
set(CMAKE_AUTOMOC 1)
......@@ -16,14 +18,23 @@ paraview_plugin_add_dock_window(
SOURCES dock_sources
)
paraview_plugin_add_toolbar(
CLASS_NAME pqCubitToolBar
INTERFACES toolbar_interfaces
SOURCES toolbar_sources
)
# Specify the plugin
paraview_add_plugin(smtkACE3PPlugin
VERSION "1.0"
UI_INTERFACES ${dock_interfaces}
UI_INTERFACES
${dock_interfaces}
${toolbar_interfaces}
SOURCES
${PluginHdrs}
${PluginSrcs}
${client_headers}
${client_sources}
${dock_sources}
${toolbar_sources}
SERVER_MANAGER_XML
ACE3PSettings.xml
XML_DOCUMENTATION OFF
......
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//=========================================================================
#include "pqCubitToolBar.h"
// Qt
#include <QAction>
#include <QMessageBox>
pqCubitToolBar::pqCubitToolBar(QWidget* parent)
: Superclass("CUBIT Application", parent)
{
this->setObjectName("CUBIT Executable");
QAction* launchAction = this->addAction("Launch\nCUBIT");
QObject::connect(launchAction, &QAction::triggered, this, &pqCubitToolBar::onLaunch);
}
pqCubitToolBar::~pqCubitToolBar() = default;
void pqCubitToolBar::onLaunch()
{
QMessageBox::information(this, "", "Todo Launch CUBIT");
}
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//=========================================================================
#ifndef ace3p_extension_plugin_pqCubitToolBar_h
#define ace3p_extension_plugin_pqCubitToolBar_h
#include "smtk/PublicPointerDefs.h"
#include <QToolBar>
// class pqServer;
// class QAction;
// class vtkSMSMTKResourceManagerProxy;
class pqCubitToolBar : public QToolBar
{
Q_OBJECT
using Superclass = QToolBar;
public:
pqCubitToolBar(QWidget* parent = nullptr);
~pqCubitToolBar() override;
protected slots:
void onLaunch();
private:
Q_DISABLE_COPY(pqCubitToolBar);
};
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment