22 #include <QMessageBox> 37 View *view,
bool add_default_widgets) :
38 QToolBar(
"Standard Trace View Toolbar", parent),
41 action_view_zoom_in_(new QAction(
this)),
42 action_view_zoom_out_(new QAction(
this)),
43 action_view_zoom_fit_(new QAction(
this)),
44 action_view_show_cursors_(new QAction(
this)),
46 action_sdm_last_(new QAction(
this)),
47 action_sdm_last_complete_(new QAction(
this)),
48 action_sdm_single_(new QAction(
this)),
49 segment_selector_(new QSpinBox(
this))
51 setObjectName(QString::fromUtf8(
"StandardBar"));
56 QIcon(
":/icons/zoom-in.png")));
64 QIcon(
":/icons/zoom-out.png")));
72 QIcon(
":/icons/zoom-fit-best.png")));
84 action_sdm_last_->setIcon(QIcon(
":/icons/view-displaymode-last_segment.svg"));
108 connect(&
session_, SIGNAL(new_segment(
int)),
111 connect(&
session_, SIGNAL(segment_completed(
int)),
112 view_, SLOT(on_segment_completed(
int)));
116 connect(
view_, SIGNAL(segment_changed(
int)),
122 connect(
view_, SIGNAL(segment_display_mode_changed(
int,
bool)),
125 connect(
view_, SIGNAL(always_zoom_to_fit_changed(
bool)),
128 connect(
view_, SIGNAL(cursor_state_changed(
bool)),
131 if (add_default_widgets)
160 action->setVisible(state);
233 if (new_segment_id > 0) {
244 const uint32_t ui_segment_id = segment_id + 1;
262 const uint32_t segment_id = ui_segment_id - 1;
QAction *const action_view_zoom_fit_
void on_segment_selected(int ui_segment_id)
void on_segment_changed(int segment_id)
QAction *const action_sdm_last_complete_
vector< QAction * > multi_segment_actions_
QAction * action_view_zoom_out() const
QAction * action_view_zoom_fit() const
Session & session() const
void on_segment_display_mode_changed(int mode, bool segment_selectable)
void on_actionViewShowCursors_triggered()
QAction * action_view_show_cursors() const
void on_actionSDMLastComplete_triggered()
void on_new_segment(int new_segment_id)
void set_segment_display_mode(Trace::SegmentDisplayMode mode)
void on_actionSDMLast_triggered()
void on_always_zoom_to_fit_changed(bool state)
void show_cursors(bool show=true)
uint32_t current_segment() const
StandardBar(Session &session, QWidget *parent, trace::View *view, bool add_default_widgets=true)
void on_actionViewZoomIn_triggered()
void segment_selected(int segment_id)
QAction *const action_sdm_single_
QAction * action_view_zoom_in() const
QAction *const action_view_zoom_out_
QSpinBox * segment_selector_
void on_cursor_state_changed(bool show)
void zoom_fit(bool gui_state)
virtual void add_toolbar_widgets()
void on_actionViewZoomOut_triggered()
Trace::SegmentDisplayMode segment_display_mode() const
QAction *const action_view_zoom_in_
void on_actionViewZoomFit_triggered(bool checked)
it will come up with a session that has the demo device selected That you can get to know the program even when you don t have any hardware to use it you see a list of devices PulseView has recognized If the device you want to use is you can just select it here image::device_selector_dropdown png[] If it s not you ll need to scan for it first Since most serial port and Ethernet devices can t be auto this is usually required for those To do either choose the Connect to Device option from the list or click on the button itself You will see the following you ll need to pick a driver that you want to use In order to do this
QToolButton * segment_display_mode_selector_
QAction *const action_sdm_last_
QAction *const action_view_show_cursors_
virtual void show_multi_segment_ui(const bool state)
bool segment_is_selectable() const
void on_actionSDMSingle_triggered()