swift
showhidebar.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_SHOWHIDEBAR_H
7 #define SWIFT_GUI_SHOWHIDEBAR_H
8 
9 #include <QFrame>
10 #include <QObject>
11 #include <QScopedPointer>
12 
13 #include "gui/swiftguiexport.h"
14 
15 namespace Ui
16 {
17  class CShowHideBar;
18 }
19 namespace swift::gui
20 {
22  class SWIFT_GUI_EXPORT CShowHideBar : public QFrame
23  {
24  Q_OBJECT
25 
26  public:
28  explicit CShowHideBar(QWidget *parent = nullptr);
29 
31  virtual ~CShowHideBar();
32 
34  bool isShown() const;
35 
36  signals:
38  void toggleShowHide(bool show);
39 
40  private:
41  QScopedPointer<Ui::CShowHideBar> ui;
42  };
43 
44 } // namespace swift::gui
45 #endif // SWIFT_GUI_SHOWHIDEBAR_H
Show or hide (expand / collapse) another section.
Definition: showhidebar.h:23
void toggleShowHide(bool show)
Show or hide cockpit details.
GUI related classes.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.