NDEVR
API Documentation
LogManagerDialog.h
1#pragma once
2#include <NDEVR/QCustomTabWidget.h>
3#include <QTimer>
4namespace NDEVR
5{
6 class LogView;
8 class Button;
9 class LogManager;
10
14 class NDEVR_WIDGETS_API LogManagerDialog : public QWidget
15 {
16 Q_OBJECT
17 public:
20 LogManagerDialog(QWidget* parent = nullptr);
23 void setLogManager(LogManager* manager);
27 void addLog(const StringView& name, InfoPipe* log);
30 void addLogView(LogView* log_view);
33 void setTimeSpans(const Buffer<TimeSpan>& time_spans);
36 QSize sizeHint() const override;
37 protected:
45 //Button* m_steps_recorder;
49 };
50}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
A core widget that allows the user to click one of many button types.
Definition Button.h:68
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:64
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
A light-weight base class for Log that allows processes to update, without the need for additional in...
LogManager * m_manager
The log manager providing available logs.
void addLog(const StringView &name, InfoPipe *log)
Adds a named log pipe as a new tab.
Dictionary< String, InfoPipe * > m_logs
Mapping of log names to their info pipes.
void updateFromManager()
Checks the log manager for new logs and updates the tabs accordingly.
LogView * m_combined_log_view
A log view that aggregates messages from all logs.
Buffer< LogView * > m_log_view
The log view widgets displayed in tabs.
QSize sizeHint() const override
Returns the preferred size hint for the dialog.
QTimer m_log_manager_check
Timer that periodically polls the log manager for changes.
void addLogView(LogView *log_view)
Adds an existing LogView widget as a new tab.
void setLogManager(LogManager *manager)
Sets the log manager that provides the available logs.
Button * m_choose_log
Button that opens the log file chooser.
QCustomTabWidget * m_tab_widget
The tab widget containing individual log views.
void setTimeSpans(const Buffer< TimeSpan > &time_spans)
Sets the selectable time spans used to filter log entries.
FileChooserDialog * m_chooser_dialog
Dialog for choosing a log file to open.
LogManagerDialog(QWidget *parent=nullptr)
Constructs the log manager dialog.
A class that has any number of children that also feed into the log.
Definition LogManager.h:15
A table showing a specific log that allows the user to scroll around to view various log entries.
Definition LogView.h:57
A tab widget provides a tab area and a "page area" that is used to display pages related to each tab.
The core String View class for the NDEVR API.
Definition StringView.h:58
The primary namespace for the NDEVR SDK.