13
0

Install everything to *ardour3* instead of *ardour2*.

Fix initial display of keys and scroomer on new MIDI tracks.
Remove console barf.


git-svn-id: svn://localhost/ardour2/trunk@2909 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2008-01-13 21:34:04 +00:00
parent 2db91c126e
commit 794917fca7
21 changed files with 51 additions and 51 deletions

View File

@ -12,4 +12,4 @@ file) will be removed.
(2) STANDARD TEMPLATES
The templates in ./templates are intended for installation in
$prefix/share/ardour2/templates.
$prefix/share/ardour3/templates.

View File

@ -1236,12 +1236,12 @@ if os.path.exists('.svn'):
the_revision = env.Command ('frobnicatory_decoy', [], create_stored_revision)
remove_ardour = env.Command ('frobnicatory_decoy2', [],
[ Delete ('$PREFIX/etc/ardour2'),
Delete ('$PREFIX/lib/ardour2'),
Delete ('$PREFIX/bin/ardour2')])
[ Delete ('$PREFIX/etc/ardour3'),
Delete ('$PREFIX/lib/ardour3'),
Delete ('$PREFIX/bin/ardour3')])
env.Alias('revision', the_revision)
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour_system.rc'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour_system.rc'))
env.Alias('uninstall', remove_ardour)
Default (sysrcbuild)

View File

@ -401,8 +401,8 @@ else:
my_font_dict['%FONT_ITALIC_HUGER%'] = 'sans italic 34'
my_font_dict['%FONT_ITALIC_MASSIVE%'] = 'sans italic 60'
ardour_dark_theme = env.SubstInFile ('ardour2_ui_dark.rc', 'ardour2_ui_dark.rc.in', SUBST_DICT = my_font_dict)
ardour_light_theme = env.SubstInFile ('ardour2_ui_light.rc', 'ardour2_ui_light.rc.in', SUBST_DICT = my_font_dict)
ardour_dark_theme = env.SubstInFile ('ardour3_ui_dark.rc', 'ardour3_ui_dark.rc.in', SUBST_DICT = my_font_dict)
ardour_light_theme = env.SubstInFile ('ardour3_ui_light.rc', 'ardour3_ui_light.rc.in', SUBST_DICT = my_font_dict)
my_subst_dict = { }
@ -456,7 +456,7 @@ Default(ardour_light_theme)
if env['VST']:
Default(ardourlib)
# the library - into the library dir
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), ardourlib))
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), ardourlib))
else:
if env['VERSIONED']:
@ -467,25 +467,25 @@ else:
#install
# the executable - into the library dir
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), ardour))
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), ardour))
# the script - into the bin dir
env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour2', ardoursh))
env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour3', ardoursh))
if env['NLS']:
i18n (gtkardour, gtkardour_files+skipped_files+fft_analysis_files, env)
# configuration files
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), ardour_dark_theme))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), ardour_light_theme))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.menus'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour-sae.menus'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.bindings'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour-sae-ansi.bindings'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour-sae-de.bindings'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), ardour_dark_theme))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), ardour_light_theme))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour.menus'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour-sae.menus'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour.bindings'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour-sae-ansi.bindings'))
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour-sae-de.bindings'))
# data files
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour2'), 'splash.png'))
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour2', 'pixmaps'), pixmap_files))
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour2', 'icons'), icon_files))
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour3'), 'splash.png'))
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour3', 'pixmaps'), pixmap_files))
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour3', 'icons'), icon_files))
env.Alias ('version', gtkardour.VersionBuild(['version.cc','version.h'], []))
@ -496,12 +496,12 @@ env.Alias ('tarball', env.Distribute (env['DISTTREE'],
'ardour.sh.in',
'ardev_common.sh.in',
'ardev', 'ardbg',
'ardour2_ui_dark.rc.in', 'ardour2_ui_light.rc.in', 'splash.png',
'ardour3_ui_dark.rc.in', 'ardour3_ui_light.rc.in', 'splash.png',
'ardour.menus', 'ardour-sae.menus',
'ardour.bindings.in',
'ardour-sae-ansi.bindings.in',
'ardour-sae-de.bindings.in',
'ardour2_ui_default.conf',
'ardour3_ui_default.conf',
'editor_xpms'
] +
gtkardour_files +

View File

@ -11,6 +11,6 @@ export LD_LIBRARY_PATH=libs/vamp-sdk:libs/surfaces/control_protocol:libs/ardour:
# DYLD_LIBRARY_PATH is for darwin.
export DYLD_FALLBACK_LIBRARY_PATH=$LD_LIBRARY_PATH
# For the internal clearlooks engine
export GTK_PATH=$PWD/libs/clearlooks:~/.ardour2
export GTK_PATH=$PWD/libs/clearlooks:~/.ardour3
EXECUTABLE=gtk2_ardour/ardour-%VERSION%

View File

@ -1,8 +1,8 @@
#!/bin/sh
export GTK_PATH=%INSTALL_PREFIX%/%LIBDIR%/ardour2:$GTK_PATH
export GTK_PATH=%INSTALL_PREFIX%/%LIBDIR%/ardour3:$GTK_PATH
export LD_LIBRARY_PATH=%INSTALL_PREFIX%/%LIBDIR%/ardour2:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=%INSTALL_PREFIX%/%LIBDIR%/ardour3:$LD_LIBRARY_PATH
# DYLD_LIBRARY_PATH is for Darwin
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
@ -15,6 +15,6 @@ fi
ulimit -c unlimited
exec %INSTALL_PREFIX%/%LIBDIR%/ardour2/ardour-%VERSION% "$@"
exec %INSTALL_PREFIX%/%LIBDIR%/ardour3/ardour-%VERSION% "$@"

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Ardour>
<UI>
<Option name="ui-rc-file" value="ardour2_ui_dark.rc"/>
<Option name="ui-rc-file" value="ardour3_ui_dark.rc"/>
</UI>
<Canvas>
<Option name="waveform" value="000000cc"/>

View File

@ -605,11 +605,11 @@ MidiStreamView::note_range_adjustment_changed() {
int highest;
if(sum == _range_sum_cache) {
cerr << "cached" << endl;
//cerr << "cached" << endl;
highest = (int) floor(sum);
}
else {
cerr << "recalc" << endl;
//cerr << "recalc" << endl;
highest = lowest + (int) floor(note_range_adjustment.get_page_size());
_range_sum_cache = sum;
}
@ -618,7 +618,7 @@ MidiStreamView::note_range_adjustment_changed() {
return;
}
cerr << "note range changed: " << lowest << " " << highest << endl;
//cerr << "note range changed: " << lowest << " " << highest << endl;
//cerr << " val=" << v_zoom_adjustment.get_value() << " page=" << v_zoom_adjustment.get_page_size() << " sum=" << v_zoom_adjustment.get_value() + v_zoom_adjustment.get_page_size() << endl;
set_note_range(lowest, highest);

View File

@ -128,7 +128,6 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session& sess, boost::shar
/* ask for notifications of any new RegionViews */
_view->attach ();
}
}
@ -148,7 +147,10 @@ MidiTimeAxisView::show_at (double y, int& nth, Gtk::VBox *parent)
ensure_xml_node ();
xml_node->add_property ("shown_editor", "yes");
return TimeAxisView::show_at (y, nth, parent);
guint32 ret = TimeAxisView::show_at (y, nth, parent);
_piano_roll_header->show();
_range_scroomer->show();
return ret;
}
void

