/[svn]/gigedit/trunk/src/gigedit/dimensionmanager.h
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/dimensionmanager.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2844 by persson, Sun Sep 20 08:49:40 2015 UTC revision 2894 by schoenebeck, Sat Apr 30 14:42:14 2016 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2006, 2007 Andreas Persson   * Copyright (C) 2006 - 2016 Andreas Persson
3   *   *
4   * This program is free software; you can redistribute it and/or   * This program is free software; you can redistribute it and/or
5   * modify it under the terms of the GNU General Public License as   * modify it under the terms of the GNU General Public License as
# Line 33  Line 33 
33    
34  #include <gig.h>  #include <gig.h>
35  #include <set>  #include <set>
36    #include "ManagedWindow.h"
37    
38  class DimTypeCellRenderer : public Gtk::CellRendererText {  class DimTypeCellRenderer : public Gtk::CellRendererText {
39  public:  public:
# Line 71  private: Line 72  private:
72      Glib::Property<std::set<int> > m_propertyValue;      Glib::Property<std::set<int> > m_propertyValue;
73  };  };
74    
75  class DimensionManager : public Gtk::Window {  class DimensionManager : public ManagedWindow {
76  public:  public:
77      sigc::signal<void, gig::Region*> region_to_be_changed_signal;      sigc::signal<void, gig::Region*> region_to_be_changed_signal;
78      sigc::signal<void, gig::Region*> region_changed_signal;      sigc::signal<void, gig::Region*> region_changed_signal;
# Line 79  public: Line 80  public:
80      DimensionManager();      DimensionManager();
81      void show(gig::Region* region);      void show(gig::Region* region);
82      void set_region(gig::Region* region);      void set_region(gig::Region* region);
83    
84        // implementation for abstract methods of interface class "ManagedWindow"
85        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->dimensionManagerWindowX; }
86        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->dimensionManagerWindowY; }
87        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->dimensionManagerWindowW; }
88        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->dimensionManagerWindowH; }
89        
90  protected:  protected:
91      gig::Region* region;      gig::Region* region;
92      Gtk::VBox vbox;      Gtk::VBox vbox;

Legend:
Removed from v.2844  
changed lines
  Added in v.2894

  ViewVC Help
Powered by ViewVC