pqSpreadSheetColumnsVisibility.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef pqSpreadSheetColumnsVisibility_h
4 #define pqSpreadSheetColumnsVisibility_h
5 
6 #include "pqComponentsModule.h"
7 
9 #include "vtkSMViewProxy.h"
10 
11 #include <QCheckBox>
12 #include <QMenu>
13 #include <QWidgetAction>
14 
20 {
21 public:
25  static void populateMenu(vtkSMViewProxy* proxy, pqSpreadSheetViewModel* model, QMenu* menu);
26 
27 private:
28  static QCheckBox* addCheckableAction(QMenu* menu, const QString& text, bool checked);
29 
30  static void updateAllCheckState(QCheckBox* allCheckbox, const std::vector<QCheckBox*>& cboxes);
31 };
32 
33 #endif
#define PQCOMPONENTS_EXPORT
Superclass for all view proxies.
Generate a menu to control what columns we want to display from a pqSpreadSheetViewModel.