View File

@ -63,7 +63,7 @@ print_help (const char *execname)
#endif
<< _(" [session-name] Name of session to load\n")
<< _(" -C, --curvetest filename Curve algorithm debugger\n")
<< _(" -k, --keybindings filename Name of key bindings to load (default is ~/.ardour2/ardour.bindings)\n")
<< _(" -k, --keybindings filename Name of key bindings to load (default is ~/.ardour3/ardour.bindings)\n")
;
return 1;

View File

@ -628,7 +628,7 @@ void
PianoRollHeader::send_note_on(uint8_t note) {
boost::shared_ptr<ARDOUR::MidiTrack> track = _view.trackview().midi_track();
cerr << "note on: " << (int) note << endl;
//cerr << "note on: " << (int) note << endl;
if(track) {
_event[0] = MIDI_CMD_NOTE_ON;

View File

@ -209,7 +209,7 @@ ThemeManager::on_dark_theme_button_toggled()
{
if (!dark_button.get_active()) return;
ARDOUR_UI::config()->ui_rc_file.set("ardour2_ui_dark.rc");
ARDOUR_UI::config()->ui_rc_file.set("ardour3_ui_dark.rc");
load_rc_file (ARDOUR_UI::config()->ui_rc_file.get(), true);
}
@ -218,7 +218,7 @@ ThemeManager::on_light_theme_button_toggled()
{
if (!light_button.get_active()) return;
ARDOUR_UI::config()->ui_rc_file.set("ardour2_ui_light.rc");
ARDOUR_UI::config()->ui_rc_file.set("ardour3_ui_light.rc");
load_rc_file (ARDOUR_UI::config()->ui_rc_file.get(), true);
}
@ -253,9 +253,9 @@ ThemeManager::setup_theme ()
rcfile = ARDOUR_UI::config()->ui_rc_file.get();
}
if (rcfile == "ardour2_ui_dark.rc") {
if (rcfile == "ardour3_ui_dark.rc") {
dark_button.set_active();
} else if (rcfile == "ardour2_ui_light.rc") {
} else if (rcfile == "ardour3_ui_light.rc") {
light_button.set_active();
}

View File

@ -64,7 +64,7 @@ UIConfiguration::load_state ()
sys::path default_ui_rc_file;
if ( find_file_in_search_path (ardour_search_path() + system_config_search_path(),
"ardour2_ui_default.conf", default_ui_rc_file) )
"ardour3_ui_default.conf", default_ui_rc_file) )
{
XMLTree tree;
found = true;
@ -87,7 +87,7 @@ UIConfiguration::load_state ()
sys::path user_ui_rc_file;
if (find_file_in_search_path (ardour_search_path() + user_config_directory(),
"ardour2_ui.conf", user_ui_rc_file))
"ardour3_ui.conf", user_ui_rc_file))
{
XMLTree tree;
found = true;
@ -131,7 +131,7 @@ UIConfiguration::save_state()
sys::path rcfile_path(user_config_directory());
rcfile_path /= "ardour2_ui.conf";
rcfile_path /= "ardour3_ui.conf";
const string rcfile = rcfile_path.to_string();
// this test seems bogus?

View File

@ -1,2 +1,2 @@
UI_CONFIG_VARIABLE(std::string, ui_rc_file, "ui-rc-file", "ardour2_ui_dark.rc")
UI_CONFIG_VARIABLE(std::string, ui_rc_file, "ui-rc-file", "ardour3_ui_dark.rc")

View File

@ -355,7 +355,7 @@ if env['NLS']:
i18n (ardour, ardour_files + vst_files + coreaudio_files + timefx_sources + audiounit_files, env)
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), libardour))
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libardour))
env.Alias('version', ardour.VersionBuild(['version.cc', 'ardour/version.h'], []))

