GroupRowsCommand.h 1.29 KB
Newer Older
1
2
3
4
5
6
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
//     NScD Oak Ridge National Laboratory, European Spallation Source
//     & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
7
#pragma once
8

9
#include "MantidQtWidgets/Common/DataProcessorUI/CommandBase.h"
10
11

namespace MantidQt {
12
namespace MantidWidgets {
13
namespace DataProcessor {
14
/** @class GroupRowsCommand
15

16
GroupRowsCommand defines the action "Group Selected"
17
*/
18
class GroupRowsCommand : public CommandBase {
19
public:
20
  GroupRowsCommand(DataProcessorPresenter *tablePresenter)
21
      : CommandBase(tablePresenter){};
22
  GroupRowsCommand(const QDataProcessorWidget &widget) : CommandBase(widget){};
23
  virtual ~GroupRowsCommand(){};
24
25

  void execute() override {
26
    m_presenter->notify(DataProcessorPresenter::GroupRowsFlag);
27
  };
28
29
30
  QString name() override { return QString("Group Selected"); }
  QString icon() override { return QString("://drag_curves.png"); }
  QString tooltip() override { return QString("Group selected rows"); }
31
  QString whatsthis() override {
32
    return QString("Places all selected runs into the same group");
33
  }
34
  QString shortcut() override { return QString(); }
35
};
LamarMoore's avatar
LamarMoore committed
36
37
} // namespace DataProcessor
} // namespace MantidWidgets
38
} // namespace MantidQt