X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Frenddesc.h;h=48d07934119a5b861f3e072c1ae23f3bb0818cef;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=e8e1416c619fd505c593923c6928028fed855254;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/renddesc.h b/synfig-studio/trunk/src/gtkmm/renddesc.h index e8e1416..48d0793 100644 --- a/synfig-studio/trunk/src/gtkmm/renddesc.h +++ b/synfig-studio/trunk/src/gtkmm/renddesc.h @@ -1,18 +1,22 @@ -/*! ======================================================================== -** Synfig -** Template Header File -** $Id: renddesc.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ +/* === S Y N F I G ========================================================= */ +/*! \file gtkmm/renddesc.h +** \brief Header File ** -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** $Id$ ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** \legal +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** 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 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 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 ** ** === N O T E S =========================================================== ** @@ -31,6 +35,7 @@ #include #include #include +#include #include "widget_vector.h" #include "widget_time.h" @@ -42,7 +47,7 @@ namespace studio { -class Widget_RendDesc : public Gtk::Table +class Widget_RendDesc : public Gtk::Notebook { synfig::RendDesc rend_desc_; sigc::signal signal_changed_; @@ -59,19 +64,19 @@ class Widget_RendDesc : public Gtk::Table //Gtk::Adjustment adjustment_start_frame; //Gtk::Adjustment adjustment_end_frame; Gtk::Adjustment adjustment_span; - - Gtk::SpinButton *entry_width; - Gtk::SpinButton *entry_height; - Gtk::SpinButton *entry_xres; - Gtk::SpinButton *entry_yres; - Gtk::SpinButton *entry_phy_width; - Gtk::SpinButton *entry_phy_height; - Gtk::SpinButton *entry_fps; -// Gtk::SpinButton *entry_start_time; -// Gtk::SpinButton *entry_end_time; -// Gtk::SpinButton *entry_start_frame; -// Gtk::SpinButton *entry_end_frame; - Gtk::SpinButton *entry_span; + + Gtk::SpinButton *entry_width; + Gtk::SpinButton *entry_height; + Gtk::SpinButton *entry_xres; + Gtk::SpinButton *entry_yres; + Gtk::SpinButton *entry_phy_width; + Gtk::SpinButton *entry_phy_height; + Gtk::SpinButton *entry_fps; +// Gtk::SpinButton *entry_start_time; +// Gtk::SpinButton *entry_end_time; +// Gtk::SpinButton *entry_start_frame; +// Gtk::SpinButton *entry_end_frame; + Gtk::SpinButton *entry_span; Gtk::CheckButton *toggle_px_aspect; Gtk::CheckButton *toggle_px_width; @@ -82,7 +87,7 @@ class Widget_RendDesc : public Gtk::Table Gtk::CheckButton *toggle_im_height; Gtk::CheckButton *toggle_im_span; - Gtk::Table *time_table; + /* Gtk::Table *time_table; */ Gtk::Frame *time_frame; Widget_Vector *entry_tl; @@ -101,14 +106,14 @@ class Widget_RendDesc : public Gtk::Table UpdateLock(int &locked):locked(locked){locked++;} ~UpdateLock(){locked--;} }; - + public: sigc::signal &signal_changed() { return signal_changed_; } Widget_RendDesc(); ~Widget_RendDesc(); - + //! Sets the RendDesc void set_rend_desc(const synfig::RendDesc &rend_desc); @@ -119,12 +124,12 @@ public: const synfig::RendDesc &get_rend_desc(); void disable_time_section(); - + void enable_time_section(); - + void refresh(); private: - + void on_width_changed(); void on_height_changed(); void on_xres_changed(); @@ -141,8 +146,14 @@ private: void on_lock_changed(); void on_focus_changed(); void on_span_changed(); + + void create_widgets(); + void connect_signals(); + Gtk::Widget *create_image_tab(); + Gtk::Widget *create_time_tab(); + Gtk::Widget *create_other_tab(); }; - + }; // END of namespace studio /* === E N D =============================================================== */