QGIS API Documentation  3.0.2-Girona (307d082)
Functions | Variables
plugin_builder Namespace Reference

Functions

def plugin_file (pluginDir, file)
 
def template_file (file)
 

Variables

 content = f.read()
 
 createIt = raw_input()
 
 end
 
 f = open(file)
 
list files
 
 menuItemName = raw_input()
 
 menuName = raw_input()
 
 myDir = os.getcwd()
 
 pluginCategory = raw_input()
 
 pluginDescription = raw_input()
 
 pluginDir = raw_input()
 
 pluginLCaseName = pluginName.lower()
 
 pluginName = raw_input()
 
 pluginsDirectory = os.path.join('src', 'plugins')
 
list replacements
 

Detailed Description

***************************************************************************
    plugin_builder.py
 A script to automate creation of a new QGIS plugin using the plugin_template
    --------------------------------------
   Date                 : Sun Sep 16 12:11:04 AKDT 2007
   Copyright            : (C) Copyright 2007 Martin Dobias
   Email                :
 Original authors of Perl version: Gary Sherman and Tim Sutton
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************/

Function Documentation

◆ plugin_file()

def plugin_builder.plugin_file (   pluginDir,
  file 
)

Definition at line 30 of file plugin_builder.py.

◆ template_file()

def plugin_builder.template_file (   file)

Definition at line 26 of file plugin_builder.py.

Variable Documentation

◆ content

plugin_builder.content = f.read()

Definition at line 163 of file plugin_builder.py.

◆ createIt

plugin_builder.createIt = raw_input()

Definition at line 115 of file plugin_builder.py.

◆ end

plugin_builder.end

Definition at line 38 of file plugin_builder.py.

◆ f

plugin_builder.f = open(file)

Definition at line 162 of file plugin_builder.py.

◆ files

list plugin_builder.files
Initial value:
1 = [plugin_file(pluginDir, 'CMakeLists.txt'),
2  plugin_file(pluginDir, 'README'),
3  plugin_file(pluginDir, pluginLCaseName + '.qrc'),
4  plugin_file(pluginDir, pluginLCaseName + '.cpp'),
5  plugin_file(pluginDir, pluginLCaseName + '.h'),
6  plugin_file(pluginDir, pluginLCaseName + 'gui.cpp'),
7  plugin_file(pluginDir, pluginLCaseName + 'gui.h'),
8  plugin_file(pluginDir, pluginLCaseName + 'guibase.ui')]
def plugin_file(pluginDir, file)

Definition at line 141 of file plugin_builder.py.

◆ menuItemName

plugin_builder.menuItemName = raw_input()

Definition at line 98 of file plugin_builder.py.

◆ menuName

plugin_builder.menuName = raw_input()

Definition at line 92 of file plugin_builder.py.

◆ myDir

plugin_builder.myDir = os.getcwd()

Definition at line 37 of file plugin_builder.py.

◆ pluginCategory

plugin_builder.pluginCategory = raw_input()

Definition at line 86 of file plugin_builder.py.

◆ pluginDescription

plugin_builder.pluginDescription = raw_input()

Definition at line 79 of file plugin_builder.py.

◆ pluginDir

plugin_builder.pluginDir = raw_input()

Definition at line 56 of file plugin_builder.py.

◆ pluginLCaseName

plugin_builder.pluginLCaseName = pluginName.lower()

Definition at line 73 of file plugin_builder.py.

◆ pluginName

plugin_builder.pluginName = raw_input()

Definition at line 72 of file plugin_builder.py.

◆ pluginsDirectory

plugin_builder.pluginsDirectory = os.path.join('src', 'plugins')

Definition at line 40 of file plugin_builder.py.

◆ replacements

list plugin_builder.replacements
Initial value:
1 = [('\\[pluginlcasename\\]', pluginLCaseName),
2  ('\\[pluginname\\]', pluginName),
3  ('\\[plugindescription\\]', pluginDescription),
4  ('\\[plugincategory\\]', pluginCategory),
5  ('\\[menuname\\]', menuName),
6  ('\\[menuitemname\\]', menuItemName)]

Definition at line 152 of file plugin_builder.py.