Kage Studio 0.7.230612
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~2023 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 using namespace std;
34
35 class PropertyStage : public Gtk::HBox {
36 public:
37 PropertyStage(Kage* p_kage);
38 virtual ~PropertyStage();
39
40 protected:
42 //Member widgets:
43 Gtk::VBox m_PropStageV1;
44 Gtk::VBox m_PropStageV2;
45 Gtk::Label m_LabelStageWid;
46 Gtk::Label m_LabelStageHgt;
47 Gtk::Label m_LabelStageBG;
48 Gtk::Label m_LabelStageFPS;
49
50 Gtk::Entry m_EntryStageWid;
51 Gtk::Entry m_EntryStageHgt;
52 Gtk::ColorButton m_ColorButtonStage;
53// Gtk::ColorChooser m_ColorChooser;
54 Gtk::ColorSelection m_ColorSelectionStage;
55 Gtk::Entry m_EntryStageFPS;
56 public:
60 void setWidthText(double p_width);
61 void setHeightText(double p_height);
62 void setFPSText(unsigned int p_fps);
63 void setBackgroundColor(Gdk::Color p_color);
64 };
65#endif //GTKMM_KAGE_PROP_STAGE_H
Definition: kage.h:69
Definition: stage.h:35
Gtk::ColorSelection m_ColorSelectionStage
Definition: stage.h:54
void EntryStageArea_onEnter()
Definition: stage.cpp:76
Gtk::ColorButton m_ColorButtonStage
Definition: stage.h:52
Gtk::Label m_LabelStageFPS
Definition: stage.h:48
Gtk::Label m_LabelStageHgt
Definition: stage.h:46
void setFPSText(unsigned int p_fps)
Definition: stage.cpp:107
void ColorButtonStage_onClick()
Definition: stage.cpp:93
void setBackgroundColor(Gdk::Color p_color)
Definition: stage.cpp:112
Gtk::Label m_LabelStageBG
Definition: stage.h:47
Kage * _kage
Definition: stage.h:41
virtual ~PropertyStage()
Definition: stage.cpp:72
Gtk::VBox m_PropStageV2
Definition: stage.h:44
Gtk::Entry m_EntryStageWid
Definition: stage.h:50
Gtk::Entry m_EntryStageFPS
Definition: stage.h:55
void setHeightText(double p_height)
Definition: stage.cpp:103
Gtk::VBox m_PropStageV1
Definition: stage.h:43
Gtk::Entry m_EntryStageHgt
Definition: stage.h:51
Gtk::Label m_LabelStageWid
Definition: stage.h:45
void setWidthText(double p_width)
Definition: stage.cpp:99
void EntryStageFPS_onEnter()
Definition: stage.cpp:85