source: synfigstudio/trunk/fuentes/src/gui/onemoment.cpp @ 481

Last change on this file since 481 was 481, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 2.8 KB
Line 
1/* === S Y N F I G ========================================================= */
2/*!     \file onemoment.cpp
3**      \brief writeme
4**
5**      $Id$
6**
7**      \legal
8**      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9**      Copyright (c) 2007 Chris Moore
10**
11**      This package is free software; you can redistribute it and/or
12**      modify it under the terms of the GNU General Public License as
13**      published by the Free Software Foundation; either version 2 of
14**      the License, or (at your option) any later version.
15**
16**      This package is distributed in the hope that it will be useful,
17**      but WITHOUT ANY WARRANTY; without even the implied warranty of
18**      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19**      General Public License for more details.
20**      \endlegal
21**
22** === N O T E S ===========================================================
23**
24** ========================================================================= */
25
26/* === H E A D E R S ======================================================= */
27
28#ifdef USING_PCH
29#       include "pch.h"
30#else
31#ifdef HAVE_CONFIG_H
32#       include <config.h>
33#endif
34
35#include <iostream>
36#include <string>
37
38#include <ETL/stringf>
39
40#include <gtkmm/image.h>
41#include <gdkmm/pixbufloader.h>
42#include <gtkmm/button.h>
43#include <gtkmm/label.h>
44#include <gtkmm/fixed.h>
45
46#include <synfig/general.h>
47
48#include "onemoment.h"
49#include "app.h"
50
51#include "general.h"
52
53#endif
54
55using namespace std;
56using namespace etl;
57using namespace studio;
58
59/* === M A C R O S ========================================================= */
60
61#ifndef VERSION
62#define VERSION "unknown"
63#define PACKAGE "synfigstudio"
64#endif
65
66#ifdef WIN32
67#       ifdef IMAGE_DIR
68#               undef IMAGE_DIR
69#               define IMAGE_DIR "share\\pixmaps"
70#       endif
71#endif
72
73#ifndef IMAGE_DIR
74#       define IMAGE_DIR "/usr/local/share/pixmaps"
75#endif
76
77#ifndef IMAGE_EXT
78#       define IMAGE_EXT        "png"
79#endif
80
81/* === G L O B A L S ======================================================= */
82
83/* === P R O C E D U R E S ================================================= */
84
85/* === M E T H O D S ======================================================= */
86
87OneMoment::OneMoment():
88        Gtk::Window(Gtk::WINDOW_TOPLEVEL)
89{
90        // Create the Label
91        Gtk::Label *label = manage(new class Gtk::Label(_("One Moment, Please...")));
92
93        set_title(_("Working..."));
94        set_modal(true);
95        set_decorated(0);
96        property_window_position().set_value(Gtk::WIN_POS_CENTER);
97        set_resizable(false);
98        add(*label);
99
100        Pango::AttrList attr_list;
101        Pango::AttrInt pango_size(Pango::Attribute::create_attr_size(Pango::SCALE*16));
102        pango_size.set_start_index(0);
103        pango_size.set_end_index(64);
104        attr_list.change(pango_size);
105
106        label->set_attributes(attr_list);
107
108        label->set_size_request(400,60);
109
110        set_transient_for((Gtk::Window&)(*App::main_window));
111       
112        // show everything off
113        show_all();
114
115        present();
116        while(studio::App::events_pending())studio::App::iteration(false);
117}
118
119OneMoment::~OneMoment()
120{
121        hide();
122}
Note: See TracBrowser for help on using the repository browser.