Skip to content

Commit

Permalink
Added base publishing dialog class. Refs #8537.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Jan 13, 2014
1 parent 4f516c5 commit d57adad
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Code/Mantid/MantidQt/CustomDialogs/CMakeLists.txt
@@ -1,4 +1,5 @@
set ( SRC_FILES src/CreateSampleShapeDialog.cpp
set ( SRC_FILES src/CatalogPublishDialog.cpp
src/CreateSampleShapeDialog.cpp
src/ConvertTableToMatrixWorkspaceDialog.cpp
src/StartLiveDataDialog.cpp
src/FitDialog.cpp
Expand All @@ -18,7 +19,8 @@ set ( SRC_FILES src/CreateSampleShapeDialog.cpp
set ( SRC_UNITY_IGNORE_FILES )


set ( MOC_FILES inc/MantidQtCustomDialogs/CreateSampleShapeDialog.h
set ( MOC_FILES inc/MantidQtCustomDialogs/CatalogPublishDialog.h
inc/MantidQtCustomDialogs/CreateSampleShapeDialog.h
inc/MantidQtCustomDialogs/ConvertTableToMatrixWorkspaceDialog.h
inc/MantidQtCustomDialogs/StartLiveDataDialog.h
inc/MantidQtCustomDialogs/FitDialog.h
Expand Down
@@ -0,0 +1,27 @@
#ifndef MANTIDQT_CUSTOM_DIALOGS_CATALOGPUBLISHDIALOG_H
#define MANTIDQT_CUSTOM_DIALOGS_CATALOGPUBLISHDIALOG_H

#include "MantidQtAPI/AlgorithmDialog.h"

namespace MantidQt
{
namespace CustomDialogs
{
class CatalogPublishDialog : public MantidQt::API::AlgorithmDialog
{
Q_OBJECT

public:
/// Constructor
CatalogPublishDialog(QWidget *parent = 0);
/// Destructor
~CatalogPublishDialog();

private:
/// Create the inital layout.
void initLayout();
};
}
}

#endif /* MANTIDQT_CUSTOM_DIALOGS_CATALOGPUBLISHDIALOG_H */
22 changes: 22 additions & 0 deletions Code/Mantid/MantidQt/CustomDialogs/src/CatalogPublishDialog.cpp
@@ -0,0 +1,22 @@
#include "MantidQtCustomDialogs/CatalogPublishDialog.h"

namespace MantidQt
{
namespace CustomDialogs
{
// Declare the dialog. Name must match the class name.
DECLARE_DIALOG(CatalogPublishDialog);

/**
* Default constructor.
* @param parent :: Parent dialog.
*/
CatalogPublishDialog::CatalogPublishDialog(QWidget *parent) : MantidQt::API::AlgorithmDialog(parent) {}

/// Destructor
CatalogPublishDialog::~CatalogPublishDialog() {}

/// Initialise the layout
void CatalogPublishDialog::initLayout() {}
}
}

0 comments on commit d57adad

Please sign in to comment.