Make Dropdown menus at least as wide as the button
[ardour.git] / gtk2_ardour / export_report.h
index a509682808ec745e7ba0477da471381a9076f3f6..65339be701d32a37c449553f650afedb879a6cea 100644 (file)
@@ -147,14 +147,12 @@ public:
        {
        }
 
-       void set_logscale (Gtk::ToggleButton *b) {
-               bool en = b->get_active ();
+       void set_logscale (bool en) {
                _logscale = en;
                set_dirty ();
        }
 
-       void set_rectified (Gtk::ToggleButton *b) {
-               bool en = b->get_active ();
+       void set_rectified (bool en) {
                _rectified = en;
                set_dirty ();
        }
@@ -188,9 +186,11 @@ class ExportReport : public ArdourDialog
 public:
        typedef boost::shared_ptr<ARDOUR::ExportStatus> StatusPtr;
        ExportReport (ARDOUR::Session*, StatusPtr);
+       ExportReport (const std::string & title, const ARDOUR::AnalysisResults & ar);
        int run ();
 
 private:
+       void init (const ARDOUR::AnalysisResults &, bool);
        void draw_waveform (Cairo::RefPtr<Cairo::ImageSurface>& wave,
                        ARDOUR::ExportAnalysisPtr, uint32_t, int, size_t, int, int, bool, bool);
 
@@ -202,8 +202,9 @@ private:
        void audition_seek (int, float);
        void audition_progress (ARDOUR::framecnt_t, ARDOUR::framecnt_t);
        void on_switch_page (GtkNotebookPage*, guint page_num);
+       void on_logscale_toggled (Gtk::ToggleButton*);
+       void on_rectivied_toggled (Gtk::ToggleButton*);
 
-       StatusPtr        status;
        Gtk::Notebook    pages;
        ARDOUR::Session* _session;
        Gtk::Button*     stop_btn;
@@ -219,6 +220,7 @@ private:
 
        std::map<int, std::list<CimgPlayheadArea*> > timeline;
        std::map<int, AuditionInfo> files;
+       std::list<CimgWaveArea*> waves;
 
        int _audition_num;
        int _page_num;