projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes to help strp silence
[ardour.git]
/
gtk2_ardour
/
imageframe_time_axis_view.h
diff --git
a/gtk2_ardour/imageframe_time_axis_view.h
b/gtk2_ardour/imageframe_time_axis_view.h
index 46403167c42c61fe596aad92d3a4bcf4b9a6de60..1191068c1d1f3143bc7336daefd8e211955fa574 100644
(file)
--- a/
gtk2_ardour/imageframe_time_axis_view.h
+++ b/
gtk2_ardour/imageframe_time_axis_view.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2003 Paul Davis
+ Copyright (C) 2003 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
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
@@
-15,7
+15,6
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#ifndef __ardour_imageframe_time_axis_view_h__
*/
#ifndef __ardour_imageframe_time_axis_view_h__
@@
-24,9
+23,11
@@
#include <list>
#include <cmath>
#include <list>
#include <cmath>
+#include <gdkmm/color.h>
+
#include <jack/jack.h>
#include <jack/jack.h>
-#include <gtkmm.h>
-#include <libgnomecanvasmm
/libgnomecanvasmm
.h>
+
+#include <libgnomecanvasmm.h>
#include "canvas.h"
#include "simplerect.h"
#include "canvas.h"
#include "simplerect.h"
@@
-47,20
+48,20
@@
class ImageFrameTimeAxisView : public sigc::trackable
public:
//---------------------------------------------------------------------------------------//
// Constructor / Desctructor
public:
//---------------------------------------------------------------------------------------//
// Constructor / Desctructor
-
+
/**
* Constructs a new ImageFrameTimeAxisView.
*
* @param ifta the parent ImageFrameTimeAxis of this view helper
*/
ImageFrameTimeAxisView(ImageFrameTimeAxis& ifta) ;
/**
* Constructs a new ImageFrameTimeAxisView.
*
* @param ifta the parent ImageFrameTimeAxis of this view helper
*/
ImageFrameTimeAxisView(ImageFrameTimeAxis& ifta) ;
-
+
/**
/**
- * Destructor
+ * Destructor
* Responsible for destroying all items tat may have been added to this time axis
*/
~ImageFrameTimeAxisView () ;
* Responsible for destroying all items tat may have been added to this time axis
*/
~ImageFrameTimeAxisView () ;
-
+
//---------------------------------------------------------------------------------------//
// Parent/Child helper object accessors
//---------------------------------------------------------------------------------------//
// Parent/Child helper object accessors
@@
-70,23
+71,23
@@
class ImageFrameTimeAxisView : public sigc::trackable
* @return the TimeAxisView that this object is acting as a view helper for
*/
ImageFrameTimeAxis& trackview() { return _trackview; }
* @return the TimeAxisView that this object is acting as a view helper for
*/
ImageFrameTimeAxis& trackview() { return _trackview; }
-
+
/**
*
*/
ArdourCanvas::Group * canvas_item() { return &canvas_group; }
/**
*
*/
ArdourCanvas::Group * canvas_item() { return &canvas_group; }
-
-
+
+
//---------------------------------------------------------------------------------------//
// ui methods & data
//---------------------------------------------------------------------------------------//
// ui methods & data
-
+
/**
* Sets the height of the time axis view and the item upon it
*
* @param height the new height
*/
int set_height(gdouble) ;
/**
* Sets the height of the time axis view and the item upon it
*
* @param height the new height
*/
int set_height(gdouble) ;
-
+
/**
* Sets the position of this view helper on the canvas
*
/**
* Sets the position of this view helper on the canvas
*
@@
-94,32
+95,32
@@
class ImageFrameTimeAxisView : public sigc::trackable
* @param y the y position upon the canvas
*/
int set_position(gdouble x, gdouble y) ;
* @param y the y position upon the canvas
*/
int set_position(gdouble x, gdouble y) ;
-
+
/**
* Sets the current samples per unit.
* this method tells each item upon the time axis of the change
/**
* Sets the current samples per unit.
* this method tells each item upon the time axis of the change
- *
+ *
* @param spu the new samples per canvas unit value
*/
int set_samples_per_unit(gdouble spu) ;
* @param spu the new samples per canvas unit value
*/
int set_samples_per_unit(gdouble spu) ;
-
+
/**
* Returns the current samples per unit of this time axis view helper
*
* @return the current samples per unit of this time axis view helper
*/
gdouble get_samples_per_unit() { return _samples_per_unit; }
/**
* Returns the current samples per unit of this time axis view helper
*
* @return the current samples per unit of this time axis view helper
*/
gdouble get_samples_per_unit() { return _samples_per_unit; }
-
+
/**
* Sets the color of the items contained uopn this view helper
*
* @param color the new base color
*/
void apply_color (Gdk::Color&) ;
/**
* Sets the color of the items contained uopn this view helper
*
* @param color the new base color
*/
void apply_color (Gdk::Color&) ;
-
+
//---------------------------------------------------------------------------------------//
// Child ImageFrameTimeAxisGroup Accessors/Mutators
//---------------------------------------------------------------------------------------//
// Child ImageFrameTimeAxisGroup Accessors/Mutators
-
+
/**
* Adds an ImageFrameTimeAxisGroup to the list of items upon this time axis view helper
* the new ImageFrameTimeAxisGroup is returned
/**
* Adds an ImageFrameTimeAxisGroup to the list of items upon this time axis view helper
* the new ImageFrameTimeAxisGroup is returned
@@
-128,7
+129,7
@@
class ImageFrameTimeAxisView : public sigc::trackable
* @param src the identity of the object that initiated the change
*/
ImageFrameTimeAxisGroup* add_imageframe_group(std::string group_id, void* src) ;
* @param src the identity of the object that initiated the change
*/
ImageFrameTimeAxisGroup* add_imageframe_group(std::string group_id, void* src) ;
-
+
/**
* Returns the named ImageFrameTimeAxisGroup or 0 if the named group does not exist on this view helper
*
/**
* Returns the named ImageFrameTimeAxisGroup or 0 if the named group does not exist on this view helper
*
@@
-136,7
+137,7
@@
class ImageFrameTimeAxisView : public sigc::trackable
* @return the named ImageFrameTimeAxisGroup, or 0 if it is not held upon this view
*/
ImageFrameTimeAxisGroup* get_named_imageframe_group(std::string group_id) ;
* @return the named ImageFrameTimeAxisGroup, or 0 if it is not held upon this view
*/
ImageFrameTimeAxisGroup* get_named_imageframe_group(std::string group_id) ;
-
+
/**
* Removes and returns the named ImageFrameTimeAxisGroup from the list of ImageFrameTimeAxisGroup held by this view helper
*
/**
* Removes and returns the named ImageFrameTimeAxisGroup from the list of ImageFrameTimeAxisGroup held by this view helper
*
@@
-145,38
+146,38
@@
class ImageFrameTimeAxisView : public sigc::trackable
* @see add_imageframe_group
*/
ImageFrameTimeAxisGroup* remove_named_imageframe_group(std::string group_id, void* src) ;
* @see add_imageframe_group
*/
ImageFrameTimeAxisGroup* remove_named_imageframe_group(std::string group_id, void* src) ;
-
+
/**
* Removes the specified ImageFrameTimeAxisGroup from the list of ImageFrameTimeAxisGroups upon this TimeAxis.
*
* @param iftag the ImageFrameView to remove
*/
void remove_imageframe_group(ImageFrameTimeAxisGroup* iftag, void* src) ;
/**
* Removes the specified ImageFrameTimeAxisGroup from the list of ImageFrameTimeAxisGroups upon this TimeAxis.
*
* @param iftag the ImageFrameView to remove
*/
void remove_imageframe_group(ImageFrameTimeAxisGroup* iftag, void* src) ;
-
-
+
+
//---------------------------------------------------------------------------------------//
// Selected group methods
//---------------------------------------------------------------------------------------//
// Selected group methods
-
+
/**
* Sets the currently selected group upon this time axis
*
* @param ifv the item to set selected
*/
void set_selected_imageframe_group(ImageFrameTimeAxisGroup* iftag) ;
/**
* Sets the currently selected group upon this time axis
*
* @param ifv the item to set selected
*/
void set_selected_imageframe_group(ImageFrameTimeAxisGroup* iftag) ;
-
+
/**
* Clears the currently selected image frame group unpo this time axis
*
*/
void clear_selected_imageframe_group() ;
/**
* Clears the currently selected image frame group unpo this time axis
*
*/
void clear_selected_imageframe_group() ;
-
+
/**
* Returns the currently selected group upon this time axis
*
* @return the currently selected group upon this time axis
/**
* Returns the currently selected group upon this time axis
*
* @return the currently selected group upon this time axis
- */
+ */
ImageFrameTimeAxisGroup* get_selected_imageframe_group() const ;
ImageFrameTimeAxisGroup* get_selected_imageframe_group() const ;
-
+
/**
* Sets the duration of the selected ImageFrameView to the specified number of seconds
/**
* Sets the duration of the selected ImageFrameView to the specified number of seconds
@@
-184,10
+185,10
@@
class ImageFrameTimeAxisView : public sigc::trackable
* @param sec the duration to set the ImageFrameView to, in seconds
*/
void set_imageframe_duration_sec(double sec) ;
* @param sec the duration to set the ImageFrameView to, in seconds
*/
void set_imageframe_duration_sec(double sec) ;
-
+
//---------------------------------------------------------------------------------------//
// Selected item methods
//---------------------------------------------------------------------------------------//
// Selected item methods
-
+
/**
* Sets the currently selected image frame view item
*
/**
* Sets the currently selected image frame view item
*
@@
-195,23
+196,23
@@
class ImageFrameTimeAxisView : public sigc::trackable
* @param ifv the selected item
*/
void set_selected_imageframe_view(ImageFrameTimeAxisGroup* iftag, ImageFrameView* ifv) ;
* @param ifv the selected item
*/
void set_selected_imageframe_view(ImageFrameTimeAxisGroup* iftag, ImageFrameView* ifv) ;
-
+
/**
* Clears the currently selected image frame view item
*
* @param clear_group set true if the selected parent group of the item should be cleared also
*/
void clear_selected_imageframe_item(bool clear_group) ;
/**
* Clears the currently selected image frame view item
*
* @param clear_group set true if the selected parent group of the item should be cleared also
*/
void clear_selected_imageframe_item(bool clear_group) ;
-
+
/**
* Returns the currently selected image frame view item upon this time axis
*
* @return the currently selected image frame view item
*/
ImageFrameView* get_selected_imageframe_view() const ;
/**
* Returns the currently selected image frame view item upon this time axis
*
* @return the currently selected image frame view item
*/
ImageFrameView* get_selected_imageframe_view() const ;
-
-
+
+
/**
* Removes the currently selected ImageFrameTimeAxisGroup
*
/**
* Removes the currently selected ImageFrameTimeAxisGroup
*
@@
-220,16
+221,16
@@
class ImageFrameTimeAxisView : public sigc::trackable
*/
void remove_selected_imageframe_item(void* src) ;
*/
void remove_selected_imageframe_item(void* src) ;
-
+
//---------------------------------------------------------------------------------//
// Emitted Signals
//---------------------------------------------------------------------------------//
// Emitted Signals
-
+
/** Emitted when and ImageFrameGroup is added to this time axis */
sigc::signal<void,ImageFrameTimeAxisGroup*,void*> ImageFrameGroupAdded ;
/** Emitted when and ImageFrameGroup is added to this time axis */
sigc::signal<void,ImageFrameTimeAxisGroup*,void*> ImageFrameGroupAdded ;
-
+
/** Emitted when an ImageFrameGroup is removed from this time axis */
sigc::signal<void,std::string,void*> ImageFrameGroupRemoved ;
/** Emitted when an ImageFrameGroup is removed from this time axis */
sigc::signal<void,std::string,void*> ImageFrameGroupRemoved ;
-
+
protected:
protected:
@@
-239,36
+240,36
@@
class ImageFrameTimeAxisView : public sigc::trackable
*
*/
void reset_samples_per_unit() ;
*
*/
void reset_samples_per_unit() ;
-
+
/**
* The list of ImageFrameViews held by this view helper */
typedef std::list<ImageFrameTimeAxisGroup *> ImageFrameGroupList ;
ImageFrameGroupList imageframe_groups ;
/**
* The list of ImageFrameViews held by this view helper */
typedef std::list<ImageFrameTimeAxisGroup *> ImageFrameGroupList ;
ImageFrameGroupList imageframe_groups ;
-
+
/** the currently selected time axis item upon this time axis */
ImageFrameTimeAxisGroup* selected_imageframe_group ;
/** the currently selected time axis item upon this time axis */
ImageFrameTimeAxisGroup* selected_imageframe_group ;
-
+
/**
* thecurrently selected image frame view
* we keep this here so that we only have one per view, not one per group
*/
ImageFrameView* selected_imageframe_view ;
/**
* thecurrently selected image frame view
* we keep this here so that we only have one per view, not one per group
*/
ImageFrameView* selected_imageframe_view ;
-
-
-
+
+
+
/* the TimeAxisView that this object is acting as the view helper for */
ImageFrameTimeAxis& _trackview ;
/* the TimeAxisView that this object is acting as the view helper for */
ImageFrameTimeAxis& _trackview ;
-
+
ArdourCanvas::Group canvas_group ;
ArdourCanvas::SimpleRect canvas_rect; /* frame around the whole thing */
ArdourCanvas::Group canvas_group ;
ArdourCanvas::SimpleRect canvas_rect; /* frame around the whole thing */
-
+
/** the current samples per unit */
double _samples_per_unit ;
/** the current samples per unit */
double _samples_per_unit ;
-
+
/* XXX why are these different? */
Gdk::Color region_color ;
uint32_t stream_base_color ;
/* XXX why are these different? */
Gdk::Color region_color ;
uint32_t stream_base_color ;
-
+
} ; /* class ImageFrameTimeAxisView */
#endif /* __ardour_imageframe_time_axis_view_h__ */
} ; /* class ImageFrameTimeAxisView */
#endif /* __ardour_imageframe_time_axis_view_h__ */