mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
rename ArdourMenu to ArdourDropdown
This commit is contained in:
parent
4c2e846126
commit
6bcee4e9c8
4 changed files with 23 additions and 22 deletions
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#include "ardour/rc_configuration.h" // for widget prelight preference
|
#include "ardour/rc_configuration.h" // for widget prelight preference
|
||||||
|
|
||||||
#include "ardour_menu.h"
|
#include "ardour_dropdown.h"
|
||||||
#include "ardour_ui.h"
|
#include "ardour_ui.h"
|
||||||
#include "global_signals.h"
|
#include "global_signals.h"
|
||||||
|
|
||||||
|
|
@ -50,20 +50,20 @@ using std::min;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
ArdourMenu::ArdourMenu (Element e)
|
ArdourDropdown::ArdourDropdown (Element e)
|
||||||
{
|
{
|
||||||
signal_button_press_event().connect (sigc::mem_fun(*this, &ArdourMenu::on_mouse_pressed));
|
signal_button_press_event().connect (sigc::mem_fun(*this, &ArdourDropdown::on_mouse_pressed));
|
||||||
|
|
||||||
add_elements(e);
|
add_elements(e);
|
||||||
add_elements(ArdourButton::Menu);
|
add_elements(ArdourButton::Menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
ArdourMenu::~ArdourMenu ()
|
ArdourDropdown::~ArdourDropdown ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ArdourMenu::on_mouse_pressed (GdkEventButton*)
|
ArdourDropdown::on_mouse_pressed (GdkEventButton*)
|
||||||
{
|
{
|
||||||
_menu.popup (1, gtk_get_current_event_time());
|
_menu.popup (1, gtk_get_current_event_time());
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -71,7 +71,7 @@ ArdourMenu::on_mouse_pressed (GdkEventButton*)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ArdourMenu::AddMenuElem (Menu_Helpers::MenuElem e)
|
ArdourDropdown::AddMenuElem (Menu_Helpers::MenuElem e)
|
||||||
{
|
{
|
||||||
using namespace Menu_Helpers;
|
using namespace Menu_Helpers;
|
||||||
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __gtk2_ardour_ardour_menu_h__
|
#ifndef __gtk2_ardour_ardour_dropdown_h__
|
||||||
#define __gtk2_ardour_ardour_menu_h__
|
#define __gtk2_ardour_ardour_dropdown_h__
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
@ -29,12 +29,12 @@
|
||||||
|
|
||||||
#include "ardour_button.h"
|
#include "ardour_button.h"
|
||||||
|
|
||||||
class ArdourMenu : public ArdourButton
|
class ArdourDropdown : public ArdourButton
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ArdourMenu (Element e = default_elements);
|
ArdourDropdown (Element e = default_elements);
|
||||||
virtual ~ArdourMenu ();
|
virtual ~ArdourDropdown ();
|
||||||
|
|
||||||
bool on_mouse_pressed (GdkEventButton*);
|
bool on_mouse_pressed (GdkEventButton*);
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
#include "gtk-custom-ruler.h"
|
#include "gtk-custom-ruler.h"
|
||||||
#include "ardour_button.h"
|
#include "ardour_button.h"
|
||||||
#include "ardour_dialog.h"
|
#include "ardour_dialog.h"
|
||||||
#include "ardour_menu.h"
|
#include "ardour_dropdown.h"
|
||||||
#include "public_editor.h"
|
#include "public_editor.h"
|
||||||
#include "editing.h"
|
#include "editing.h"
|
||||||
#include "enums.h"
|
#include "enums.h"
|
||||||
|
|
@ -1565,7 +1565,8 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||||
|
|
||||||
ArdourButton tav_expand_button;
|
ArdourButton tav_expand_button;
|
||||||
ArdourButton tav_shrink_button;
|
ArdourButton tav_shrink_button;
|
||||||
ArdourMenu visible_tracks_selector;
|
ArdourDropdown visible_tracks_selector;
|
||||||
|
|
||||||
int32_t _visible_track_count;
|
int32_t _visible_track_count;
|
||||||
void build_track_count_menu ();
|
void build_track_count_menu ();
|
||||||
void set_visible_track_count (int32_t);
|
void set_visible_track_count (int32_t);
|
||||||
|
|
@ -1600,7 +1601,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||||
Gtk::Button automation_mode_button;
|
Gtk::Button automation_mode_button;
|
||||||
|
|
||||||
//edit mode menu stuff
|
//edit mode menu stuff
|
||||||
ArdourMenu edit_mode_selector;
|
ArdourDropdown edit_mode_selector;
|
||||||
void edit_mode_selection_done ( ARDOUR::EditMode m );
|
void edit_mode_selection_done ( ARDOUR::EditMode m );
|
||||||
void build_edit_mode_menu ();
|
void build_edit_mode_menu ();
|
||||||
Gtk::VBox edit_mode_box;
|
Gtk::VBox edit_mode_box;
|
||||||
|
|
@ -1609,10 +1610,10 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||||
void set_edit_mode (ARDOUR::EditMode);
|
void set_edit_mode (ARDOUR::EditMode);
|
||||||
void cycle_edit_mode ();
|
void cycle_edit_mode ();
|
||||||
|
|
||||||
ArdourMenu snap_type_selector;
|
ArdourDropdown snap_type_selector;
|
||||||
void build_snap_type_menu ();
|
void build_snap_type_menu ();
|
||||||
|
|
||||||
ArdourMenu snap_mode_selector;
|
ArdourDropdown snap_mode_selector;
|
||||||
void build_snap_mode_menu ();
|
void build_snap_mode_menu ();
|
||||||
Gtk::HBox snap_box;
|
Gtk::HBox snap_box;
|
||||||
|
|
||||||
|
|
@ -1628,7 +1629,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||||
Glib::RefPtr<Gtk::RadioAction> snap_mode_action (Editing::SnapMode);
|
Glib::RefPtr<Gtk::RadioAction> snap_mode_action (Editing::SnapMode);
|
||||||
|
|
||||||
//zoom focus meu stuff
|
//zoom focus meu stuff
|
||||||
ArdourMenu zoom_focus_selector;
|
ArdourDropdown zoom_focus_selector;
|
||||||
void zoom_focus_selection_done ( Editing::ZoomFocus f );
|
void zoom_focus_selection_done ( Editing::ZoomFocus f );
|
||||||
void build_zoom_focus_menu ();
|
void build_zoom_focus_menu ();
|
||||||
std::vector<std::string> zoom_focus_strings;
|
std::vector<std::string> zoom_focus_strings;
|
||||||
|
|
@ -1954,7 +1955,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||||
|
|
||||||
Editing::EditPoint _edit_point;
|
Editing::EditPoint _edit_point;
|
||||||
|
|
||||||
ArdourMenu edit_point_selector;
|
ArdourDropdown edit_point_selector;
|
||||||
void build_edit_point_menu();
|
void build_edit_point_menu();
|
||||||
|
|
||||||
void set_edit_point_preference (Editing::EditPoint ep, bool force = false);
|
void set_edit_point_preference (Editing::EditPoint ep, bool force = false);
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ gtk2_ardour_sources = [
|
||||||
'analysis_window.cc',
|
'analysis_window.cc',
|
||||||
'ardour_button.cc',
|
'ardour_button.cc',
|
||||||
'ardour_dialog.cc',
|
'ardour_dialog.cc',
|
||||||
'ardour_menu.cc',
|
'ardour_dropdown.cc',
|
||||||
'ardour_ui.cc',
|
'ardour_ui.cc',
|
||||||
'ardour_ui2.cc',
|
'ardour_ui2.cc',
|
||||||
'ardour_ui_dependents.cc',
|
'ardour_ui_dependents.cc',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue