~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/cpp/app_templates/gtk2mmapp/main_window_glade.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%{CC_TEMPLATE}
 
2
 
 
3
// DO NOT EDIT THIS FILE ! It was created using glade-- 
 
4
// for gtk 2.8.3 and gtkmm 2.8.0
 
5
//
 
6
// Please modify the corresponding derived classes in ./src/main_window.cc
 
7
 
 
8
 
 
9
#if defined __GNUC__ && __GNUC__ < 3
 
10
#error This program will crash if compiled with g++ 2.x
 
11
// see the dynamic_cast bug in the gtkmm FAQ
 
12
#endif //
 
13
#include "config.h"
 
14
#include <gtkmmconfig.h>
 
15
#if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2
 
16
#include <sigc++/compatibility.h>
 
17
#define GMM_GTKMM_22_24(a,b) b
 
18
#else //gtkmm 2.2
 
19
#define GMM_GTKMM_22_24(a,b) a
 
20
#endif //
 
21
#include "main_window_glade.hh"
 
22
#include <gdk/gdkkeysyms.h>
 
23
#include <gtkmm/accelgroup.h>
 
24
 
 
25
main_window_glade::main_window_glade(
 
26
) : Gtk::Window(Gtk::WINDOW_TOPLEVEL)
 
27
{  main_window = this;
 
28
   gmm_data = new GlademmData(get_accel_group());
 
29
   main_window->set_title("%{APPNAME} Project");
 
30
   main_window->set_modal(false);
 
31
   main_window->property_window_position().set_value(Gtk::WIN_POS_CENTER);
 
32
   main_window->set_resizable(true);
 
33
   main_window->property_destroy_with_parent().set_value(false);
 
34
   main_window->show();
 
35
   main_window->signal_delete_event().connect(SigC::slot(*this, &main_window_glade::quit), false);
 
36
}
 
37
 
 
38
main_window_glade::~main_window_glade()
 
39
{  delete gmm_data;
 
40
}