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