13
0

editor.h compiles.

git-svn-id: svn://localhost/trunk/ardour2@64 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Taybin Rutkin 2005-10-22 15:30:17 +00:00
parent 494ecdd0d3
commit 01a15535e8
10 changed files with 33 additions and 49 deletions

View File

@ -16,16 +16,19 @@ domain = 'gtk_ardour'
gtkardour.Append(DOMAIN=domain, MAJOR=1,MINOR=0,MICRO=2)
gtkardour.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
gtkardour.Append(CCFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
gtkardour.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
gtkardour.Append(CXXFLAGS="-DFLOWCANVAS_AA")
gtkardour.Append(PACKAGE=domain)
gtkardour.Append(POTFILE=domain + '.pot')
gtkardour.Merge ([
libraries['ardour'],
libraries['gtkmm2ext'],
libraries['flowcanvas'],
libraries['midi++2'],
libraries['pbd3'],
libraries['gtkmm2'],
libraries['libgnomecanvas2'],
libraries['libgnomecanvasmm'],
libraries['sysmidi'],
libraries['sndfile'],
@ -36,7 +39,6 @@ gtkardour.Merge ([
libraries['gdkmm2'],
libraries['sigc2'],
libraries['gtk2'],
libraries['libgnomecanvas2'],
libraries['xml'],
libraries['soundtouch'],
libraries['samplerate'],

View File

@ -150,7 +150,7 @@ ARDOUR_UI::install_actions ()
register_action (common_actions, X_("GotoMixer"), _("Mixer"), mem_fun(*this, &ARDOUR_UI::goto_mixer_window));
register_toggle_action (common_actions, X_("ToggleSoundFileBrowser"), _("Sound File Browser"), mem_fun(*this, &ARDOUR_UI::toggle_sound_file_browser));
register_toggle_action (common_actions, X_("ToggleOptionsEditor"), _("Options Editor"), mem_fun(*this, &ARDOUR_UI::toggle_options_window));
register_toggle_action (common_actions, X_("ToggleAudioLibrary"), _("Audio Library"), mem_fun(*this, &ARDOUR_UI::toggle_sfdb_window));
register_toggle_action (common_actions, X_("ToggleAudioLibrary"), _("Audio Library"), mem_fun(*this, &ARDOUR_UI::toggle_sound_file_browser));
act = register_toggle_action (common_actions, X_("ToggleInspector"), _("Track/Bus Inspector"), mem_fun(*this, &ARDOUR_UI::toggle_route_params_window));
session_sensitive_actions.push_back (act);
act = register_toggle_action (common_actions, X_("ToggleConnections"), _("Connections"), mem_fun(*this, &ARDOUR_UI::toggle_connection_editor));

View File

@ -35,6 +35,7 @@ using __gnu_cxx::slist;
#include <gtkmm/frame.h>
#include <gtkmm/notebook.h>
#include <gtkmm/treeview.h>
#include <gtkmm/liststore.h>
#include "ardour_dialog.h"
@ -62,9 +63,9 @@ class ConnectionEditor : public ArdourDialog {
struct ConnectionDisplayModelColumns : public Gtk::TreeModel::ColumnRecord {
SnapshotDisplayModelColumns() {
add (visible_name);
add (real_name);
ConnectionDisplayModelColumns() {
add (name);
add (connection);
}
Gtk::TreeModelColumn<Glib::ustring> name;
Gtk::TreeModelColumn<ARDOUR::Connection*> connection;

View File

@ -31,11 +31,18 @@
#include <sndfile.h>
#include <gtkmm.h>
#include <gtkmm/layout.h>
#include <gtkmm/comboboxtext.h>
#include <libgnomecanvas/libgnomecanvas.h>
#include <libgnomecanvas/gnome-canvas-util.h>
#include <libgnomecanvasmm/canvas.h>
#include <libgnomecanvasmm/polygon.h>
#include <libgnomecanvasmm/text.h>
#include <libgnomecanvasmm/rect.h>
#include <libgnomecanvasmm/line.h>
#include <gtkmm2ext/selector.h>
#include <gtkmm2ext/click_box.h>
@ -196,14 +203,14 @@ class Editor : public PublicEditor
*/
if (pixel >= 0) {
return (jack_nframes_t) rint (pixel * frames_per_unit * GNOME_CANVAS(track_gnome_canvas.gobj())->pixels_per_unit);
return (jack_nframes_t) rint (pixel * frames_per_unit * GNOME_CANVAS(track_canvas.gobj())->pixels_per_unit);
} else {
return 0;
}
}
gulong frame_to_pixel (jack_nframes_t frame) {
return (gulong) rint ((frame / (frames_per_unit * GNOME_CANVAS(track_gnome_canvas.gobj())->pixels_per_unit)));
return (gulong) rint ((frame / (frames_per_unit * GNOME_CANVAS(track_canvas.gobj())->pixels_per_unit)));
}
/* selection */
@ -471,8 +478,8 @@ class Editor : public PublicEditor
GdkCursor *current_canvas_cursor;
Gnome::CanvasAA track_canvas;
Gnome::CanvasAA time_canvas;
Gnome::Canvas::CanvasAA track_canvas;
Gnome::Canvas::CanvasAA time_canvas;
Gnome::Canvas::Text* first_action_message;
Gnome::Canvas::Text* verbose_canvas_cursor;
@ -566,11 +573,11 @@ class Editor : public PublicEditor
guint32 visible_timebars;
Gtk::Menu *editor_ruler_menu;
Gnome::Canvas::SimpleRect* tempo_bar;
Gnome::Canvas::SimpleRect* meter_bar;
Gnome::Canvas::SimpleRect* marker_bar;
Gnome::Canvas::SimpleRect* range_marker_bar;
Gnome::Canvas::SimpleRect* transport_marker_bar;
Gnome::Canvas::Rect* tempo_bar;
Gnome::Canvas::Rect* meter_bar;
Gnome::Canvas::Rect* marker_bar;
Gnome::Canvas::Rect* range_marker_bar;
Gnome::Canvas::Rect* transport_marker_bar;
Gnome::Canvas::Line* tempo_line;

View File

@ -1,25 +0,0 @@
/*
Copyright (C) 1999-2002 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.
$Id$
*/
#ifndef __gtk_ardour_io_menu_h__
#define __gtk_ardour_io_menu_h__
#endif /* __gtk_ardour_io_menu_h__ */

View File

@ -15,7 +15,7 @@ domain = 'libardour'
ardour.Append(DOMAIN = domain, MAJOR = 1, MINOR = 0, MICRO = 0)
ardour.Append(CXXFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"")
ardour.Append(CCFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
ardour.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
ardour.Append(PACKAGE = domain)
ardour.Append(POTFILE = domain + '.pot')

View File

@ -25,8 +25,8 @@ flowcanvas.Merge ([
domain = 'libflowcanvas'
flowcanvas.Append(DOMAIN=domain,MAJOR=0,MINOR=8,MICRO=1)
flowcanvas.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
flowcanvas.Append(DOMAIN=domain,MAJOR=0,MINOR=0,MICRO=1)
flowcanvas.Append(CXXFLAGS="-DFLOWCANVAS_AA")
flowcanvas_files = Split("""
src/Connection.cpp
@ -40,6 +40,6 @@ libflowcanvas = flowcanvas.StaticLibrary('flowcanvas', flowcanvas_files)
Default(libflowcanvas)
env.Alias('tarball', env.Distribute (env['DISTTREE'],
[ 'SConscript'] +
['SConscript'] +
flowcanvas_files +
glob.glob('flowcanvas/*.h')))

View File

@ -52,11 +52,11 @@ class Module;
*
* \ingroup FlowCanvas
*/
#ifdef ANTI_ALIAS
#ifdef FLOWCANVAS_AA
class FlowCanvas : public Gnome::Canvas::CanvasAA
#else
class FlowCanvas : public Gnome::Canvas::Canvas
#endif
#endif // FLOWCANVAS_AA
{
public:
FlowCanvas(double width, double height);

View File

@ -27,7 +27,7 @@ domain = 'libgtkmm2ext'
gtkmm2ext.Append(DOMAIN=domain,MAJOR=0,MINOR=8,MICRO=1)
gtkmm2ext.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
gtkmm2ext.Append(CCFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
gtkmm2ext.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
gtkmm2ext.Append(PACKAGE=domain)
gtkmm2ext.Append(POTFILE=domain + '.pot')

View File

@ -28,7 +28,6 @@
#include <gtkmm.h>
#include <pbd/error.h>
#include <pbd/compose.h>
#include <pbd/touchable.h>
#include <pbd/failed_constructor.h>
#include <pbd/pthread_utils.h>