Windowed projects/mkdcppw/Help

De Wiki EELL.

(Différences entre les versions)
m (How to use mkdcppw : transfert à traduire)
m (Create a project file : !!!!!!)
 
(7 versions intermédiaires masquées)
Ligne 79 : Ligne 79 :
== How to use mkdcppw ==
== How to use mkdcppw ==
-
==== Coder les fichiers sources ====
+
==== Coding the source files ====
-
;:Exemple de codage
+
;:Example of coding
<pre>
<pre>
Ligne 114 : Ligne 114 :
*/
*/
</pre>
</pre>
-
:Les caractères 'D' et 'H' sont des repères pour le décodage avec l'option 't' (texte seul).
+
:The characters 'D' and 'H' are benchmark for the decoding with Option 't' (text only).
-
:Les caractères de commentaire /*, */, // et les caractères de repèrage ne seront pas transcrits au décodage.
+
:The comment characters /*, */, // and tracking characters are not trancribed in the décoding.
-
:Le caractère 'D' décodera la documentation de la fonction<br/>Le caractère 'H' servira à créer le fichier d'entête (header) de l'application.
+
:The character 'D' will decode the documentation of the function.<br/>The character 'H' will allow to create the header file of the application.
-
==== Générer les documents ====
+
==== Generate the documents ====
-
Cliquez sur l'application ou, si l'application est installée, lancez la commande mkdcppw dans une konsole. <br/>La konsole permet d'obtenir des détails de progression de l'application avec l'option v.
+
Click on the mkdcppw icon or, if mkdcppw is installed, run the command 'mkdcppw' in a terminal. <br/>The terminal provides details on the progress of the application with the 'v' Option.
-
;Première étape :
+
;First step :
-
*Sélectionnez le fichier source.  
+
*Select the source file.  
-
*Choisissez les options.  
+
*Select the Options.  
-
*Choisissez les codes de sélection.  
+
*Choose Codes of selection.  
-
*Choisissez l'extension du fichier cible.  
+
*Choose the target file extension.  
-
*Validez les saisies.  
+
*Validate inputs.  
<gallery>
<gallery>
-
Fichier:Screenshot mkdcppw 2.png|Sélectionner le fichier source à partir de l'icone, ou du menu, ou avec le clavier: Maj+Ctrl+S
+
Fichier:Screenshot mkdcppw 2.png|Select the source file with icon, the menu, or the keyboard: Maj+Ctrl+S
-
Image:Screenshot mkdcppw 7.png|Choix du fichier source par déplacements dans la fenêtre de sélection. Sélectionner le fichier source puis cliquer sur 'Ouvrir'
+
Image:Screenshot mkdcppw 7.png|Choose the source file by browsing folders and click on 'Open'.
-
Image:Screenshot mkdcppw 9.png|'''Option n''' : Numéroter les lignes.<br/>L''''option v''' peut être utile pour un maximum d'informations à la konsole.
+
Image:Screenshot mkdcppw 9.png|'''Option n''' : Number rows.<br/>L''''option v''' can be useful for a maximum information in the terminal.
-
Fichier:Screenshot mkdcppw 24.png|Choix de l'extension,<br/>du code de sélection<br/>et validation des saisies.<br/>''Choisir une extension de fichier juditieuse: .'''D'''ocu, .pseud'''O''', .bloc'''S''', .'''T'''ests''  
+
Fichier:Screenshot mkdcppw 24.png|Choose the target file extension,<br/>Codes selection,<br/>and validate inputs.<br/>''Choose a judicious file extension: .'''D'''ocu, .pseud'''O''', .block'''S''', .'''T'''ests''  
</gallery>
</gallery>
-
;Deuxième étape :
+
;Second step :
-
*Démarrez l'extraction. Ctrl+R au clavier.
+
*Run the extraction. Ctrl+R on keyboard.
-
:Le fichier cible se trouve dans le répertoire choisi dans la fenêtre du fichier cible.
+
:The target file is writing in selected directory in the 'Target file name' widget.
<gallery>
<gallery>
-
Fichier:Screenshot_mkdcppw_25.png|Après l'exécution, le fichier cible est automatiquement collé dans la fenêtre d'impression.
+
Fichier:Screenshot_mkdcppw_25.png|After running, the content of the target file is automatically pasted into the print window.
-
Fichier:Screenshot mkdcppw 18.png|Maj+Ctrl+P : Paramètres d'impression.
+
Fichier:Screenshot mkdcppw 18.png|Maj+Ctrl+P : Printing setup.
-
Image:Screenshot mkdcppw 20.png|Sélection d'une imprimante.
+
Image:Screenshot mkdcppw 20.png|Printer selection.
</gallery>
</gallery>
-
==== Créer un fichier de projet ====
+
==== Create a project file ====
-
Un fichier de projet est composé de tous les fichiers sources d'une application, voire de tous les fichiers texte d'une application.<br/>
+
A project file contains all the files an application's source, or all text file from an application.<br/>
-
Ce peut être par exemple:<br/>
+
This can be for example:<br/>
-
<u>Fichier de projet '''CmapGpsu.prj''' :</u>
+
<u>Project file '''CmapGpsu.prj''' :</u>
<pre>
<pre>
CmapGpsu.txt
CmapGpsu.txt
Ligne 154 : Ligne 154 :
ExitError.cpp
ExitError.cpp
</pre>
</pre>
-
Le décodage dans le style C (C, c++, php) est imposé avec mkdcppw ceci quel que soit l'extension des fichiers composant le projet.
+
C style (C, c++, php) decoding is enforced with mkdcppw, this regardless of the files extension in the project.
-
'''Dans un terminal''' (Ctrl+Alt+T) placez vous dans le répertoire du projet.
+
'''In a terminal''' (Ctrl+Alt+T) go to in your project directory.
-
:Une bonne façon de créer un fichier de projet est d'utiliser la commande ''' ls -1 *.* ''' ou (*.cc) qui a l'avantage de trier les fichiers de fonctions dans l'ordre alphabétique et d'éviter les fichiers binaires ou de commandes Shell sans extension.<br/>'''Attention :''' avec cette commande dans un terminal ou dans un fichier de commandes Shell, -1 est le chiffre 1 et non le caractère 'l'
+
:A good way to create a project file is to use the command ''' ls -1 *.* ''' or (*.cc), which  has the advantage of sorting the files in alphabetical order, and to avoid the binary files or Shell files without extension.<br/>'''Warning :''' whith this command in a terminal or in file of Shell commands, -1 is the number 1 and not the character 'l' .
-
'''Par une commandes dans un fichier''' [[:wikipedia:fr:Shell_Unix|'''Shell''']] placé dans le répertoire des fichiers de l'application pour créer le <u>fichier  de projet '''application.prj''' :</u>
+
'''By a command in a [[:wikipedia:fr:Shell_Unix|Shell]] file''', in the build directory, with all application files, to create the <u>projet file '''application.prj''' :</u>
<pre>
<pre>
#!/bin/bash
#!/bin/bash
# file: makeprj
# file: makeprj
-
echo "Création ou mise à jour du projet CmapGpsu"
+
echo "Update the projet CmapGpsu"
ls -1 *.* > CmapGpsu.prj
ls -1 *.* > CmapGpsu.prj
clear
clear
cat CmapGpsu.prj
cat CmapGpsu.prj
echo ""
echo ""
-
echo "Taper sur retour chariot <-/ pour quitter"
+
echo "Type 'Enter' <-/ to quit"
-
read clavier # juste pour se donner le temps d'examiner le contenu
+
read keyboard # waiting just to examine.
</pre>
</pre>
 +
<!--
On intégrera évidemment le fichier de projet dans le projet, mais comme celui-ci n'aura pas de commentaire codé, cela n'a pas d'importance.
On intégrera évidemment le fichier de projet dans le projet, mais comme celui-ci n'aura pas de commentaire codé, cela n'a pas d'importance.
 +
-->
-
Notez que les extensions '.prj et '.pj' sont reconnus dans mkdcppw, comme étant des extensions de fichiers de projet.
+
Note that .prj and .pj extensions are recognized by mkdcppw as being project files.
-
;Avec l'application mkdcppw
+
;With mkdcppw application
-
''Au début, afin de visualiser les actions il est conseillé de lancer l'application par l'intermédiaire d'un terminal (ou konsole) '''Ctrl+Alt+T'''''
+
''At the beginning, to view the actions, run the application via a terminal (or konsole). '''Ctrl+Alt+T'''''
-
#'''Créer le fichier de projet vide :'''<br/>Créer un fichier de projet vide au menu: '''Nouveau / Fichier source''' ou au clavier: '''Maj+Ctrl+S'''. Sélectionnez n'importe quel fichier texte et validez. Dans la fenêtre '''Code de sélection''' laisser vide ou mettre un code ASCII inopérant. Dans la fenêtre '''Nom du fichier cible''' écrivez le nom du projet. Valider les fenêtres, et exécutez. L'affichage dans la fenêtre d'impression devrait être vide, ceci dit ce n'est pas très grave car vous pouvez vider le contenu lorsque vous allez 'Ajouter' des fichiers dans le projet.
+
#'''Create empty project file :'''<br/>with the menu: '''New / Source file''' or with the keyboard: '''Maj+Ctrl+S'''. Select any text file and validate. In the widget '''Codes sélection''' leave blank or inoperative ASCII code. In the widget '''Target file name''' write the name of the project. Update the widgets, and Run. Paste in the print window should be empty, this is not very serious because you can empty the contents when you add files to the project.
-
#'''Ajouter des fichiers dans le fichier de projet:'''<br/>Charger le fichier de projet au menu '''Nouveau / Fichier de projet''' ou au clavier '''Ctrl+A''' On doit voir s'afficher "Voulez-vous ajouter des fichiers à ce projet ?". Cliquez sur valider sinon vous allez vider le projet de son contenu et le recréer. À partir de ce moment chaque fois que vous cliquez sur '''Nouveau''' / '''Fichier de projet''' dans le menu, ou sur l'icône [[Fichier:Gtk-dnd-multiple.png]] vous allez ajouter un fichier dans le projet. (Dans l'exemple: asm.c, cpp.c). ''Vous ne le verrez que sur le terminal''<br/><small>''Notez qu'à la console il eut suffi de taper ls -1 *.c > demo.prj''</small><br/><br/>
+
#'''Add files in the project file :'''<br/>Load the project file with the menu '''New / Project file''' or with the keyboard '''Ctrl+A''' On doit voir s'afficher "Want you add files to this project ?". Click on OK to validate if not you delete all files in the project to renew it. From this moment, every time you click on '''New''' / '''Project file''' in menu, or on icon [[Fichier:Gtk-dnd-multiple.png]] you will add a file in the  project. (In example: asm.c, cpp.c). ''You won't see in the terminal''<br/><small>''Note that terminal it had been enough to type ls -1 *.c > demo.prj''</small><br/><br/>
-
#'''Pour générer la documentation :'''<br/>Chargez le '''fichier de projet''' ''(demo.prj dans l'exemple)'' au menu '''Nouveau / Fichier source''' ou au clavier: '''Maj+Ctrl+S'''.<br/>Dans les fenêtres: précisez les '''Options''', le '''Code de sélection''', le '''Nom du fichier cible''' ''(Dans l'exemple demo.Header ou demo.h)''. '''Mise à jour des saies''' et '''Exécuter'''.
+
#'''To generate documents :'''<br/>Load the '''project file''' ''(demo.prj in example)'' on the menu '''New / Source file''' or on keyboard: '''Maj+Ctrl+S'''.<br/>In the widgets: specify the '''Options''', the '''Codes selection''', the '''Target file name''' ''(In example: demo.Header or demo.h)''. '''Update the seizures''' and '''Run'''.
<gallery>
<gallery>
-
Fichier:New project demo.prj-2.png|1-Créer le fichier de projet demo.prj. Le fichier source est quelconque et le fichier de projet demo.prj créé sera vide.
+
Fichier:New project demo.prj-2.png|1-Create the project file demo.prj. The source file is indifferent text file and the project file demo.prj created file will be empty.
-
Fichier:Demo.prj-ajouter.png|2-Ajouter des fichiers dans le projet dfemo.prj<br/>cliquez sur Valider sinon vous allez vider le sprojet de ses fichiers.
+
Fichier:Demo.prj-ajouter.png|2-Add files in the project file demo.prj<br/>click on  OK to Validate if not you will clear and renew the project.
-
Fichier:Générer le Header des fichiers du projet.png|3-le fichier source est le fichier de projet demo.prj<br/>Il est reconnu 'projet' par l'application. Ont été ajouté les fichiers asm.c et cpp.c. ici la documentation sera générée dans le fichier demo.Header
+
Fichier:Générer le Header des fichiers du projet.png|3-The source file is the project file demo.prj<br/>The project is recognized by the application. Have been added the files asm.c and cpp.c. Here the generate document will be in the file 'demo.Header'
-
Fichier:Document demo.Header.png|4-Document créé demo.h nommé ici demo.Header
+
Fichier:Document demo.Header.png|4-The created document demo.h is named here demo.Header.
</gallery>
</gallery>
-
;Résumé :
+
;Summary :
-
:Les fichiers source peuvent être :<br/>- des fichiers simples pour une documentation spécifique <br/>- des fichiers de projet composés de fichier sources pour une documentation plus large. Les fichiers de projet sont reconnus par leur extension .prj ou .pj
+
:The source files can be :<br/>- unique simple files to generate specific documentation <br/>- project files with multiple sources files to create a large documentation. The project files are recognized by the application by theier extension .prj ou .pj
-
:La création de fichiers de projet est assez compliquée avec l'application mkdcppw, on préfère habituellement créer le fichier de projet avec un éditeur, avec un fichier shell, dans le Makefile, ou tout simplement à la konsole.
+
:The creation of project files is complicated by the software method. We usually prefer to create the project file with a Text Editor, a Shell file, in a Makefile, or just with a konsole.
== How to solve a problem ==
== How to solve a problem ==

Version actuelle en date du 4 janvier 2013 à 16:24

Cette page n'est pas finie. Veuillez considérer le plan et le contenu comme incomplets et en préparation, temporaires et sujets à caution. Si vous souhaitez participer, il vous est recommandé de consulter sa page de discussion au préalable.

Screenshot mkdcppw 121215 :

Distribution debian

Sommaire

Others languages

Aide en français

First steps

Install the mkdcppw Ubuntu packages (Debian)

Downloads the packets

Install the packets

  • Click on the packet you just downloaded to open it in the software library, otherwise use the apt-get command.

Compile mkdcpp for other systems

Prerequisites to compile

# Utilities :
#
# To ompilation :
- gcc : gnu c compillator *****
- pkg-config : compilation 
- gtkmm 3 : libgtkmm-3.0-dev : *****
	Gtkmm is a C++ interface for the popular GUI library GTK+, API version 3.0. 
	Gtkmm provides a convenient interface for C++ programmers to create graphical user interfaces
	with GTK+'s flexible OO framework. Highlights include type safe callbacks, widgets extensible 
	using inheritance and over 180 classes that can be freely combined to quickly create complex 
	user interfaces.
	This package contains development files and examples, as well as a gtkmm-demo program.
- Gtk4 :
	Typelib file for libdbusmenu-gtk4 : gir1.2-dbusmenu-gtk-0.4
	library for passing menus over DBus-GTK+ version : libdbusmenu-gtk4
- Terminal, for the tests	
#
# To edit :
- AssoGiate, MIME editor
- Bluefish, multipurpose editor *****
- gmanedit, manual editor
- GIMP, image editor
#
# Internationalization utilities :
- gettext
- Poedit, po editor *****
- Po Gtranslator, po editor
You must have the super user right to use sudo or root.

Download the last compacted version of sources

Uncompress the downloaded file

  • "tar xvzf mkdcppw-0~120508.tar.gz ."

This decompression will create the build directory mkdcppw-0~120508.

Compile and install

  • Read the file README_FIRST. Here are the first lines of file :
# Makefile:
	Makfile is ready for packaging
	Please ferify Makefile before installation.
	$(DESTDIR) is used for packaging.
	for tests type this command "make -d install DESTDIR=tests"
	Thank you.
  • Read the file Makefile and edit this if necessary. Modify the directories macros if necessary.
  • Run the "Terminal" (Ctrl+Alt+T) and go to in the build directory.
  • type the command "make -d install DESTDIR=tests" This compilation will create all audit directories in the test directory.
  • When the compilation goes without error, run the command "./install" in the terminal to install the application.
You can optionally drag your executable to your desktop

Control of installation

  • In the konsole (Terminal) type the commande "mkcppw" and check the operation and display.

More: adapt this version in other languages

How to use mkdcppw

Coding the source files

Example of coding
/*D
        ExitError ()
 -----------------------------------------------------------------------------
 ACTION:
        En ligne de commande: Affiche l'erreur sur la konsole et met fin au
        programme CmapGpsu.

 SYNTAXE:
        // Directives de compilation et entêtes (headers) standards :
        #include "version.h"
        // Déclarations complémentaires publiques :
        #include "CmapGpsu.h"

        void ExitError( int iErr );

 PORTABILITE:
        // Pour ligne de commande ou Shell.
        Systèmes: Windows, Tous LINUX.
 
 DESCRIPTION:
        int iErr : Numéro d'erreur à transcrire en clair au terminal.

 VALEUR RETOURNÉE:
        Ne renvoie rien. (Quitte le programme CmapGpsu)

*/

/*H  // Fichier ExitError.cpp
     extern void ExitError( int iErr );
*/
The characters 'D' and 'H' are benchmark for the decoding with Option 't' (text only).
The comment characters /*, */, // and tracking characters are not trancribed in the décoding.
The character 'D' will decode the documentation of the function.
The character 'H' will allow to create the header file of the application.

Generate the documents

Click on the mkdcppw icon or, if mkdcppw is installed, run the command 'mkdcppw' in a terminal.
The terminal provides details on the progress of the application with the 'v' Option.

First step 
  • Select the source file.
  • Select the Options.
  • Choose Codes of selection.
  • Choose the target file extension.
  • Validate inputs.
Second step 
  • Run the extraction. Ctrl+R on keyboard.
The target file is writing in selected directory in the 'Target file name' widget.

Create a project file

A project file contains all the files an application's source, or all text file from an application.
This can be for example:
Project file CmapGpsu.prj :

CmapGpsu.txt
version.h
CmapGpsu.h
CmapGpsu.cpp
ExitError.cpp

C style (C, c++, php) decoding is enforced with mkdcppw, this regardless of the files extension in the project.

In a terminal (Ctrl+Alt+T) go to in your project directory.

A good way to create a project file is to use the command ls -1 *.* or (*.cc), which has the advantage of sorting the files in alphabetical order, and to avoid the binary files or Shell files without extension.
Warning : whith this command in a terminal or in file of Shell commands, -1 is the number 1 and not the character 'l' .

By a command in a Shell file, in the build directory, with all application files, to create the projet file application.prj :

#!/bin/bash
# file: makeprj
echo "Update the projet CmapGpsu"
ls -1 *.* > CmapGpsu.prj
clear
cat CmapGpsu.prj
echo ""
echo "Type 'Enter' <-/ to quit"
read keyboard # waiting just to examine.

Note that .prj and .pj extensions are recognized by mkdcppw as being project files.

With mkdcppw application

At the beginning, to view the actions, run the application via a terminal (or konsole). Ctrl+Alt+T

  1. Create empty project file :
    with the menu: New / Source file or with the keyboard: Maj+Ctrl+S. Select any text file and validate. In the widget Codes sélection leave blank or inoperative ASCII code. In the widget Target file name write the name of the project. Update the widgets, and Run. Paste in the print window should be empty, this is not very serious because you can empty the contents when you add files to the project.
  2. Add files in the project file :
    Load the project file with the menu New / Project file or with the keyboard Ctrl+A On doit voir s'afficher "Want you add files to this project ?". Click on OK to validate if not you delete all files in the project to renew it. From this moment, every time you click on New / Project file in menu, or on icon Fichier:Gtk-dnd-multiple.png you will add a file in the project. (In example: asm.c, cpp.c). You won't see in the terminal
    Note that terminal it had been enough to type ls -1 *.c > demo.prj

  3. To generate documents :
    Load the project file (demo.prj in example) on the menu New / Source file or on keyboard: Maj+Ctrl+S.
    In the widgets: specify the Options, the Codes selection, the Target file name (In example: demo.Header or demo.h). Update the seizures and Run.
Summary 
The source files can be :
- unique simple files to generate specific documentation
- project files with multiple sources files to create a large documentation. The project files are recognized by the application by theier extension .prj ou .pj
The creation of project files is complicated by the software method. We usually prefer to create the project file with a Text Editor, a Shell file, in a Makefile, or just with a konsole.

How to solve a problem

  1. Run mkdcppw in a terminal (or konsole) and try to solve the problem.
  2. If you are not ressolved the problem with the terminal try the forum. It is possible that you are victim of a bug.
  3. In the case of despair write us by email
Outils personnels