Module implementing the APIsManager.
ApisNameProject |
WorkerAborted |
WorkerFinished |
WorkerStarted |
APIsManager | Class implementing the APIsManager class, which is the central store for API information used by autocompletion and calltips. |
DbAPIs | Class implementing an API storage entity. |
DbAPIsWorker | Class implementing a worker thread to prepare the API database. |
None |
Class implementing the APIsManager class, which is the central store for API information used by autocompletion and calltips.
None |
APIsManager | Constructor |
deactivate | Public method to perform actions upon deactivation. |
getAPIs | Public method to get an apis object for autocompletion/calltips. |
reloadAPIs | Public slot to reload the api information. |
Constructor
Public method to perform actions upon deactivation.
Public method to get an apis object for autocompletion/calltips.
This method creates and loads an APIs object dynamically upon request. This saves memory for languages, that might not be needed at the moment.
Public slot to reload the api information.
Class implementing an API storage entity.
ac_context_stmt |
ac_stmt |
api_files_stmt |
create_acWord_idx |
create_api_stmt |
create_context_idx |
create_file_idx |
create_file_stmt |
create_fullContext_idx |
create_mgmt_stmt |
ct_context_stmt |
ct_fullContext_stmt |
ct_stmt |
drop_acWord_idx |
drop_api_stmt |
drop_context_idx |
drop_file_idx |
drop_file_stmt |
drop_fullContext_idx |
drop_mgmt_stmt |
format_select_stmt |
mgmt_insert_stmt |
DbAPIs | Constructor |
__createApiDB | Private method to create an API database. |
__enoughCommas | Private method to determine, if the given string contains enough commas. |
__initAsLanguage | Private method to initialize as a language API object. |
__initAsProject | Private method to initialize as a project API object. |
__isPrepared | Private method to check, if the database has been prepared. |
__openAPIs | Private method to open the API database. |
__openApiDb | Private method to open the API database. |
__processQueue | Private slot to process the queue of files to load. |
__projectClosed | Private slot to perform actions after a project has been closed. |
__projectOpened | Private slot to perform actions after a project has been opened. |
_apiDbName | Protected method to determine the name of the database file. |
autoCompletionWordSeparators | Private method to get the word separator characters. |
close | Public method to close the database. |
editorSaved | Public slot to handle the editorSaved signal. |
event | Protected method to handle events from the worker thread. |
getApiFiles | Public method to get a list of API files loaded into the database. |
getCalltips | Public method to determine the calltips. |
getCompletions | Public method to determine the possible completions. |
getLexer | Public method to return a reference to our lexer object. |
prepareAPIs | Public method to prepare the APIs if neccessary. |
Constructor
Private method to create an API database.
Private method to determine, if the given string contains enough commas.
Private method to initialize as a language API object.
Private method to initialize as a project API object.
Private method to check, if the database has been prepared.
Private method to open the API database.
Private method to open the API database.
Private slot to process the queue of files to load.
Private slot to perform actions after a project has been closed.
Private slot to perform actions after a project has been opened.
Protected method to determine the name of the database file.
Private method to get the word separator characters.
Public method to close the database.
Public slot to handle the editorSaved signal.
Protected method to handle events from the worker thread.
Public method to get a list of API files loaded into the database.
Public method to determine the calltips.
Public method to determine the possible completions.
Public method to return a reference to our lexer object.
Public method to prepare the APIs if neccessary.
Class implementing a worker thread to prepare the API database.
file_delete_id_stmt |
file_id_stmt |
file_loaded_stmt |
populate_api_stmt |
populate_del_api_stmt |
populate_file_stmt |
update_file_stmt |
DbAPIsWorker | Constructor |
__autoCompletionWordSeparators | Private method to get the word separator characters for a language. |
__deleteApiFile | Private method to delete all references to an api file. |
__loadApiFile | Private method to read a raw API file into the database. |
__loadApiFileIfNewer | Private method to load an API file, if it is newer than the open read into the database. |
__storeApis | Private method to put the API entries into the database. |
abort | Public method to ask the thread to stop. |
run | Public method to perform the threads work. |
Constructor
Private method to get the word separator characters for a language.
Private method to delete all references to an api file.
Private method to read a raw API file into the database.
Private method to load an API file, if it is newer than the open read into the database.
Private method to put the API entries into the database.
Public method to ask the thread to stop.
Public method to perform the threads work.