Kage Studio 0.7.240121
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
stage.h
Go to the documentation of this file.
1/*
2 * Kage Studio - a simple free and open source vector-based 2D animation software
3 * Copyright (C) 2011~2024 Mj Mendoza IV
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 * MA 02110-1301, USA. Or, see <https://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef GTKMM_KAGE_PROP_STAGE_H
23 #define GTKMM_KAGE_PROP_STAGE_H
24
25 #include <gtkmm/box.h>
26 #include <gtkmm/label.h>
27 #include <gtkmm/entry.h>
28 #include <gtkmm/colorbutton.h>
29 #include <gtkmm/colorselection.h>
30
31 class Kage; //forward declaration
32
33 class PropertyStage : public Gtk::HBox {
34 public:
35 PropertyStage(Kage* p_kage);
36 virtual ~PropertyStage();
37
38 protected:
40 //Member widgets:
41 Gtk::VBox m_PropStageV1;
42 Gtk::VBox m_PropStageV2;
43 Gtk::Label m_LabelStageWid;
44 Gtk::Label m_LabelStageHgt;
45 Gtk::Label m_LabelStageBG;
46 Gtk::Label m_LabelStageFPS;
47
48 Gtk::Entry m_EntryStageWid;
49 Gtk::Entry m_EntryStageHgt;
50 Gtk::ColorButton m_ColorButtonStage;
51// Gtk::ColorChooser m_ColorChooser;
52 Gtk::ColorSelection m_ColorSelectionStage;
53 Gtk::Entry m_EntryStageFPS;
54 public:
58 void setWidthText(double p_width);
59 void setHeightText(double p_height);
60 void setFPSText(unsigned int p_fps);
61 void setBackgroundColor(Gdk::Color p_color);
62 };
63#endif //GTKMM_KAGE_PROP_STAGE_H
Definition kage.h:74
Gtk::ColorSelection m_ColorSelectionStage
Definition stage.h:52
void EntryStageArea_onEnter()
Definition stage.cpp:76
Gtk::ColorButton m_ColorButtonStage
Definition stage.h:50
Gtk::Label m_LabelStageFPS
Definition stage.h:46
Gtk::Label m_LabelStageHgt
Definition stage.h:44
void setFPSText(unsigned int p_fps)
Definition stage.cpp:105
void ColorButtonStage_onClick()
Definition stage.cpp:91
void setBackgroundColor(Gdk::Color p_color)
Definition stage.cpp:110
Gtk::Label m_LabelStageBG
Definition stage.h:45
Kage * _kage
Definition stage.h:39
virtual ~PropertyStage()
Definition stage.cpp:72
Gtk::VBox m_PropStageV2
Definition stage.h:42
Gtk::Entry m_EntryStageWid
Definition stage.h:48
Gtk::Entry m_EntryStageFPS
Definition stage.h:53
void setHeightText(double p_height)
Definition stage.cpp:101
Gtk::VBox m_PropStageV1
Definition stage.h:41
Gtk::Entry m_EntryStageHgt
Definition stage.h:49
Gtk::Label m_LabelStageWid
Definition stage.h:43
PropertyStage(Kage *p_kage)
Definition stage.cpp:25
void setWidthText(double p_width)
Definition stage.cpp:97
void EntryStageFPS_onEnter()
Definition stage.cpp:85