/[svn]/gigedit/trunk/src/main.cpp
ViewVC logotype

Annotation of /gigedit/trunk/src/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1100 - (hide annotations) (download)
Sat Mar 17 09:20:19 2007 UTC (12 years, 6 months ago) by persson
File size: 1235 byte(s)
* code refactoring: dimregion editor and parameter editors extracted
  to separate files.
* loading progress dialog now also shown when filename is given as
  argument

1 persson 1052 /*
2     * Copyright (C) 2006, 2007 Andreas Persson
3     *
4     * This program is free software; you can redistribute it and/or
5     * modify it under the terms of the GNU General Public License as
6     * published by the Free Software Foundation; either version 2, or (at
7     * your option) any later version.
8     *
9     * This program is distributed in the hope that it will be useful, but
10     * WITHOUT ANY WARRANTY; without even the implied warranty of
11     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12     * General Public License for more details.
13     *
14     * You should have received a copy of the GNU General Public License
15     * along with program; see the file COPYING. If not, write to the Free
16     * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17     * 02110-1301 USA.
18     */
19    
20     #include <gtkmm/main.h>
21     #include "mainwindow.h"
22    
23     #include <libintl.h>
24     #include <config.h>
25    
26     int main(int argc, char* argv[])
27     {
28     setlocale(LC_ALL, "");
29     bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
30     bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
31     textdomain(GETTEXT_PACKAGE);
32    
33     Glib::thread_init();
34     Gtk::Main kit(argc, argv);
35    
36     MainWindow window;
37    
38 persson 1100 if (argc >= 2) window.load_file(argv[1]);
39 persson 1052
40     Gtk::Main::run(window);
41    
42     return 0;
43     }

  ViewVC Help
Powered by ViewVC