qpcpp/ports/qt/guiapp.hpp

52 lines
1.5 KiB
C++
Raw Normal View History

//============================================================================
2022-08-28 22:12:27 -04:00
// Copyright (C) 2005 Quantum Leaps, LLC <state-machine.com>.
//
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
//
// This software is dual-licensed under the terms of the open source GNU
// General Public License version 3 (or any later version), or alternatively,
// under the terms of one of the closed source Quantum Leaps commercial
// licenses.
//
// The terms of the open source GNU General Public License version 3
// can be found at: <www.gnu.org/licenses/gpl-3.0>
//
// The terms of the closed source Quantum Leaps commercial licenses
// can be found at: <www.state-machine.com/licensing>
//
// Redistributions in source code must retain this top-level comment block.
// Plagiarizing this software to sidestep the license obligations is illegal.
//
// Contact information:
// <www.state-machine.com/licensing>
// <info@state-machine.com>
//============================================================================
2022-08-28 22:12:27 -04:00
//! @date Last updated on: 2022-06-30
//! @version Last updated for: @ref qpcpp_7_0_1
//!
//! @file
//! @brief QP/C++ port to Qt
2015-05-14 16:05:04 -04:00
2022-08-28 22:12:27 -04:00
#ifndef GUIAPP_HPP
#define GUIAPP_HPP
2012-08-14 18:00:48 -04:00
#include <QApplication>
2013-12-30 17:41:15 -05:00
namespace QP {
2013-10-10 20:01:51 -04:00
class GuiApp : public QApplication {
2012-08-14 18:00:48 -04:00
Q_OBJECT
public:
2013-10-10 20:01:51 -04:00
GuiApp(int &argc, char **argv);
void registerAct(void *act);
2012-08-14 18:00:48 -04:00
virtual bool event(QEvent *e);
2013-10-10 20:01:51 -04:00
private:
2014-04-21 21:48:04 -04:00
void *m_act; // GUI active object associated with this GUI application
2012-08-14 18:00:48 -04:00
};
2014-04-21 21:48:04 -04:00
} // namespace QP
2013-12-30 17:41:15 -05:00
2022-08-28 22:12:27 -04:00
#endif // GUIAPP_HPP