KDevelop API Documentation

AppWizardPart Class Reference

Application Wizard. More...

#include <appwizardpart.h>

Inheritance diagram for AppWizardPart:

KDevPlugin QObject KXMLGUIClient List of all members.

Public Member Functions

 AppWizardPart (QObject *parent, const char *name, const QStringList &)
 ~AppWizardPart ()

Private Slots

void slotNewProject ()
void slotImportProject ()
void slotCommandFinished (const QString &command)

Private Member Functions

void openSpecifiedFiles ()
 opens all files specified in the template-information file with "ShowFilesAfterGeneration="


Private Attributes

AppWizardDialogm_dialog
QStringList m_openFilesAfterGeneration
QString m_creationCommand
QString m_projectFileName
QString m_projectLocation

Detailed Description

Application Wizard.

The config files for the application Wizard understands following options Group [General] Name: this name will be displayed in the Treeview (Application Wizard) Icon: a screenshot from your application (190x140 pixel) Category: the category, will we displayed hierarchic in a treeview (current implementation) Comment: a small comment for the template, longer comments should go into a README.devel and shown on startup ShowFilesAfterGeneration: this comma separated list of files will be opened after the project generation, for instance a readme, path is relative to the project dir, APPNAMEUC will be replaced with the project name in uppercase, APPNAMELC will be replaced with the project name in lowercase, APPNAME will be replaced with the project name. (example: ShowFilesAfterGeneration=README.devel,APPNAMELC_plugin.cpp) DefaultDestinatonDir: changes the default destination dir for the project (~) to your value, HOMEDIR is a keyword FileTemplates: a list of pairs of strings, where the first element is the name a file template to be created, and the second element is either CStyle, PStyle, ShellStyle, or None. With CStyle, the application wizard proposes a file header in C comment style. With PStyle the application wizard creates a header in Pascal comment style. With ShellStyle, the application wizard creates a header in shell comment style. an example for a php template: [General] Name=Simple PHP script Category=PHP Comment=This generates a simplistic 'Hello world' program in PHP (http://www.php.net) Icon= php.png ShowFilesAfterGeneration=README.devel DefaultDestinatonDir=HOMEDIR/public_html FileTemplates=php,ShellStyle The template project files (*.kdevelop) defines which parts are loaded for the project and how they are configured. The set of loaded parts is primarily determined by a set of key words. The following keywords are currently used: C C language C++ C++ language Java Java language Pascal Pascal language Python Python language PHP PHP language Perl Perl language Code Compiled to native, debuggable code JVM Executed and debugged in the Java VM GBA Game Boy Advance KDE KDE application/applet Qt Qt based Kicker Kicker applet kioslave KDE ioslave KOffice KOffice application KDevelop KDevelop plugin GNOME GNOME application

Author(s):
Bernd Gehrmann

Feature(s):
Provide a basic application framework (for plugins and applications for many languages) that you can use as a starting point.

Development for 3rd party developers made easy. :)

A further step to rapid application development (RAD).

Bug:
bugs in appwizard component at Bugzilla database

The C/C++ applications use libtool as a degugging shell. That doesn't work. Please remove libtool from "Project Options...-> Debugger -> Debugging Shell" to make them work.

Requirement(s):
perl >= 5.004

Definition at line 23 of file appwizardpart.h.


Constructor & Destructor Documentation

AppWizardPart::AppWizardPart QObject parent,
const char *  name,
const QStringList
 

Definition at line 33 of file appwizardpart.cpp.

References KXMLGUIClient::actionCollection(), AppWizardPart(), slotImportProject(), and slotNewProject().

Referenced by AppWizardPart().

AppWizardPart::~AppWizardPart  ) 
 

Definition at line 58 of file appwizardpart.cpp.


Member Function Documentation

void AppWizardPart::openSpecifiedFiles  )  [private]
 

opens all files specified in the template-information file with "ShowFilesAfterGeneration="

Definition at line 87 of file appwizardpart.cpp.

References KDevPartController::editDocument(), endl(), kdDebug(), m_openFilesAfterGeneration, m_projectLocation, KDevPlugin::partController(), and KURL::url().

Referenced by slotCommandFinished().

void AppWizardPart::slotCommandFinished const QString command  )  [private, slot]
 

Definition at line 99 of file appwizardpart.cpp.

References KDevPlugin::core(), m_creationCommand, m_projectFileName, KDevPlugin::makeFrontend(), KDevCore::openProject(), openSpecifiedFiles(), and slotCommandFinished().

Referenced by slotCommandFinished(), and slotNewProject().

void AppWizardPart::slotImportProject  )  [private, slot]
 

Definition at line 81 of file appwizardpart.cpp.

Referenced by AppWizardPart().

void AppWizardPart::slotNewProject  )  [private, slot]
 

Definition at line 63 of file appwizardpart.cpp.

References endl(), AppWizardDialog::getCommandLine(), AppWizardDialog::getFilesToOpenAfterGeneration(), AppWizardDialog::getProjectLocation(), AppWizardDialog::getProjectName(), kdDebug(), m_creationCommand, m_openFilesAfterGeneration, m_projectFileName, m_projectLocation, KDevPlugin::makeFrontend(), slotCommandFinished(), and AppWizardDialogBase::templates_listview.

Referenced by AppWizardPart().


Member Data Documentation

QString AppWizardPart::m_creationCommand [private]
 

Definition at line 41 of file appwizardpart.h.

Referenced by slotCommandFinished(), and slotNewProject().

AppWizardDialog* AppWizardPart::m_dialog [private]
 

Definition at line 39 of file appwizardpart.h.

QStringList AppWizardPart::m_openFilesAfterGeneration [private]
 

Definition at line 40 of file appwizardpart.h.

Referenced by openSpecifiedFiles(), and slotNewProject().

QString AppWizardPart::m_projectFileName [private]
 

Definition at line 42 of file appwizardpart.h.

Referenced by slotCommandFinished(), and slotNewProject().

QString AppWizardPart::m_projectLocation [private]
 

Definition at line 43 of file appwizardpart.h.

Referenced by openSpecifiedFiles(), and slotNewProject().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:19 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003