VPTissue Reference Manual
Status.h
Go to the documentation of this file.
1 #ifndef SIMPT_PAREX_STATUS_H_INCLUDED
2 #define SIMPT_PAREX_STATUS_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
23 
24 #include <memory>
25 #include <QWidget>
26 
27 class QTextEdit;
28 
29 namespace SimPT_Parex {
30 
34 class Status : public QWidget
35 {
36 public:
38  Status();
39 
41  virtual ~Status() {}
42 
44  void UpdateStatus(const std::shared_ptr<const ExplorationProgress>& progress);
45 
47  void Clear();
48 
50  void Connected();
51 
53  void Disconnected();
54 
55 private:
57  void UpdateView();
58 
59 private:
60  std::shared_ptr<const ExplorationProgress> m_progress;
61  QTextEdit* m_view;
62 };
63 
64 } // namespace
65 
66 #endif // end_of_include_guard
void UpdateStatus(const std::shared_ptr< const ExplorationProgress > &progress)
Update the status of an exploration.
Definition: Status.cpp:54
void Clear()
Clear the current displayed exploration.
Definition: Status.cpp:48
see the online Qt documentation
Namespace for SimPT parameter explorer package.
Definition: Client.cpp:52
virtual ~Status()
Destructor.
Definition: Status.h:41
Status()
Constructor.
Definition: Status.cpp:34
Widget to display status of subscribed exploration.
Definition: Status.h:34
void Disconnected()
Set font to disconnected state.
Definition: Status.cpp:96
Interface for ExplorationProgress.
void Connected()
Set font to connected state.
Definition: Status.cpp:89