2011-05-02 09:38:16 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2011 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2013-2017 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-05-02 09:38:16 -04:00
|
|
|
|
2015-12-07 17:08:19 -05:00
|
|
|
#ifndef __gtk_ardour_verbose_cursor_h__
|
|
|
|
#define __gtk_ardour_verbose_cursor_h__
|
|
|
|
|
2011-05-02 09:38:16 -04:00
|
|
|
#include "ardour/types.h"
|
2013-04-04 18:45:27 -04:00
|
|
|
#include "canvas/canvas.h"
|
2011-05-02 09:38:16 -04:00
|
|
|
|
|
|
|
class Editor;
|
|
|
|
|
2014-06-26 15:07:29 -04:00
|
|
|
namespace ArdourCanvas {
|
2017-07-01 12:42:24 -04:00
|
|
|
class TrackingText;
|
2014-06-26 15:07:29 -04:00
|
|
|
}
|
|
|
|
|
2011-05-02 09:38:16 -04:00
|
|
|
class VerboseCursor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
VerboseCursor (Editor *);
|
2011-06-01 13:00:29 -04:00
|
|
|
|
2011-05-02 09:38:16 -04:00
|
|
|
ArdourCanvas::Item* canvas_item () const;
|
|
|
|
bool visible () const;
|
|
|
|
|
2014-06-26 15:07:29 -04:00
|
|
|
void set (std::string const &);
|
2017-09-18 12:39:17 -04:00
|
|
|
void set_time (samplepos_t);
|
|
|
|
void set_duration (samplepos_t, samplepos_t);
|
2014-06-26 15:07:29 -04:00
|
|
|
void set_offset (ArdourCanvas::Duple const&);
|
2011-05-02 09:38:16 -04:00
|
|
|
|
2014-06-26 15:07:29 -04:00
|
|
|
void show ();
|
2011-05-02 09:38:16 -04:00
|
|
|
void hide ();
|
2015-10-05 10:17:49 -04:00
|
|
|
|
2011-05-02 09:38:16 -04:00
|
|
|
private:
|
2014-06-26 15:07:29 -04:00
|
|
|
Editor* _editor;
|
|
|
|
ArdourCanvas::TrackingText* _canvas_item;
|
2014-06-30 10:38:03 -04:00
|
|
|
|
|
|
|
void color_handler ();
|
2011-05-02 09:38:16 -04:00
|
|
|
};
|
2015-12-07 17:08:19 -05:00
|
|
|
|
|
|
|
#endif // __gtk_ardour_verbose_cursor_h__
|