-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ionut Muthi <[email protected]>
- Loading branch information
1 parent
76a8cae
commit 4bb2a2c
Showing
11 changed files
with
230 additions
and
21 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
plugins/datamonitorPlugin/include/datamonitorplugin/dataloggingmenu.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef DATALOGGINGMENU_HPP | ||
#define DATALOGGINGMENU_HPP | ||
|
||
#include <QWidget> | ||
#include <menuonoffswitch.h> | ||
#include <progresslineedit.h> | ||
#include "scopy-datamonitorplugin_export.h" | ||
|
||
namespace scopy { | ||
namespace datamonitor { | ||
|
||
enum ProgressBarState | ||
{ | ||
SUCCESS, | ||
ERROR, | ||
BUSSY | ||
}; | ||
|
||
class SCOPY_DATAMONITORPLUGIN_EXPORT DataLoggingMenu : public QWidget | ||
{ | ||
friend class DataMonitorStyleHelper; | ||
Q_OBJECT | ||
public: | ||
explicit DataLoggingMenu(QWidget *parent = nullptr); | ||
|
||
bool liveDataLogging() const; | ||
bool isLoadDataOverrideOn(); | ||
|
||
public Q_SLOTS: | ||
void updateDataLoggingStatus(ProgressBarState status); | ||
|
||
Q_SIGNALS: | ||
void pathChanged(QString path); | ||
void requestLiveDataLogging(QString path); | ||
void requestDataLogging(QString path); | ||
void requestDataLoading(QString path, bool override); | ||
|
||
private: | ||
QString filename; | ||
ProgressLineEdit *dataLoggingFilePath; | ||
QPushButton *dataLoggingBrowseBtn; | ||
QPushButton *dataLoggingBtn; | ||
QPushButton *dataLoadingBtn; | ||
MenuOnOffSwitch *liveDataLoggingButton; | ||
QCheckBox *loadDataOverride; | ||
bool m_liveDataLogging = false; | ||
void chooseFile(); | ||
void toggleButtonsEnabled(bool en); | ||
}; | ||
} // namespace datamonitor | ||
} // namespace scopy | ||
#endif // DATALOGGINGMENU_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.