X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=8aab988b26c2fc2ce7f6bc87bdb7450d210efcb7;hp=42462d22a7cca0d9ff13ab844897e240a51f8968;hb=696546819ac7b120ac2f8a8b004e62a1f213cbae;hpb=7c65709437184b09753d1bcacc02467b8f6171f1 diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 42462d22..8aab988b 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -57,11 +57,35 @@ class MainWindow : public QMainWindow { Q_OBJECT +private: + /** + * Name of the setting used to remember the directory + * containing the last file that was opened. + */ + static const char *SettingOpenDirectory; + + /** + * Name of the setting used to remember the directory + * containing the last file that was saved. + */ + static const char *SettingSaveDirectory; + public: explicit MainWindow(DeviceManager &device_manager, const char *open_file_name = NULL, QWidget *parent = 0); + QAction* action_open() const; + QAction* action_save_as() const; + QAction* action_connect() const; + QAction* action_quit() const; + QAction* action_view_zoom_in() const; + QAction* action_view_zoom_out() const; + QAction* action_view_zoom_fit() const; + QAction* action_view_zoom_one_to_one() const; + QAction* action_view_show_cursors() const; + QAction* action_about() const; + void run_stop(); void select_device(std::shared_ptr device); @@ -112,18 +136,6 @@ private Q_SLOTS: void device_selected(); private: - /** - * Name of the setting used to remember the directory - * containing the last file that was opened. - */ - static const char *SettingOpenDirectory; - - /** - * Name of the setting used to remember the directory - * containing the last file that was saved. - */ - static const char *SettingSaveDirectory; - DeviceManager &device_manager_; Session session_; @@ -134,6 +146,17 @@ private: QVBoxLayout *vertical_layout_; toolbars::MainBar *main_bar_; + + QAction *const action_open_; + QAction *const action_save_as_; + QAction *const action_connect_; + QAction *const action_quit_; + QAction *const action_view_zoom_in_; + QAction *const action_view_zoom_out_; + QAction *const action_view_zoom_fit_; + QAction *const action_view_zoom_one_to_one_; + QAction *const action_view_show_cursors_; + QAction *const action_about_; }; } // namespace pv