mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Reformat and remove unused imports
This commit is contained in:
parent
9c9a7bbf97
commit
77356c0ebb
5 changed files with 84 additions and 106 deletions
|
|
@ -23,7 +23,6 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include <sigc++/bind.h>
|
#include <sigc++/bind.h>
|
||||||
|
|
@ -49,12 +48,10 @@
|
||||||
|
|
||||||
#include "LuaBridge/LuaBridge.h"
|
#include "LuaBridge/LuaBridge.h"
|
||||||
|
|
||||||
#include "ardour_message.h"
|
|
||||||
#include "add_route_dialog.h"
|
#include "add_route_dialog.h"
|
||||||
#include "ardour_ui.h"
|
#include "ardour_ui.h"
|
||||||
#include "route_group_dialog.h"
|
#include "route_group_dialog.h"
|
||||||
#include "ui_config.h"
|
#include "ui_config.h"
|
||||||
#include "utils.h"
|
|
||||||
|
|
||||||
#include "pbd/i18n.h"
|
#include "pbd/i18n.h"
|
||||||
|
|
||||||
|
|
@ -66,7 +63,7 @@ using namespace ARDOUR;
|
||||||
using namespace ARDOUR_UI_UTILS;
|
using namespace ARDOUR_UI_UTILS;
|
||||||
|
|
||||||
std::vector<std::string> AddRouteDialog::channel_combo_strings;
|
std::vector<std::string> AddRouteDialog::channel_combo_strings;
|
||||||
std::vector<std::pair<std::string,std::string> > AddRouteDialog::builtin_types;
|
std::vector<std::pair<std::string, std::string>> AddRouteDialog::builtin_types;
|
||||||
|
|
||||||
AddRouteDialog::AddRouteDialog ()
|
AddRouteDialog::AddRouteDialog ()
|
||||||
: ArdourDialog (_("Add Track/Bus/VCA"))
|
: ArdourDialog (_("Add Track/Bus/VCA"))
|
||||||
|
|
@ -100,8 +97,7 @@ AddRouteDialog::AddRouteDialog ()
|
||||||
refill_track_modes ();
|
refill_track_modes ();
|
||||||
|
|
||||||
if (builtin_types.empty()) {
|
if (builtin_types.empty()) {
|
||||||
builtin_types.push_back (
|
builtin_types.emplace_back(_("Audio Tracks"), std::string () +
|
||||||
std::pair<string,string> (_("Audio Tracks"), std::string () +
|
|
||||||
_("Use these settings to create one or more audio tracks.") + "\n\n" +
|
_("Use these settings to create one or more audio tracks.") + "\n\n" +
|
||||||
_("You may select:") + "\n" +
|
_("You may select:") + "\n" +
|
||||||
"* " + _("The number of tracks to add") + "\n" +
|
"* " + _("The number of tracks to add") + "\n" +
|
||||||
|
|
@ -112,10 +108,9 @@ AddRouteDialog::AddRouteDialog ()
|
||||||
"* " + _("The pin connections mode (see tooltip for details)") + "\n" +
|
"* " + _("The pin connections mode (see tooltip for details)") + "\n" +
|
||||||
#endif
|
#endif
|
||||||
"\n" + _("The track(s) will be added at the location specified by \"Position\"")
|
"\n" + _("The track(s) will be added at the location specified by \"Position\"")
|
||||||
));
|
);
|
||||||
|
|
||||||
builtin_types.push_back (
|
builtin_types.emplace_back(_("MIDI Tracks"), std::string () +
|
||||||
std::pair<string,string> (_("MIDI Tracks"), std::string () +
|
|
||||||
_("Use these settings to create one or more MIDI tracks.") + "\n\n" +
|
_("Use these settings to create one or more MIDI tracks.") + "\n\n" +
|
||||||
_("You may select:") + "\n" +
|
_("You may select:") + "\n" +
|
||||||
"* " + _("The number of tracks to add") + "\n" +
|
"* " + _("The number of tracks to add") + "\n" +
|
||||||
|
|
@ -126,10 +121,9 @@ AddRouteDialog::AddRouteDialog ()
|
||||||
"* " + _("The pin connections mode (see tooltip for details)") + "\n" +
|
"* " + _("The pin connections mode (see tooltip for details)") + "\n" +
|
||||||
#endif
|
#endif
|
||||||
"\n" + _("The track(s) will be added at the location specified by \"Position\"")
|
"\n" + _("The track(s) will be added at the location specified by \"Position\"")
|
||||||
));
|
);
|
||||||
|
|
||||||
builtin_types.push_back (
|
builtin_types.emplace_back(_("Audio Busses"), std::string () +
|
||||||
std::pair<string,string> (_("Audio Busses"), std::string () +
|
|
||||||
_("Use these settings to create one or more audio busses.") + "\n\n" +
|
_("Use these settings to create one or more audio busses.") + "\n\n" +
|
||||||
_("You may select:") + "\n" +
|
_("You may select:") + "\n" +
|
||||||
"* " + _("The number of busses to add") + "\n" +
|
"* " + _("The number of busses to add") + "\n" +
|
||||||
|
|
@ -139,10 +133,9 @@ AddRouteDialog::AddRouteDialog ()
|
||||||
"* " + _("The pin connections mode (see tooltip for details)") + "\n" +
|
"* " + _("The pin connections mode (see tooltip for details)") + "\n" +
|
||||||
#endif
|
#endif
|
||||||
"\n" + _("The buss(es) will be added at the location specified by \"Position\"")
|
"\n" + _("The buss(es) will be added at the location specified by \"Position\"")
|
||||||
));
|
);
|
||||||
|
|
||||||
builtin_types.push_back (
|
builtin_types.emplace_back(_("MIDI Busses"), std::string () +
|
||||||
std::pair<string,string> (_("MIDI Busses"), std::string () +
|
|
||||||
_("Use these settings to create one or more MIDI busses.") + "\n\n" +
|
_("Use these settings to create one or more MIDI busses.") + "\n\n" +
|
||||||
_("MIDI busses can combine the output of multiple tracks. They are sometimes used\nto host a single \"heavy\" instrument plugin which is fed from multiple MIDI tracks.") + "\n\n" +
|
_("MIDI busses can combine the output of multiple tracks. They are sometimes used\nto host a single \"heavy\" instrument plugin which is fed from multiple MIDI tracks.") + "\n\n" +
|
||||||
_("You may select:") + "\n" +
|
_("You may select:") + "\n" +
|
||||||
|
|
@ -154,24 +147,22 @@ AddRouteDialog::AddRouteDialog ()
|
||||||
"* " + _("The pin connections mode (see tooltip for details)") + "\n" +
|
"* " + _("The pin connections mode (see tooltip for details)") + "\n" +
|
||||||
#endif
|
#endif
|
||||||
"\n" + _("The buss(es) will be added at the location specified by \"Position\"")
|
"\n" + _("The buss(es) will be added at the location specified by \"Position\"")
|
||||||
));
|
);
|
||||||
|
|
||||||
builtin_types.push_back (
|
builtin_types.emplace_back(_("VCA Masters"), std::string () +
|
||||||
std::pair<string,string> (_("VCA Masters"), std::string () +
|
|
||||||
_("Use these settings to create one or more VCA masters.") + "\n\n" +
|
_("Use these settings to create one or more VCA masters.") + "\n\n" +
|
||||||
_("You may select:") + "\n" +
|
_("You may select:") + "\n" +
|
||||||
"* " + _("The number of VCAs to add") + "\n" +
|
"* " + _("The number of VCAs to add") + "\n" +
|
||||||
"* " + _("A name for the VCA(s). \"%n\" will be replaced by an index number for each VCA")
|
"* " + _("A name for the VCA(s). \"%n\" will be replaced by an index number for each VCA")
|
||||||
));
|
);
|
||||||
|
|
||||||
builtin_types.push_back (
|
builtin_types.emplace_back(_("Foldback Busses"), std::string () +
|
||||||
std::pair<string,string> (_("Foldback Busses"), std::string () +
|
|
||||||
_("Use these settings to create one or more foldback busses.") + "\n\n" +
|
_("Use these settings to create one or more foldback busses.") + "\n\n" +
|
||||||
_("Foldback busses are used as master outputs for monitor channels and are fed by\nhidden monitor sends.") + "\n\n" +
|
_("Foldback busses are used as master outputs for monitor channels and are fed by\nhidden monitor sends.") + "\n\n" +
|
||||||
_("You may select:") + "\n" +
|
_("You may select:") + "\n" +
|
||||||
"* " + _("The number of busses to add") + "\n" +
|
"* " + _("The number of busses to add") + "\n" +
|
||||||
"* " + _("A name for the buss(es)")
|
"* " + _("A name for the buss(es)")
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
insert_at_combo.append (_("First"));
|
insert_at_combo.append (_("First"));
|
||||||
|
|
@ -361,9 +352,7 @@ AddRouteDialog::AddRouteDialog ()
|
||||||
refill_channel_setups ();
|
refill_channel_setups ();
|
||||||
}
|
}
|
||||||
|
|
||||||
AddRouteDialog::~AddRouteDialog ()
|
AddRouteDialog::~AddRouteDialog () = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
AddRouteDialog::on_response (int r)
|
AddRouteDialog::on_response (int r)
|
||||||
|
|
|
||||||
|
|
@ -74,63 +74,64 @@ public:
|
||||||
VCAMaster,
|
VCAMaster,
|
||||||
FoldbackBus,
|
FoldbackBus,
|
||||||
};
|
};
|
||||||
TypeWanted type_wanted();
|
TypeWanted type_wanted ();
|
||||||
|
|
||||||
ARDOUR::ChanCount channels ();
|
ARDOUR::ChanCount channels ();
|
||||||
uint32_t channel_count ();
|
uint32_t channel_count ();
|
||||||
int count ();
|
int count ();
|
||||||
|
|
||||||
std::string name_template () const;
|
std::string name_template () const;
|
||||||
bool name_template_is_default () const;
|
bool name_template_is_default () const;
|
||||||
ARDOUR::PluginInfoPtr requested_instrument ();
|
ARDOUR::PluginInfoPtr requested_instrument ();
|
||||||
|
|
||||||
ARDOUR::TrackMode mode();
|
ARDOUR::TrackMode mode ();
|
||||||
ARDOUR::RouteGroup* route_group ();
|
ARDOUR::RouteGroup* route_group ();
|
||||||
|
|
||||||
RouteDialogs::InsertAt insert_at();
|
RouteDialogs::InsertAt insert_at ();
|
||||||
bool use_strict_io();
|
bool use_strict_io ();
|
||||||
|
|
||||||
bool show_on_cue_page();
|
bool show_on_cue_page ();
|
||||||
|
|
||||||
std::string get_template_path();
|
std::string get_template_path ();
|
||||||
|
|
||||||
void reset_name_edited () { name_edited_by_user = false; }
|
void reset_name_edited () { name_edited_by_user = false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Entry name_template_entry;
|
Gtk::Entry name_template_entry;
|
||||||
Gtk::Adjustment routes_adjustment;
|
Gtk::Adjustment routes_adjustment;
|
||||||
Gtk::SpinButton routes_spinner;
|
Gtk::SpinButton routes_spinner;
|
||||||
Gtk::ComboBoxText channel_combo;
|
Gtk::ComboBoxText channel_combo;
|
||||||
Gtk::Label configuration_label;
|
Gtk::Label configuration_label;
|
||||||
Gtk::Label manual_label;
|
Gtk::Label manual_label;
|
||||||
Gtk::Label add_label;
|
Gtk::Label add_label;
|
||||||
Gtk::Label name_label;
|
Gtk::Label name_label;
|
||||||
Gtk::Label group_label;
|
Gtk::Label group_label;
|
||||||
Gtk::Label insert_label;
|
Gtk::Label insert_label;
|
||||||
Gtk::Label strict_io_label;
|
Gtk::Label strict_io_label;
|
||||||
Gtk::Label mode_label;
|
Gtk::Label mode_label;
|
||||||
Gtk::Label instrument_label;
|
Gtk::Label instrument_label;
|
||||||
Gtk::ComboBoxText mode_combo;
|
Gtk::ComboBoxText mode_combo;
|
||||||
Gtk::ComboBoxText route_group_combo;
|
Gtk::ComboBoxText route_group_combo;
|
||||||
InstrumentSelector instrument_combo;
|
InstrumentSelector instrument_combo;
|
||||||
Gtk::ComboBoxText insert_at_combo;
|
Gtk::ComboBoxText insert_at_combo;
|
||||||
Gtk::ComboBoxText strict_io_combo;
|
Gtk::ComboBoxText strict_io_combo;
|
||||||
Gtk::CheckButton show_on_cue_chkbox;
|
Gtk::CheckButton show_on_cue_chkbox;
|
||||||
|
|
||||||
void track_type_chosen ();
|
void track_type_chosen ();
|
||||||
void refill_channel_setups ();
|
void refill_channel_setups ();
|
||||||
void refill_route_groups ();
|
void refill_route_groups ();
|
||||||
void refill_track_modes ();
|
void refill_track_modes ();
|
||||||
void add_route_group (ARDOUR::RouteGroup *);
|
void add_route_group (ARDOUR::RouteGroup*);
|
||||||
void group_changed ();
|
void group_changed ();
|
||||||
void channel_combo_changed ();
|
void channel_combo_changed ();
|
||||||
bool channel_separator (const Glib::RefPtr<Gtk::TreeModel> &m, const Gtk::TreeModel::iterator &i);
|
bool channel_separator (const Glib::RefPtr<Gtk::TreeModel>& m, const Gtk::TreeModel::iterator& i);
|
||||||
bool route_separator (const Glib::RefPtr<Gtk::TreeModel> &m, const Gtk::TreeModel::iterator &i);
|
bool route_separator (const Glib::RefPtr<Gtk::TreeModel>& m, const Gtk::TreeModel::iterator& i);
|
||||||
void maybe_update_name_template_entry ();
|
void maybe_update_name_template_entry ();
|
||||||
void instrument_changed ();
|
void instrument_changed ();
|
||||||
|
|
||||||
struct TrackTemplateColumns : public Gtk::TreeModel::ColumnRecord {
|
struct TrackTemplateColumns : public Gtk::TreeModel::ColumnRecord {
|
||||||
TrackTemplateColumns () {
|
TrackTemplateColumns ()
|
||||||
|
{
|
||||||
add (name);
|
add (name);
|
||||||
add (path);
|
add (path);
|
||||||
add (description);
|
add (description);
|
||||||
|
|
@ -145,8 +146,8 @@ private:
|
||||||
|
|
||||||
TrackTemplateColumns track_template_columns;
|
TrackTemplateColumns track_template_columns;
|
||||||
|
|
||||||
Glib::RefPtr<Gtk::TreeStore> trk_template_model;
|
Glib::RefPtr<Gtk::TreeStore> trk_template_model;
|
||||||
Gtk::TreeView trk_template_chooser;
|
Gtk::TreeView trk_template_chooser;
|
||||||
|
|
||||||
void trk_template_row_selected ();
|
void trk_template_row_selected ();
|
||||||
|
|
||||||
|
|
@ -154,10 +155,9 @@ private:
|
||||||
Gtk::Frame trk_template_outer_frame;
|
Gtk::Frame trk_template_outer_frame;
|
||||||
Gtk::Frame trk_template_desc_frame;
|
Gtk::Frame trk_template_desc_frame;
|
||||||
|
|
||||||
void reset_template_option_visibility ();
|
|
||||||
void new_group_dialog_finished (int, RouteGroupDialog*);
|
void new_group_dialog_finished (int, RouteGroupDialog*);
|
||||||
void on_show ();
|
void on_show () override;
|
||||||
void on_response (int);
|
void on_response (int) override;
|
||||||
|
|
||||||
struct ChannelSetup {
|
struct ChannelSetup {
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|
@ -165,17 +165,17 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector<ChannelSetup> ChannelSetups;
|
typedef std::vector<ChannelSetup> ChannelSetups;
|
||||||
ChannelSetups channel_setups;
|
ChannelSetups channel_setups;
|
||||||
|
|
||||||
int last_route_count;
|
int last_route_count;
|
||||||
bool route_count_set_by_template;
|
bool route_count_set_by_template;
|
||||||
|
|
||||||
static std::vector<std::pair<std::string, std::string> > builtin_types;
|
static std::vector<std::pair<std::string, std::string>> builtin_types;
|
||||||
static std::vector<std::string> channel_combo_strings;
|
static std::vector<std::string> channel_combo_strings;
|
||||||
static std::vector<std::string> bus_mode_strings;
|
static std::vector<std::string> bus_mode_strings;
|
||||||
|
|
||||||
bool name_edited_by_user;
|
bool name_edited_by_user;
|
||||||
void name_template_entry_insertion (Glib::ustring const &,int*);
|
void name_template_entry_insertion (Glib::ustring const&, int*);
|
||||||
void name_template_entry_deletion (int, int);
|
void name_template_entry_deletion (int, int);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
#include "keyboard.h"
|
#include "keyboard.h"
|
||||||
#include "splash.h"
|
#include "splash.h"
|
||||||
#include "ui_config.h"
|
#include "ui_config.h"
|
||||||
#include "utils.h"
|
|
||||||
#include "window_manager.h"
|
#include "window_manager.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
@ -38,21 +37,21 @@ using namespace Gtk;
|
||||||
using namespace Gtkmm2ext;
|
using namespace Gtkmm2ext;
|
||||||
using namespace ARDOUR_UI_UTILS;
|
using namespace ARDOUR_UI_UTILS;
|
||||||
|
|
||||||
ArdourDialog::ArdourDialog (string title, bool modal, bool use_seperator)
|
ArdourDialog::ArdourDialog (const string& title, bool modal, bool use_seperator)
|
||||||
: Dialog (title, modal, use_seperator)
|
: Dialog (title, modal, use_seperator)
|
||||||
, _sensitive (true)
|
, _sensitive (true)
|
||||||
, proxy (0)
|
, proxy (nullptr)
|
||||||
, _splash_pushed (false)
|
, _splash_pushed (false)
|
||||||
{
|
{
|
||||||
init ();
|
init ();
|
||||||
set_position (Gtk::WIN_POS_MOUSE);
|
set_position (Gtk::WIN_POS_MOUSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
ArdourDialog::ArdourDialog (Gtk::Window& parent, string title, bool modal, bool use_seperator)
|
ArdourDialog::ArdourDialog (Gtk::Window& parent, const string& title, bool modal, bool use_seperator)
|
||||||
: Dialog (title, parent, modal, use_seperator)
|
: Dialog (title, parent, modal, use_seperator)
|
||||||
, _sensitive (true)
|
, _sensitive (true)
|
||||||
, proxy (0)
|
, proxy (nullptr)
|
||||||
, _splash_pushed (false)
|
, _splash_pushed (false)
|
||||||
{
|
{
|
||||||
init ();
|
init ();
|
||||||
set_position (Gtk::WIN_POS_CENTER_ON_PARENT);
|
set_position (Gtk::WIN_POS_CENTER_ON_PARENT);
|
||||||
|
|
@ -61,8 +60,8 @@ ArdourDialog::ArdourDialog (Gtk::Window& parent, string title, bool modal, bool
|
||||||
ArdourDialog::~ArdourDialog ()
|
ArdourDialog::~ArdourDialog ()
|
||||||
{
|
{
|
||||||
pop_splash ();
|
pop_splash ();
|
||||||
Keyboard::the_keyboard().focus_out_window (0, this);
|
Keyboard::the_keyboard ().focus_out_window (nullptr, this);
|
||||||
WM::Manager::instance().remove (proxy);
|
WM::Manager::instance ().remove (proxy);
|
||||||
proxy->explicit_delete ();
|
proxy->explicit_delete ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -90,7 +89,7 @@ void
|
||||||
ArdourDialog::pop_splash ()
|
ArdourDialog::pop_splash ()
|
||||||
{
|
{
|
||||||
if (_splash_pushed) {
|
if (_splash_pushed) {
|
||||||
Splash* spl = Splash::exists () ? Splash::instance() : NULL;
|
Splash* spl = Splash::exists () ? Splash::instance () : nullptr;
|
||||||
|
|
||||||
if (spl) {
|
if (spl) {
|
||||||
spl->pop_front_for (*this);
|
spl->pop_front_for (*this);
|
||||||
|
|
@ -100,17 +99,17 @@ ArdourDialog::pop_splash ()
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ArdourDialog::on_focus_in_event (GdkEventFocus *ev)
|
ArdourDialog::on_focus_in_event (GdkEventFocus* ev)
|
||||||
{
|
{
|
||||||
Keyboard::the_keyboard().focus_in_window (ev, this);
|
Keyboard::the_keyboard ().focus_in_window (ev, this);
|
||||||
return Dialog::on_focus_in_event (ev);
|
return Dialog::on_focus_in_event (ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ArdourDialog::on_focus_out_event (GdkEventFocus *ev)
|
ArdourDialog::on_focus_out_event (GdkEventFocus* ev)
|
||||||
{
|
{
|
||||||
if (!get_modal()) {
|
if (!get_modal ()) {
|
||||||
Keyboard::the_keyboard().focus_out_window (ev, this);
|
Keyboard::the_keyboard ().focus_out_window (ev, this);
|
||||||
}
|
}
|
||||||
return Dialog::on_focus_out_event (ev);
|
return Dialog::on_focus_out_event (ev);
|
||||||
}
|
}
|
||||||
|
|
@ -118,7 +117,7 @@ ArdourDialog::on_focus_out_event (GdkEventFocus *ev)
|
||||||
void
|
void
|
||||||
ArdourDialog::on_unmap ()
|
ArdourDialog::on_unmap ()
|
||||||
{
|
{
|
||||||
Keyboard::the_keyboard().leave_window (0, this);
|
Keyboard::the_keyboard ().leave_window (nullptr, this);
|
||||||
pop_splash ();
|
pop_splash ();
|
||||||
Dialog::on_unmap ();
|
Dialog::on_unmap ();
|
||||||
}
|
}
|
||||||
|
|
@ -130,8 +129,8 @@ ArdourDialog::on_show ()
|
||||||
|
|
||||||
// never allow the splash screen to obscure any dialog
|
// never allow the splash screen to obscure any dialog
|
||||||
|
|
||||||
if (Splash::exists()) {
|
if (Splash::exists ()) {
|
||||||
Splash* spl = Splash::instance();
|
Splash* spl = Splash::instance ();
|
||||||
|
|
||||||
spl->pop_back_for (*this);
|
spl->pop_back_for (*this);
|
||||||
_splash_pushed = true;
|
_splash_pushed = true;
|
||||||
|
|
@ -156,14 +155,14 @@ ArdourDialog::init ()
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
|
set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
|
||||||
#else
|
#else
|
||||||
if (UIConfiguration::instance().get_all_floating_windows_are_dialogs () || get_modal ()) {
|
if (UIConfiguration::instance ().get_all_floating_windows_are_dialogs () || get_modal ()) {
|
||||||
set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
|
set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
|
||||||
} else {
|
} else {
|
||||||
set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
|
set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Gtk::Window* parent = WM::Manager::instance().transient_parent();
|
Gtk::Window* parent = WM::Manager::instance ().transient_parent ();
|
||||||
|
|
||||||
if (parent) {
|
if (parent) {
|
||||||
set_transient_for (*parent);
|
set_transient_for (*parent);
|
||||||
|
|
@ -171,8 +170,8 @@ ArdourDialog::init ()
|
||||||
|
|
||||||
ARDOUR_UI::CloseAllDialogs.connect (sigc::mem_fun (*this, &ArdourDialog::close_self)); /* send a RESPONSE_CANCEL to self */
|
ARDOUR_UI::CloseAllDialogs.connect (sigc::mem_fun (*this, &ArdourDialog::close_self)); /* send a RESPONSE_CANCEL to self */
|
||||||
|
|
||||||
proxy = new WM::ProxyTemporary (get_title(), this);
|
proxy = new WM::ProxyTemporary (get_title (), this);
|
||||||
WM::Manager::instance().register_window (proxy);
|
WM::Manager::instance ().register_window (proxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ namespace WM {
|
||||||
class ArdourDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr
|
class ArdourDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArdourDialog (std::string title, bool modal = false, bool use_separator = false);
|
explicit ArdourDialog (const std::string& title, bool modal = false, bool use_separator = false);
|
||||||
ArdourDialog (Gtk::Window& parent, std::string title, bool modal = false, bool use_separator = false);
|
ArdourDialog (Gtk::Window& parent, const std::string& title, bool modal = false, bool use_separator = false);
|
||||||
~ArdourDialog();
|
~ArdourDialog();
|
||||||
|
|
||||||
bool on_focus_in_event (GdkEventFocus*);
|
bool on_focus_in_event (GdkEventFocus*);
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,6 @@ class SelectionPropertiesBox;
|
||||||
class SoundFileOmega;
|
class SoundFileOmega;
|
||||||
class StreamView;
|
class StreamView;
|
||||||
class GridLines;
|
class GridLines;
|
||||||
class TempoLines;
|
|
||||||
class TimeAxisView;
|
class TimeAxisView;
|
||||||
class TimeInfoBox;
|
class TimeInfoBox;
|
||||||
class TimeFXDialog;
|
class TimeFXDialog;
|
||||||
|
|
@ -452,9 +451,6 @@ public:
|
||||||
bool use_context_click = false,
|
bool use_context_click = false,
|
||||||
bool from_outside_canvas = false);
|
bool from_outside_canvas = false);
|
||||||
|
|
||||||
bool update_mouse_speed ();
|
|
||||||
bool decelerate_mouse_speed ();
|
|
||||||
|
|
||||||
void toggle_meter_updating();
|
void toggle_meter_updating();
|
||||||
|
|
||||||
void show_rhythm_ferret();
|
void show_rhythm_ferret();
|
||||||
|
|
@ -462,16 +458,10 @@ public:
|
||||||
void goto_visual_state (uint32_t);
|
void goto_visual_state (uint32_t);
|
||||||
void save_visual_state (uint32_t);
|
void save_visual_state (uint32_t);
|
||||||
|
|
||||||
void queue_draw_resize_line (int at);
|
|
||||||
void start_resize_line_ops ();
|
|
||||||
void end_resize_line_ops ();
|
|
||||||
|
|
||||||
TrackViewList const & get_track_views () const {
|
TrackViewList const & get_track_views () const {
|
||||||
return track_views;
|
return track_views;
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_ptimport(std::string path, ARDOUR::SrcQuality quality);
|
|
||||||
|
|
||||||
void do_import (std::vector<std::string> paths,
|
void do_import (std::vector<std::string> paths,
|
||||||
Editing::ImportDisposition disposition,
|
Editing::ImportDisposition disposition,
|
||||||
Editing::ImportMode mode,
|
Editing::ImportMode mode,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue