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 |
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: |
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; |
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; |