2011-05-02 09:38:16 -04:00
|
|
|
/*
|
|
|
|
Copyright (C) 2000-2011 Paul Davis
|
|
|
|
|
|
|
|
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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 {
|
|
|
|
class TrackingText;
|
|
|
|
}
|
|
|
|
|
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 &);
|
|
|
|
void set_time (framepos_t);
|
|
|
|
void set_duration (framepos_t, framepos_t);
|
|
|
|
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
|
|
|
};
|