19 #include <gtkmm/window.h>
51 : current_transient_parent (0)
98 for (Windows::const_iterator i =
_windows.begin(); i !=
_windows.end(); ++i) {
99 if ((*i)->visible()) {
109 for (Windows::const_iterator i =
_windows.begin(); i !=
_windows.end(); ++i) {
112 if (dynamic_cast<ProxyTemporary*> (*i)) {
115 if (dynamic_cast<ProcessorWindowProxy*> (*i)) {
127 SessionHandlePtr::set_session (s);
128 for (Windows::const_iterator i =
_windows.begin(); i !=
_windows.end(); ++i) {
129 (*i)->set_session(s);
146 for (Windows::const_iterator i =
_windows.begin(); i !=
_windows.end(); ++i) {
147 Gtk::Window* win = (*i)->get();
149 win->set_transient_for (*parent);
153 for (Windows::const_iterator i =
_windows.begin(); i !=
_windows.end(); ++i) {
154 Gtk::Window* win = (*i)->get();
156 gtk_window_set_transient_for (win->gobj(), 0);
169 , _menu_name (menu_name)
182 , _menu_name (menu_name)
205 XMLNodeList::const_iterator i = children.begin ();
207 while (i != children.end()) {
209 if ((*i)->name() ==
X_(
"Window") && prop && prop->
value() ==
_name) {
216 if (i != children.end()) {
220 if ((prop = (*i)->property (
X_(
"visible"))) != 0) {
224 if ((prop = (*i)->property (
X_(
"x-off"))) != 0) {
227 if ((prop = (*i)->property (
X_(
"y-off"))) != 0) {
230 if ((prop = (*i)->property (
X_(
"x-size"))) != 0) {
233 if ((prop = (*i)->property (
X_(
"y-size"))) != 0) {
314 snprintf (buf,
sizeof (buf),
"%d",
_x_off);
316 snprintf (buf,
sizeof (buf),
"%d",
_y_off);
318 snprintf (buf,
sizeof (buf),
"%d",
_width);
320 snprintf (buf,
sizeof (buf),
"%d",
_height);
356 _window->set_position (Gtk::WIN_POS_NONE);
403 _window->set_position (Gtk::WIN_POS_NONE);
448 if (aw) {
return aw; }
450 if (ad) {
return ad; }
int atoi(const string &s)
ProxyBase(const std::string &name, const std::string &menu_name)
const std::string & menu_name() const
const std::string & value() const
bool _visible
true if the window should be visible on startup
XMLNode & get_state() const
bool delete_event_handler(GdkEventAny *ev)
Glib::RefPtr< Gtk::ActionGroup > window_actions
void set_session(ARDOUR::Session *)
Gtk::Window * current_transient_parent
static Manager & instance()
void set_action(Glib::RefPtr< Gtk::Action >)
ARDOUR::SessionHandlePtr * session_handle()
const XMLNodeList & children(const std::string &str=std::string()) const
void show_visible() const
void register_window(ProxyBase *)
void use_window(Gtk::Window &)
std::list< XMLNode * > XMLNodeList
void set_transient_for(Gtk::Window *)
XMLNode & get_state() const
bool string_is_affirmative(const std::string &str)
Gtkmm2ext::VisibilityTracker * vistracker
std::string action_name() const
void remove(const ProxyBase *)
LIBPBD_API Transmitter info
void set_state(const XMLNode &)
XMLProperty * add_property(const char *name, const std::string &value)
void add_child_nocopy(XMLNode &)
ProxyTemporary(const std::string &name, Gtk::Window *win)
bool partially_visible() const
void toggle_window(ProxyBase *)
virtual void set_session(ARDOUR::Session *)
Glib::RefPtr< Gtk::Action > _action
void add_state(XMLNode &) const
LIBGTKMM2EXT_API void add_action_group(Glib::RefPtr< Gtk::ActionGroup >)
LIBGTKMM2EXT_API Glib::RefPtr< Gtk::Action > register_action(Glib::RefPtr< Gtk::ActionGroup > group, const char *name, const char *label)
ARDOUR::Session * _session
std::string string_compose(const std::string &fmt, const T1 &o1)
static Manager * _instance