swift
statusmessageform.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_COMPONENTS_STATUSMESSAGEFORM_H
7 #define SWIFT_GUI_COMPONENTS_STATUSMESSAGEFORM_H
8 
9 #include <QFrame>
10 #include <QObject>
11 #include <QScopedPointer>
12 
13 #include "gui/swiftguiexport.h"
14 #include "misc/statusmessage.h"
15 #include "misc/variant.h"
16 
17 class QWidget;
18 
19 namespace Ui
20 {
21  class CStatusMessageForm;
22 }
23 namespace swift::gui::components
24 {
28  class SWIFT_GUI_EXPORT CStatusMessageForm : public QFrame
29  {
30  Q_OBJECT
31 
32  public:
34  explicit CStatusMessageForm(QWidget *parent = nullptr);
35 
37  virtual ~CStatusMessageForm();
38 
40  void setVariant(const swift::misc::CVariant &messageVariant);
41 
43  void setValue(const swift::misc::CStatusMessage &message);
44 
46  void clear();
47 
49  void toggleVisibility();
50 
52  void setReducedInfo(bool reduced);
53 
54  private:
55  QScopedPointer<Ui::CStatusMessageForm> ui;
56  };
57 } // namespace swift::gui::components
58 #endif // SWIFT_GUI_COMPONENTS_STATUSMESSAGEFORM_H
Display details about a single status message.
Streamable status message, e.g.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Definition: variant.h:66
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.