//=========================================================================
//  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.
//=========================================================================
// .NAME jobtablewidget.h
// .SECTION Description
// .SECTION See Also

#ifndef __smtk_extension_cumulus_jobtablewidget_h
#define __smtk_extension_cumulus_jobtablewidget_h

#include "smtk/cumulus/jobspanel/Exports.h"

#include <QSharedPointer>
#include <QString>
#include <QWidget>

class QAbstractItemModel;
class QAction;
class QSortFilterProxyModel;

namespace Ui
{
class JobTableWidget;
}

namespace cumulus
{
class JobTableModel;
class CumulusProxy;

class SMTKCUMULUS_EXPORT JobTableWidget : public QWidget
{
  Q_OBJECT

public:
  explicit JobTableWidget(QWidget* parentObject = 0);
  ~JobTableWidget();

  void setModel(QAbstractItemModel* model);
  void setCumulusProxy(QSharedPointer<CumulusProxy> cumulusProxy);
  void addContextMenuAction(const QString& status, QAction* action);

protected:
  Ui::JobTableWidget* ui;
  QSortFilterProxyModel* m_proxyModel;
};

} // namespace cumulus

#endif
