#include <memory>
#include <QObject>
+#include "pv/data/segment.hpp"
using std::deque;
using std::shared_ptr;
Q_SIGNALS:
void samples_cleared();
- void samples_added(shared_ptr<Segment> segment, uint64_t start_sample,
+ void samples_added(SharedPtrToSegment segment, uint64_t start_sample,
uint64_t end_sample);
void min_max_changed(float min, float max);
shared_ptr<Session> session = make_shared<Session>(device_manager_, name);
- connect(session.get(), SIGNAL(add_view(views::ViewType, Session*)),
- this, SLOT(on_add_view(views::ViewType, Session*)));
+ connect(session.get(), SIGNAL(add_view(ViewType, Session*)),
+ this, SLOT(on_add_view(ViewType, Session*)));
connect(session.get(), SIGNAL(name_changed()),
this, SLOT(on_session_name_changed()));
connect(session.get(), SIGNAL(device_changed()),
#include "session.hpp"
#include "subwindows/subwindowbase.hpp"
-#include "views/viewbase.hpp"
using std::list;
using std::map;
namespace view {
class View;
+class ViewBase;
}
namespace widgets {
#endif
}
+using pv::views::ViewBase;
+using pv::views::ViewType;
+
class MainWindow : public QMainWindow
{
Q_OBJECT
shared_ptr<views::ViewBase> get_active_view() const;
- shared_ptr<views::ViewBase> add_view(views::ViewType type, Session &session);
+ shared_ptr<views::ViewBase> add_view(ViewType type, Session &session);
- void remove_view(shared_ptr<views::ViewBase> view);
+ void remove_view(shared_ptr<ViewBase> view);
shared_ptr<subwindows::SubWindowBase> add_subwindow(
subwindows::SubWindowType type, Session &session);
virtual bool restoreState(const QByteArray &state, int version = 0);
private Q_SLOTS:
- void on_add_view(views::ViewType type, Session *session);
+ void on_add_view(ViewType type, Session *session);
void on_focus_changed();
void on_focused_session_changed(shared_ptr<Session> session);
class ViewBase;
}
+using pv::views::ViewType;
class Session : public QObject
{
void data_received();
- void add_view(views::ViewType type, Session *session);
+ void add_view(ViewType type, Session *session);
public Q_SLOTS:
void on_data_saved();