mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
refs #335 show / hide bar
This commit is contained in:
committed by
Roland Winklmeier
parent
7028bcf66a
commit
7c5729ff44
45
src/blackgui/showhidebar.h
Normal file
45
src/blackgui/showhidebar.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/* Copyright (C) 2013
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_SHOWHIDEBAR_H
|
||||
#define BLACKGUI_SHOWHIDEBAR_H
|
||||
|
||||
#include <QFrame>
|
||||
|
||||
namespace Ui { class CShowHideBar; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
//! Show or hide another section
|
||||
class CShowHideBar : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CShowHideBar(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CShowHideBar();
|
||||
|
||||
//! Is shown?
|
||||
bool isShown() const;
|
||||
|
||||
signals:
|
||||
//! Show or hide cockpit details
|
||||
void toggleShowHide(bool show);
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CShowHideBar> ui;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user