swift
internalscomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2015 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_INTERNALSCOMPONENT_H
7 #define SWIFT_GUI_INTERNALSCOMPONENT_H
8 
9 #include <QObject>
10 #include <QScopedPointer>
11 #include <QWidget>
12 
13 #include "gui/swiftguiexport.h"
15 
16 class QShowEvent;
17 
18 namespace Ui
19 {
20  class CInternalsComponent;
21 }
22 namespace swift::gui::components
23 {
25  class SWIFT_GUI_EXPORT CInternalsComponent : public QWidget
26  {
27  Q_OBJECT
28 
29  public:
31  explicit CInternalsComponent(QWidget *parent = nullptr);
32 
34  virtual ~CInternalsComponent() override;
35 
36  protected:
38  virtual void showEvent(QShowEvent *event) override;
39 
40  private:
42  void enableDebug(int state);
43 
45  void sendTextMessage();
46 
48  void sendAtis();
49 
51  void logStatusMessage();
52 
54  void showLogFiles();
55 
57  void displayOwnParts();
58 
60  void displayLogInSimulator();
61 
63  void contextFlagsToGui();
64 
66  void simulateCrash();
67 
69  void simulateAssert();
70 
72  void onCrashDumpUploadToggled(bool checked);
73 
75  void networkStatistics();
76 
78  void onNetworkStatisticsToggled(bool checked);
79 
80  QScopedPointer<Ui::CInternalsComponent> ui;
81  };
82 } // namespace swift::gui::components
83 
84 #endif // SWIFT_GUI_INTERNALSCOMPONENT_H
Internals for debugging, statistics.
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.