summaryrefslogtreecommitdiff
path: root/gtk2_ardour/analysis_window.h
diff options
context:
space:
mode:
authorSampo Savolainen <v2@iki.fi>2006-03-12 21:58:52 +0000
committerSampo Savolainen <v2@iki.fi>2006-03-12 21:58:52 +0000
commit3891c733af596666b4ed98765d36226582ad624c (patch)
tree727851e983971da1c38a601a6712eb8c7ca9254d /gtk2_ardour/analysis_window.h
parenta505e1469d362cc32acb01252d192c73729fbc43 (diff)
First commit on FFT analysis window. Still some functionality missing,
but it's mostly done. git-svn-id: svn://localhost/trunk/ardour2@383 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/analysis_window.h')
-rw-r--r--gtk2_ardour/analysis_window.h114
1 files changed, 114 insertions, 0 deletions
diff --git a/gtk2_ardour/analysis_window.h b/gtk2_ardour/analysis_window.h
new file mode 100644
index 0000000000..c4ae7f2252
--- /dev/null
+++ b/gtk2_ardour/analysis_window.h
@@ -0,0 +1,114 @@
+/*
+ Copyright (C) 2006 Paul Davis
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#ifndef __ardour_analysis_window_h__
+#define __ardour_analysis_window_h__
+
+#include <glibmm.h>
+#include <glibmm/refptr.h>
+
+#include <gtkmm/radiobutton.h>
+#include <gtkmm/dialog.h>
+#include <gtkmm/layout.h>
+#include <gtkmm/treeview.h>
+#include <gtkmm/notebook.h>
+#include <gtkmm/label.h>
+#include <gtkmm/liststore.h>
+#include <gtkmm/separator.h>
+
+#include <gtkmm2ext/dndtreeview.h>
+
+#include <pbd/lockmonitor.h>
+
+
+#include "ardour_dialog.h"
+#include "fft_graph.h"
+#include "fft_result.h"
+
+
+class AnalysisWindow : public ArdourDialog
+{
+ public:
+ AnalysisWindow ();
+ ~AnalysisWindow ();
+
+ void set_rangemode();
+ void set_regionmode();
+
+ void track_list_row_changed(const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter);
+
+
+ private:
+
+ void clear_tracklist();
+
+ void source_selection_changed (Gtk::RadioButton *);
+ void display_model_changed (Gtk::RadioButton *);
+
+ void analyze_data (Gtk::Button *);
+
+ struct TrackListColumns : public Gtk::TreeModel::ColumnRecord {
+ public:
+ TrackListColumns () {
+ add (trackname);
+ add (visible);
+ add (color);
+ add (graph);
+ }
+ Gtk::TreeModelColumn<std::string> trackname;
+ Gtk::TreeModelColumn<bool> visible;
+ Gtk::TreeModelColumn<Gdk::Color> color;
+ Gtk::TreeModelColumn<FFTResult *> graph;
+ };
+
+ // Packing essentials
+ Gtk::HBox hbox;
+ Gtk::VBox vbox;
+
+ // Left side
+ Glib::RefPtr<Gtk::ListStore> tlmodel;
+ TrackListColumns tlcols;
+ Gtk::TreeView track_list;
+
+ Gtk::Label source_selection_label;
+
+ Gtk::RadioButton source_selection_ranges_rb;
+ Gtk::RadioButton source_selection_regions_rb;
+
+ Gtk::HSeparator hseparator1;
+
+ Gtk::Label display_model_label;
+ Gtk::RadioButton display_model_composite_separate_rb;
+ Gtk::RadioButton display_model_composite_all_tracks_rb;
+
+ Gtk::HSeparator hseparator2;
+
+ Gtk::Button refresh_button;
+
+ // The graph
+ FFTGraph fft_graph;
+
+ bool track_list_ready;
+ PBD::Lock track_list_lock;
+
+ friend class FFTGraph;
+};
+
+#endif // __ardour_analysis_window_h
+