Commit 4c23751f authored by Claes Sjofors's avatar Claes Sjofors Committed by Claes Sjöfors

Xtt eventlist export in Qt

parent 55ef760a
...@@ -88,6 +88,8 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp, ...@@ -88,6 +88,8 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp,
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "document-print");
addMenuItem(
toplevel, file, "&Export", SLOT(activate_export()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close");
...@@ -383,6 +385,11 @@ void HistQtWidget::activate_print() ...@@ -383,6 +385,11 @@ void HistQtWidget::activate_print()
hist->activate_print(); hist->activate_print();
} }
void HistQtWidget::activate_export()
{
hist->activate_export();
}
void HistQtWidget::activate_zoom_in() void HistQtWidget::activate_zoom_in()
{ {
hist->hist->zoom(1.2); hist->hist->zoom(1.2);
......
...@@ -106,6 +106,7 @@ protected: ...@@ -106,6 +106,7 @@ protected:
public slots: public slots:
void activate_print(); void activate_print();
void activate_export();
void activate_zoom_in(); void activate_zoom_in();
void activate_zoom_out(); void activate_zoom_out();
void activate_zoom_reset(); void activate_zoom_reset();
...@@ -139,4 +140,4 @@ public: ...@@ -139,4 +140,4 @@ public:
#endif #endif
#endif #endif
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment