NINJA-IDE

Contents

Module: ide.py API

No description.


Class: IDE(QMainWindow)

class IDE(QMainWindow):
This class is like the Sauron's Ring:
One ring to rule them all, One ring to find them,
One ring to bring them all and in the darkness bind them.

This Class knows all the containers, and its know by all the containers,
but the containers don't need to know between each other, in this way we
can keep a better api without the need to tie the behaviour between
the widgets, and let them just consume the 'actions' they need.

Function: __get_profile() [at ln:469]

def __get_profile():

No description.


Function: __init__(start_server=False) [at ln:98]

def __init__(start_server=False):

No description.


Function: __set_profile(profileName) [at ln:472]

def __set_profile(profileName):

No description.


Function: _change_tab_index() [at ln:362]

def _change_tab_index():
Change the tabs of the current TabWidget using alt+numbers.

Function: _close_tray_icon() [at ln:357]

def _close_tray_icon():
Close the System Tray Icon.

Function: _connect_signals() [at ln:264]

def _connect_signals():
Connect the signals between the different services.

Function: _last_tab_closed() [at ln:424]

def _last_tab_closed():
Called when the last tasb is closed

Function: _load_profile_data(key) [at ln:601]

def _load_profile_data(key):
Activate the selected profile, closing the current files/projects

Function: _process_connection() [at ln:389]

def _process_connection():
Read the ipc input from another instance of ninja.

Function: activate_profile() [at ln:590]

def activate_profile():
Show the Profile Manager dialog.

Function: change_toolbar_visibility() [at ln:409]

def change_toolbar_visibility():
Switch the toolbar visibility

Function: change_window_title(title) [at ln:482]

def change_window_title(title):
Change the title of the Application.

Function: closeEvent(event) [at ln:621]

def closeEvent(event):
Saves some global settings before closing.

Function: create_profile() [at ln:561]

def create_profile():
Create a profile binding files and projects to a key.

Function: deactivate_profile() [at ln:597]

def deactivate_profile():
Close the Profile Session.

Function: fullscreen_mode() [at ln:402]

def fullscreen_mode():
Change to fullscreen mode.

Function: get_current_project() [at ln:335]

def get_current_project():

No description.


Function: get_editable(filename, project=None) [at ln:312]

def get_editable(filename, project=None):

No description.


Function: get_menu_categories() [at ln:224]

def get_menu_categories():
Get the registered Categories for the Application menus.

Function: get_menuitems() [at ln:220]

def get_menuitems():
Return a dictionary with the registered menu items.

Function: get_opened_projects() [at ln:354]

def get_opened_projects():

No description.


Function: get_project(path) [at ln:328]

def get_project(path):

No description.


Function: get_project_for_file(filename) [at ln:319]

def get_project_for_file(filename):

No description.


Function: get_service(cls, service_name) [at ln:215]

def get_service(cls, service_name):
Return the instance of a registered service.

Decorators:

  • classmethod

Function: install_service(service_name) [at ln:235]

def install_service(service_name):
Activate the registered service.

Function: load_external_plugins(paths) [at ln:416]

def load_external_plugins(paths):
Load external plugins, the ones added to ninja throw the cmd.

Function: load_session_files_projects(filesTab1, filesTab2, projects, current_file, recent_files=None) [at ln:435]

def load_session_files_projects(filesTab1, filesTab2, projects, current_file, recent_files=None):
Load the files and projects from previous session.

Function: load_window_geometry() [at ln:610]

def load_window_geometry():
Load from QSettings the window size of de Ninja IDE

Function: notify_plugin_errors() [at ln:649]

def notify_plugin_errors():

No description.


Function: place_me_on(name, obj, region=str, top=False) [at ln:243]

def place_me_on(name, obj, region=str, top=False):
Place a widget in some of the areas in the IDE.
@name: id to access to that widget later if needed.
@obj: the instance of the widget to be placed.
@region: the area where to put the widget [central, lateral]
@top: place the widget as the first item in the split.

Function: register_menu_category(cls, category_name, weight) [at ln:295]

def register_menu_category(cls, category_name, weight):
Register a Menu Category to be created with the proper weight.
@category_name: string
@weight: int

Decorators:

  • classmethod

Function: register_menuitem(cls, menu_action, section, weight) [at ln:284]

def register_menuitem(cls, menu_action, section, weight):
Register a QAction or QMenu in the IDE to be loaded later in the
menubar using the section(string) to define where is going to be
contained, and the weight define the order where is going to be
placed.
@menu_action: QAction or QMenu
@section: String (name)
@weight: int

Decorators:

  • classmethod

Function: register_service(cls, service_name, obj) [at ln:228]

def register_service(cls, service_name, obj):
Register a service providing the service name and the instance.

Decorators:

  • classmethod

Function: register_shortcut(cls, shortcut_name, shortcut, action=None) [at ln:279]

def register_shortcut(cls, shortcut_name, shortcut, action=None):
Register a shortcut and action.

Decorators:

  • classmethod

Function: register_signals(cls, service_name, connections) [at ln:251]

def register_signals(cls, service_name, connections):
Register all the signals that a particular service wants to be
attached of.
@service_name: id of the service
@connections: list of dictionaries for the connection with:
- 'target': 'the_other_service_name',
- 'signal_name': 'name of the signal in the other service',
- 'slot': function object in this service

Decorators:

  • classmethod

Function: save_profile(profileName) [at ln:577]

def save_profile(profileName):
Save the updates from a profile.

Function: save_settings() [at ln:507]

def save_settings():
Save the settings before the application is closed with QSettings.

Info saved: Tabs and projects opened, windows state(size and position).

Function: select_current(widget) [at ln:342]

def select_current(widget):
Show the widget with a 4px lightblue border line.

Function: show_about_ninja() [at ln:687]

def show_about_ninja():
Show About NINJA-IDE Dialog.

Function: show_about_qt() [at ln:683]

def show_about_qt():
Show About Qt Dialog.

Function: show_languages() [at ln:673]

def show_languages():
Open the Language Manager to install/uninstall languages.

Function: show_manager() [at ln:664]

def show_manager():
Open the Plugins Manager to install/uninstall plugins.

Function: show_preferences() [at ln:430]

def show_preferences():
Open the Preferences Dialog.

Function: show_python_detection() [at ln:692]

def show_python_detection():
Show Python detection dialog for windows.

Function: show_status_message(message, duration=int) [at ln:659]

def show_status_message(message, duration=int):
Show status message.

Function: show_themes() [at ln:678]

def show_themes():
Open the Themes Manager to install/uninstall themes.

Function: switch_focus() [at ln:370]

def switch_focus():
Switch the current keyboard focus to the next widget.

Function: unselect_current(widget) [at ln:348]

def unselect_current(widget):
Remove the 4px lightblue border line from the widget.

Function: update_shortcut(cls, shortcut_name) [at ln:302]

def update_shortcut(cls, shortcut_name):
Update all the shortcuts of the application.

Decorators:

  • classmethod

Function: wheelEvent(event) [at ln:495]

def wheelEvent(event):
Change the opacity of the application.
Contents © 2013 NINJA-IDE - Powered by Nikola and Documentor