View File

@ -14,6 +14,6 @@ const char* const interchange_dir_name = X_("interchange");
const char* const export_dir_name = X_("export");
const char* const templates_dir_name = X_("templates");
const char* const surfaces_dir_name = X_("surfaces");
const char* const user_config_dir_name = X_(".ardour2");
const char* const user_config_dir_name = X_(".ardour3");
}

View File

@ -56,7 +56,7 @@ using namespace std;
using namespace ARDOUR;
using namespace PBD;
/* XXX This goes uninitialized when there is no ~/.ardour2 directory.
/* XXX This goes uninitialized when there is no ~/.ardour3 directory.
* I can't figure out why, so this will do for now (just stole the
* default from configuration_vars.h). 0 is not a good value for
* allocating buffer sizes..

View File

@ -56,7 +56,7 @@ sys::path
ardour_module_directory ()
{
sys::path module_directory(MODULE_DIR);
module_directory /= "ardour2";
module_directory /= "ardour3";
return module_directory;
}
@ -80,7 +80,7 @@ system_config_search_path ()
#endif
config_path.add_subdirectory_to_paths("ardour2");
config_path.add_subdirectory_to_paths("ardour3");
return config_path;
}
@ -98,7 +98,7 @@ system_data_search_path ()
#endif
data_path.add_subdirectory_to_paths("ardour2");
data_path.add_subdirectory_to_paths("ardour3");
return data_path;
}

View File

@ -264,8 +264,6 @@ void
Scroomer::on_size_allocate (Allocation& a) {
Gtk::DrawingArea::on_size_allocate(a);
cerr << "allocate" << endl;
position[Total] = a.get_height();
set_min_page_size(min_page_size);
update();
@ -314,7 +312,7 @@ Scroomer::set_min_page_size(double ps) {
void
Scroomer::update() {
double range = adj.get_upper() - adj.get_lower();
double value = adj.get_value() - adj.get_lower();
//double value = adj.get_value() - adj.get_lower();
int height = position[Total];
double coeff = ((double) height) / range;