• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kapptemplate

  • sources
  • kde-4.14
  • kdesdk
  • kapptemplate
main.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2008 by Anne-Marie Mahfouf <annma@kde.org> *
3  * Copyright 2008 by Beat Wolf <asraniel@fryx.ch> *
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 2 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 *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
19  ***************************************************************************/
20 
21 #include <kaboutdata.h>
22 #include <kcmdlineargs.h>
23 #include <klocale.h>
24 #include <kapplication.h>
25 #include <kstandarddirs.h>
26 
27 #include "kapptemplate.h"
28 
29 static const char description[] =
30  I18N_NOOP("KAppTemplate is a KDE 4 project template generator");
31 
32 static const char version[] = "0.1";
33 
34 int main(int argc, char **argv)
35 {
36  KAboutData about("kapptemplate", 0, ki18n("KAppTemplate"), version, ki18n(description),
37  KAboutData::License_GPL, ki18n("(C) 2008 Anne-Marie Mahfouf"),KLocalizedString(), 0, "submit@bugs.kde.org");
38  about.addAuthor( ki18n("Anne-Marie Mahfouf"), KLocalizedString(), "annma AT kde DOT org");
39  about.addAuthor( ki18n("Sean Wilson"), ki18n("Icons from Oxygen Team icons"), "suseux AT googlemail DOT com");
40 
41  KCmdLineArgs::init(argc, argv, &about);
42 
43  KCmdLineOptions options;
44  KCmdLineArgs::addCmdLineOptions(options);
45  KApplication app;
46 
47  KStandardDirs* dirs = KGlobal::dirs();
48  dirs->addResourceType( "apptemplates", "data", "kdevappwizard/templates/" );
49  dirs->addResourceType( "apptemplate_descriptions", "data", "kdevappwizard/template_descriptions/" );
50  dirs->addResourceType( "apptemplate_previews", "data", "kdevappwizard/template_previews/" );
51 
52  KAppTemplate appTemplate(0);
53  appTemplate.show();
54 
55 
56  return app.exec();
57 }
main
int main(int argc, char **argv)
Definition: main.cpp:34
kapptemplate.h
init
void init()
KAppTemplate
This class serves as the main window for KAppTemplate.
Definition: kapptemplate.h:37
description
static const char description[]
Definition: main.cpp:29
QWidget::show
void show()
version
static const char version[]
Definition: main.cpp:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal