pqExpressionsWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqExpressionsWidget_h
5 #define pqExpressionsWidget_h
6 
7 #include "pqComponentsModule.h"
8 #include <QWidget>
9 
10 class pqOneLinerTextEdit;
11 
18 {
19  Q_OBJECT
20  typedef QWidget Superclass;
21 
22 public:
23  pqExpressionsWidget(QWidget* parent = nullptr, const QString& groupName = "");
24  ~pqExpressionsWidget() override = default;
25 
29  pqOneLinerTextEdit* lineEdit();
30 
34  void setupButtons(const QString& groupName);
35 
36 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
40  void clear();
41 
42 private:
43  Q_DISABLE_COPY(pqExpressionsWidget)
44 
45  pqOneLinerTextEdit* OneLiner;
46 };
47 
48 #endif
#define PQCOMPONENTS_EXPORT
pqOneLinerTextEdit is a specialization of pqTextEdit to handle one-liner expressions.
pqExpressionsWidget is a widget to edit expression.