2011-11-18 16:56:01 -05:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2013-2018 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
*
|
|
|
|
* 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.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2011-11-18 16:56:01 -05:00
|
|
|
|
|
|
|
#ifndef __ardour_window_h__
|
|
|
|
#define __ardour_window_h__
|
|
|
|
|
|
|
|
#include <gtkmm/window.h>
|
|
|
|
|
2013-03-25 20:04:36 -04:00
|
|
|
#include "gtkmm2ext/visibility_tracker.h"
|
|
|
|
|
2011-11-18 16:56:01 -05:00
|
|
|
#include "ardour/session_handle.h"
|
|
|
|
|
2013-05-07 22:09:16 -04:00
|
|
|
namespace WM {
|
|
|
|
class ProxyTemporary;
|
|
|
|
}
|
|
|
|
|
2011-11-18 16:56:01 -05:00
|
|
|
/**
|
|
|
|
* This virtual parent class is so that each window uses the
|
|
|
|
* same mechanism to declare its closing. It shares a common
|
|
|
|
* method of connecting and disconnecting from a Session with
|
|
|
|
* all other objects that have a handle on a Session.
|
|
|
|
*/
|
2016-06-07 09:22:57 -04:00
|
|
|
class ArdourWindow : public Gtk::Window, public ARDOUR::SessionHandlePtr, public Gtkmm2ext::VisibilityTracker
|
2011-11-18 16:56:01 -05:00
|
|
|
{
|
2016-05-20 21:31:27 -04:00
|
|
|
public:
|
2011-11-18 16:56:01 -05:00
|
|
|
ArdourWindow (std::string title);
|
|
|
|
ArdourWindow (Gtk::Window& parent, std::string title);
|
2016-05-20 21:31:27 -04:00
|
|
|
virtual ~ArdourWindow();
|
2011-11-18 16:56:01 -05:00
|
|
|
|
2016-05-20 21:31:27 -04:00
|
|
|
protected:
|
2015-04-01 11:41:49 -04:00
|
|
|
bool on_focus_in_event (GdkEventFocus*);
|
|
|
|
bool on_focus_out_event (GdkEventFocus*);
|
2016-05-20 21:31:27 -04:00
|
|
|
bool on_delete_event (GdkEventAny *);
|
|
|
|
bool on_key_press_event (GdkEventKey*);
|
2011-11-18 16:56:01 -05:00
|
|
|
void on_unmap ();
|
|
|
|
|
2016-05-20 21:31:27 -04:00
|
|
|
private:
|
|
|
|
void init ();
|
2011-11-18 16:56:01 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __ardour_window_h__
|
|
|
|
|