X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fadjust_window.h;h=d1b57c338cc938c75116b90ddd524555d90bd573;hb=f7c2dc75685bf7dfce2b8152656938f66d6df11e;hp=5cbf4a4a18bdfe1a0690631ac3d4a6f3c9048b21;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/adjust_window.h b/synfig-studio/trunk/src/gtkmm/adjust_window.h index 5cbf4a4..d1b57c3 100644 --- a/synfig-studio/trunk/src/gtkmm/adjust_window.h +++ b/synfig-studio/trunk/src/gtkmm/adjust_window.h @@ -1,28 +1,29 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file adjust_window.h ** \brief Adjustment Window Header ** -** $Id: adjust_window.h,v 1.1.1.1 2005/01/07 03:34:35 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2004 Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package 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. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package 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. ** \endlegal */ /* ========================================================================= */ /* === S T A R T =========================================================== */ -#ifndef __SINFG_TEMPLATE_H -#define __SINFG_TEMPLATE_H +#ifndef __SYNFIG_TEMPLATE_H +#define __SYNFIG_TEMPLATE_H /* === H E A D E R S ======================================================= */ #include @@ -37,20 +38,20 @@ namespace studio { /* Sets up an adjustment that controls/communicates with another adjustment (could be expanded to multiple children) - + The current value and pagesize define the lower and upper bounds of the child adjustment. - + NEED TO REPLACE FUNCTIONALITY IN: refresh_rend_desc refresh_time_window on_time_changed - possibly.... - + time_zoom_in - possibly... time_zoom_out - possibly... - + play - possibly... - + THINGS TO CHECK: disp_audio's use of time_adjustment children_tree's use of time_adjustment @@ -59,18 +60,18 @@ namespace studio { class Adjust_Window : public Gtk::Adjustment { Gtk::Adjustment *adj_child; - + sigc::connection childchanged; //we only care about the non-value parts of the child - + virtual void on_changed(); //value+pagesize corresponds to child upper virtual void on_value_changed(); //value corresponds to child lower protected: //update interface virtual void update_child(); virtual void update_fromchild(); - + public: //structors - Adjust_Window(double value, double lower, double upper, + Adjust_Window(double value, double lower, double upper, double step_increment=1, double page_increment=10, double page_size=0, Gtk::Adjustment *adj = 0); @@ -85,7 +86,7 @@ public: //Sub value interface double get_sub_lower() const; double get_sub_upper() const; }; - + }; // END of namespace studio /* === E N D =============================================================== */