- Home
- Installation
- Using Livekeys
- Plugins
- Developer
group lveditor
Contains editor functionality and extension hooks.
Summary
Members | Descriptions |
---|---|
class lv::CodeCompletionContext |
Base class for a code completion context, to be stored in a CodeCompletionModel. |
class lv::CodeCompletionModel |
Code Completion Model used by the code completion assist. |
class lv::CodeCompletionSuggestion |
Code completion suggestion used in the QCodeCompletionModel. |
class lv::DocumentHandler |
Complements TextEdit in handling documents. |
class lv::CodePalette |
Palette display of a property. |
class lv::EditorGlobalObject |
Global object used through LiveKeys just to have access to project and the palette container. |
class lv::EditorSettings |
Wrapper around a settings file for the editor. |
class lv::PaletteContainer |
Stores all the palettes that are available in LiveKeys. |
class lv::Project |
Abstraction of the open project in LiveKeys. |
class lv::ProjectDocumentMarker |
Dynamic project document markers. |
class lv::ProjectDocument |
Wrapper for any opened document in LiveKeys. |
class lv::ProjectDocumentAction |
Undo/redo implementation for project documents. |
class lv::ProjectDocumentSection |
Dynamic project document section. |
class lv::ProjectDocumentModel |
It's a model containing all of the open files in our Project. |
class lv::ProjectEntry |
An entry within a LiveKeys project, either a folder or a file. |
class lv::ProjectFile |
Specialization of ProjectEntry for files. |
class lv::ProjectFileModel |
The model of the whole project file system used when opening a project in LiveKeys. |
class lv::CodeCompletionContext
Base class for a code completion context, to be stored in a CodeCompletionModel.
Summary
Members | Descriptions |
---|---|
public virtual ~CodeCompletionContext () |
Empty destructor. |
Members
public virtual
~CodeCompletionContext
()
Empty destructor.
class lv::CodeCompletionModel
class lv::CodeCompletionModel
: public QAbstractListModel
Code Completion Model used by the code completion assist.
Summary
Members | Descriptions |
---|---|
public CodeCompletionModel (QObject * parent) |
Default constructor of CodeCompletionModel. |
public ~CodeCompletionModel () |
Default destructor for CodeCompletionModel. |
public inline int rowCount (const QModelIndex & parent) const |
Returns the number of model entries, specifically filtered suggestions. |
public QVariant data (const QModelIndex & index,int role) const |
Override of standard model function for fetching data. |
public inline QHash< int, QByteArray > roleNames () const |
Role names in this model. |
public inline int completionPosition () const |
Returns completion position. |
public inline bool isEnabled () const |
Shows if completion is enabled. |
public void resetModel () |
Function to reset the internal model representation. |
public void setSuggestions (const QList< CodeCompletionSuggestion > & suggestions,const QString & suggestionFilter) |
Simple function to assign code completion suggestions and filter. |
public inline void setCompletionPosition (int index) |
Completion position setter. |
public void setFilter (const QString & filter) |
Simple function to set the given filter. |
public inline const QString & filter () const |
Getter of filter. |
public inline CodeCompletionContext * completionContext () |
Completion context getter. |
public void setCompletionContext ( CodeCompletionContext * context) |
Sets given code completion context. |
public void removeCompletionContext () |
Deletes the internal completion context. |
{signal} public void completionPositionChanged (int arg) |
completion position changed |
{signal} public void isEnabledChanged (bool arg) |
Shows if enabled state changed |
{slot} public inline void enable () |
Enables the model. |
{slot} public inline void disable () |
Disables the model. |
{slot} public inline int suggestionCount () const |
Returns the number of model entries. |
enum Roles |
Roles of the model. |
Members
public
CodeCompletionModel
(QObject * parent)
Default constructor of CodeCompletionModel.
public
~CodeCompletionModel
()
Default destructor for CodeCompletionModel.
public inline int
rowCount
(const QModelIndex & parent) const
Returns the number of model entries, specifically filtered suggestions.
public QVariant
data
(const QModelIndex & index,int role) const
Override of standard model function for fetching data.
public inline QHash< int, QByteArray >
roleNames
() const
Role names in this model.
public inline int
completionPosition
() const
Returns completion position.
public inline bool
isEnabled
() const
Shows if completion is enabled.
public void
resetModel
()
Function to reset the internal model representation.
public void
setSuggestions
(const QList<
CodeCompletionSuggestion
> & suggestions,const QString & suggestionFilter)
Simple function to assign code completion suggestions and filter.
public inline void
setCompletionPosition
(int index)
Completion position setter.
public void
setFilter
(const QString & filter)
Simple function to set the given filter.
public inline const QString &
filter
() const
Getter of filter.
public inline
CodeCompletionContext
*
completionContext
()
Completion context getter.
public void
setCompletionContext
(
CodeCompletionContext
* context)
Sets given code completion context.
public void
removeCompletionContext
()
Deletes the internal completion context.
{signal} public void
completionPositionChanged
(int arg)
completion position changed
{signal} public void
isEnabledChanged
(bool arg)
Shows if enabled state changed
{slot} public inline void
enable
()
Enables the model.
{slot} public inline void
disable
()
Disables the model.
{slot} public inline int
suggestionCount
() const
Returns the number of model entries.
enum
Roles
Values | Descriptions |
---|---|
Label | |
Info | |
Category | |
Completion | |
Documentation |
Roles of the model.
class lv::CodeCompletionSuggestion
Code completion suggestion used in the QCodeCompletionModel.
Summary
Members | Descriptions |
---|---|
public CodeCompletionSuggestion (const QString & label,const QString & info,const QString & category,const QString & completion,const QString & documentation) |
Default constructor for CodeCompletionSuggestion, simply setting the given parameters. |
public ~CodeCompletionSuggestion () |
Blank destructor of CodeCOmpletionSuggestion. |
public inline const QString & label () const |
Label getter. |
public inline const QString & info () const |
Info getter. |
public inline const QString & category () const |
Category getter. |
public inline const QString & completion () const |
Completion getter. |
public inline const QString & documentation () const |
Documentation getter. |
Members
public
CodeCompletionSuggestion
(const QString & label,const QString & info,const QString & category,const QString & completion,const QString & documentation)
Default constructor for CodeCompletionSuggestion, simply setting the given parameters.
public
~CodeCompletionSuggestion
()
Blank destructor of CodeCOmpletionSuggestion.
public inline const QString &
label
() const
Label getter.
public inline const QString &
info
() const
Info getter.
public inline const QString &
category
() const
Category getter.
public inline const QString &
completion
() const
Completion getter.
public inline const QString &
documentation
() const
Documentation getter.
class lv::DocumentHandler
Complements TextEdit in handling documents.
Offers infrastructure for code completion, highlighting and other language specifics.
Summary
Members | Descriptions |
---|
Members
class lv::CodePalette
class lv::CodePalette
: public QObject
Palette display of a property.
Summary
Members | Descriptions |
---|---|
public explicit CodePalette (QObject * parent) |
Default contructor of CodePalette. |
public virtual ~CodePalette () |
Default destructor. |
public inline QQuickItem * item () |
Visual item for this palette. |
public inline void setItem (QQuickItem * item) |
Item setter. |
public inline bool hasItem () const |
Checks wether item is available. |
public inline const QVariant & value () const |
Property value corresponding to this palette. |
public void setValue (const QVariant & value) |
Value setter for palette. |
public void setValueFromBinding (const QVariant & value) |
Assign property value (binding change) |
public void initValue (const QVariant & value) |
|
public void initViaSource () |
|
public QString name () const |
Palette name. |
public inline void setPath (const QString & path) |
Path setter for palette. |
public inline const QString & path () const |
Path getter for palette. |
public inline QmlEditFragment * editFragment () const |
Returns extension for palette |
public inline void setEditFragment ( QmlEditFragment * extension) |
Extension setter for palette. |
public inline QString type () const |
Returns the palette type. |
public inline void setType (QString type) |
Type setter for palette. |
public inline const QJSValue & writer () const |
Returns the writer function set by this palette. |
{signal} public void itemChanged () |
Item changed |
{signal} public void valueChanged () |
Value changed |
{signal} public void editFragmentChanged () |
Edit fragment changed |
{signal} public void typeChanged () |
Type changed |
{signal} public void writerChanged () |
Writer changed |
{signal} public void init (const QVariant & value) |
Value was initialized |
{signal} public void sourceInit () |
|
{signal} public void valueFromBindingChanged (const QVariant & value) |
|
{slot} public inline bool isBindingChange () const |
Shows if palette is currently in the middle of a binding change. |
{slot} public inline void setWriter (QJSValue writer) |
Members
public explicit
CodePalette
(QObject * parent)
Default contructor of CodePalette.
public virtual
~CodePalette
()
Default destructor.
public inline QQuickItem *
item
()
Visual item for this palette.
Visual item for this palette
public inline void
setItem
(QQuickItem * item)
Item setter.
public inline bool
hasItem
() const
Checks wether item is available.
public inline const QVariant &
value
() const
Property value corresponding to this palette.
Property value corresponding to this palette
public void
setValue
(const QVariant & value)
Value setter for palette.
public void
setValueFromBinding
(const QVariant & value)
Assign property value (binding change)
public void
initValue
(const QVariant & value)
public void
initViaSource
()
public QString
name
() const
Palette name.
Palette name
public inline void
setPath
(const QString & path)
Path setter for palette.
public inline const QString &
path
() const
Path getter for palette.
public inline
QmlEditFragment
*
editFragment
() const
Returns extension for palette
public inline void
setEditFragment
(
QmlEditFragment
* extension)
Extension setter for palette.
public inline QString
type
() const
Returns the palette type.
Palette type
public inline void
setType
(QString type)
Type setter for palette.
public inline const QJSValue &
writer
() const
Returns the writer function set by this palette.
{signal} public void
itemChanged
()
Item changed
{signal} public void
valueChanged
()
Value changed
{signal} public void
editFragmentChanged
()
Edit fragment changed
{signal} public void
typeChanged
()
Type changed
{signal} public void
writerChanged
()
Writer changed
{signal} public void
init
(const QVariant & value)
Value was initialized
{signal} public void
sourceInit
()
{signal} public void
valueFromBindingChanged
(const QVariant & value)
{slot} public inline bool
isBindingChange
() const
Shows if palette is currently in the middle of a binding change.
{slot} public inline void
setWriter
(QJSValue writer)
class lv::EditorGlobalObject
class lv::EditorGlobalObject
: public QObject
Global object used through LiveKeys just to have access to project and the palette container.
Used by a lot of different classes just for sharing these two properties from their QML context.
Summary
Members | Descriptions |
---|---|
public explicit EditorGlobalObject ( Project * project, PaletteLoader * paletteContainer,QObject * parent) |
Default constructor of EditorGlobalObject. |
public Project * project () |
Project getter. |
public inline PaletteLoader * paletteContainer () |
|
{signal} public void projectChanged () |
Members
public explicit
EditorGlobalObject
(
Project
* project,
PaletteLoader
* paletteContainer,QObject * parent)
Default constructor of EditorGlobalObject.
public
Project
*
project
()
Project getter.
public inline
PaletteLoader
*
paletteContainer
()
{signal} public void
projectChanged
()
class lv::EditorSettings
class lv::EditorSettings
: public QObject
Wrapper around a settings file for the editor.
We create small category nodes to add custom settings by assigning a key for each category in a JSON file and fetching it from a settings file.
Summary
Members | Descriptions |
---|---|
public explicit EditorSettings (const QString & path,QObject * parent) |
Default constructor. |
public ~EditorSettings () |
Blank destructor. |
public inline int fontSize () const |
Returns the font size. |
public inline const QString & path () const |
Returns path of the settings |
public void fromJson (const MLNode & root) |
Populates the settings from a given JSON object. |
public MLNode
toJson () const |
Creates a JSON object from the settings. |
public inline MLNode
readFor (const QString & key) |
Find settings for given key |
public inline void write (const QString & key,const MLNode & settings) |
Write settings for given key |
{signal} public void initError (const QString & errorString) |
Signals error with the given string. |
{signal} public void fontSizeChanged (int fontSize) |
Signals the fontSize property changed. |
{signal} public void refresh () |
Signals when a resync is done from the file |
{slot} public void syncWithFile () |
Synchronizes the settings with the file in a bidirectional manner. |
{slot} public void init (const QByteArray & data) |
Initializes the settings from given data. |
{slot} public inline const QByteArray & content () const |
Settings content getter. |
{slot} public void documentOpened ( lv::ProjectDocument * document) |
Sets up the listener for changes to the project document. |
{slot} public void documentChanged () |
Triggers re-initialization of settings from the settings file on every document change. |
Members
public explicit
EditorSettings
(const QString & path,QObject * parent)
Default constructor.
public
~EditorSettings
()
Blank destructor.
public inline int
fontSize
() const
Returns the font size.
Returns the font size
public inline const QString &
path
() const
Returns path of the settings
public void
fromJson
(const
MLNode
& root)
Populates the settings from a given JSON object.
public
MLNode
toJson
() const
Creates a JSON object from the settings.
public inline
MLNode
readFor
(const QString & key)
Find settings for given key
public inline void
write
(const QString & key,const
MLNode
& settings)
Write settings for given key
{signal} public void
initError
(const QString & errorString)
Signals error with the given string.
Signals error with given string
{signal} public void
fontSizeChanged
(int fontSize)
Signals the fontSize property changed.
Font size changed
{signal} public void
refresh
()
Signals when a resync is done from the file
{slot} public void
syncWithFile
()
Synchronizes the settings with the file in a bidirectional manner.
If no file, we store the settings in one. If the file is open, we read from it.
{slot} public void
init
(const QByteArray & data)
Initializes the settings from given data.
{slot} public inline const QByteArray &
content
() const
Settings content getter.
{slot} public void
documentOpened
(
lv::ProjectDocument
* document)
Sets up the listener for changes to the project document.
This happens when the user opens the settings file in LiveKeys
{slot} public void
documentChanged
()
Triggers re-initialization of settings from the settings file on every document change.
class lv::PaletteContainer
Stores all the palettes that are available in LiveKeys.
More palettes can get populated when a new plugin is added.
Summary
Members | Descriptions |
---|---|
public PaletteContainer () |
|
public ~PaletteContainer () |
|
public void addPalette (const Utf8 & type,const Utf8 & path,const Utf8 & name,const Utf8 & extension,const Utf8 & plugin) |
|
public void clear () |
|
public Utf8
toString () const |
|
public PaletteInfo
findPaletteByName (const Utf8 & name) const |
|
public PaletteInfo
findFirstPalette (const Utf8 & type) const |
|
public std::list< PaletteInfo > findPalettes (const Utf8 & type) const |
Members
public
PaletteContainer
()
public
~PaletteContainer
()
public void
addPalette
(const
Utf8
& type,const
Utf8
& path,const
Utf8
& name,const
Utf8
& extension,const
Utf8
& plugin)
public void
clear
()
public
Utf8
toString
() const
public
PaletteInfo
findPaletteByName
(const
Utf8
& name) const
public
PaletteInfo
findFirstPalette
(const
Utf8
& type) const
public std::list<
PaletteInfo
>
findPalettes
(const
Utf8
& type) const
class lv::Project
class lv::Project
: public QObject
Abstraction of the open project in LiveKeys.
Practically a singleton (not enforced), constructed at the start of the application, and destroyed right before closing. There are two types of projects - file-based projects and folder-based projects.
Summary
Members | Descriptions |
---|---|
public Project (el::Engine * engine,QObject * parent) |
Default constructor. |
public ~Project () |
Default destructor. |
public ProjectFile * lookupBestFocus ( ProjectEntry * entry) |
Finds the "best" file in the project to be the inital active file. |
public Document * isOpened (const QString & rootPath) |
Checks whether there's a file opened at this specified path. |
public inline lv::ProjectFileModel * fileModel () |
Getter of the file model. |
public inline lv::ProjectNavigationModel * navigationModel () |
Getter of the navigation model. |
public inline lv::ProjectDocumentModel * documentModel () |
Getter of the document model. |
public inline lv::RunnableContainer * runnables () const |
Returns the opened runnables. |
public inline lv::Runnable * active () const |
|
public inline const QString & rootPath () const |
Getter of the root path. |
public inline LockedFileIOSession::Ptr
lockedFileIO () |
Getter of the locked file session. |
public inline lv::Project::RunTrigger runTrigger () const |
Returns the trigger type to rerun the project. |
public inline void setRunTrigger (lv::Project::RunTrigger runTrigger) |
Sets the trigger type to rerun the project. |
public void setRunSpace (QObject * runSpace) |
Sets the load position for the project. |
public void excludeRunTriggers (const QSet< QString > & paths) |
Exclude these paths from scheduling a run. |
public void removeExcludedRunTriggers (const QSet< QString > & paths) |
Remove these paths from excluding a scheduled run. |
{signal} public void pathChanged (QString rootPath) |
path changed, means the whole project changed |
{signal} public void activeChanged ( lv::Runnable * active) |
active file has changed |
{signal} public void documentOpened ( lv::Document * document) |
triggers when a document is opened |
{signal} public void directoryChanged (const QString & rootPath) |
refers to an internal project directory change, for example renaming |
{signal} public void fileChanged (const QString & rootPath) |
file changed (e.g. on save) |
{signal} public void runTriggerChanged () |
run trigger changed |
{signal} public void aboutToClose () |
project is about to close |
{slot} public void newProject () |
Creates a simple demo file project, and closes the previously opened one (if it exists) |
{slot} public void closeProject () |
Closes the currently opened project. |
{slot} public lv::ProjectDocument * openTextFile (const QUrl & rootPath,int mode) |
QUrl variant of the other openFile function. |
{slot} public lv::ProjectDocument * openTextFile (const QString & rootPath,int mode) |
Opens the file given by the path , in the given mode. |
{slot} public lv::ProjectDocument * openTextFile ( lv::ProjectFile * file,int mode) |
Opens the given file in the given mode, this time using the internal ProjectFile object. |
{slot} public lv::Document * openFile (const QString & path,int mode) |
|
{slot} public lv::Document * openFile ( lv::ProjectFile * file,int mode) |
|
{slot} public void setActive (const QString & rootPath) |
Set the active file given its path. |
{slot} public lv::Runnable * openRunnable (const QString & path,const QStringList & activations) |
|
{slot} public bool isDirProject () const |
Shows if the project is of folder type. |
{slot} public bool isFileInProject (const QUrl & rootPath) const |
QUrl variant of this function. |
{slot} public bool isFileInProject (const QString & rootPath) const |
Shows if the file given by the QString path is inside this folder-based project. |
{slot} public bool canRunFile (const QString & path) const |
Checks whether the file can be run. |
{slot} public void openProject (const QString & rootPath) |
Open project given by the path. |
{slot} public void openProject (const QUrl & url) |
Opens project given by QUrl |
{slot} public void closeFile (const QString & rootPath) |
Closes the file given the path. |
{slot} public QString dir () const |
Returns the path of the folder of the given file-based project, or the actual folder of a folder-based project. |
{slot} public QString path (const QString & relative) const |
Returns an absolute path given a relative one. |
{slot} public void scheduleRun () |
Schedules a run in 1 second. Clears any previous schedule. |
{slot} public void run () |
Run the current project. |
{slot} public QObject * runSpace () |
|
{slot} public QObject * appRoot () |
|
{slot} public inline el::Engine * engine () |
Returns the Elements engine associated with this project. |
enum RunTrigger |
Members
public
Project
(el::Engine * engine,QObject * parent)
Default constructor.
public
~Project
()
Default destructor.
public
ProjectFile
*
lookupBestFocus
(
ProjectEntry
* entry)
Finds the "best" file in the project to be the inital active file.
The preference is for "main.qml" first, then the first lowercase-named file
public
Document
*
isOpened
(const QString & rootPath)
Checks whether there's a file opened at this specified path.
public inline lv::ProjectFileModel *
fileModel
()
Getter of the file model.
The file model represents all of the opened files in the current project
public inline lv::ProjectNavigationModel *
navigationModel
()
Getter of the navigation model.
Used to search through the project for different files
public inline
lv::ProjectDocumentModel
*
documentModel
()
Getter of the document model.
Shows all the opened files
public inline
lv::RunnableContainer
*
runnables
() const
Returns the opened runnables.
public inline
lv::Runnable
*
active
() const
public inline const QString &
rootPath
() const
Getter of the root path.
Actual path of the project, whether it's a file- or folder-based project.
public inline
LockedFileIOSession::Ptr
lockedFileIO
()
Getter of the locked file session.
Implemention of the standard read-write model where there can be multiple readers, but a single writer, and the write mode is locked for access.
public inline lv::Project::RunTrigger
runTrigger
() const
Returns the trigger type to rerun the project.
public inline void
setRunTrigger
(lv::Project::RunTrigger runTrigger)
Sets the trigger type to rerun the project.
public void
setRunSpace
(QObject * runSpace)
Sets the load position for the project.
public void
excludeRunTriggers
(const QSet< QString > & paths)
Exclude these paths from scheduling a run.
public void
removeExcludedRunTriggers
(const QSet< QString > & paths)
Remove these paths from excluding a scheduled run.
{signal} public void
pathChanged
(QString rootPath)
path changed, means the whole project changed
{signal} public void
activeChanged
(
lv::Runnable
* active)
active file has changed
{signal} public void
documentOpened
(
lv::Document
* document)
triggers when a document is opened
{signal} public void
directoryChanged
(const QString & rootPath)
refers to an internal project directory change, for example renaming
{signal} public void
fileChanged
(const QString & rootPath)
file changed (e.g. on save)
{signal} public void
runTriggerChanged
()
run trigger changed
{signal} public void
aboutToClose
()
project is about to close
{slot} public void
newProject
()
Creates a simple demo file project, and closes the previously opened one (if it exists)
Nameless file with a simple Grid
{slot} public void
closeProject
()
Closes the currently opened project.
It doesn't destroy the singleton capital-P Project, simply leaves it in a blank state
{slot} public
lv::ProjectDocument
*
openTextFile
(const QUrl & rootPath,int mode)
QUrl variant of the other openFile function.
See also: Project::openFile(const QString &path, int mode)
{slot} public
lv::ProjectDocument
*
openTextFile
(const QString & rootPath,int mode)
Opens the file given by the path
, in the given mode.
If the document is not opened, we use the third openFile function to do so. If it is, we update its monitoring state.
See also: Project::openFile(ProjectFile *file, int mode)
{slot} public
lv::ProjectDocument
*
openTextFile
(
lv::ProjectFile
* file,int mode)
Opens the given file in the given mode, this time using the internal ProjectFile object.
All open documents are immediately added to the document model
{slot} public
lv::Document
*
openFile
(const QString & path,int mode)
{slot} public
lv::Document
*
openFile
(
lv::ProjectFile
* file,int mode)
{slot} public void
setActive
(const QString & rootPath)
Set the active file given its path.
This file is the one actually compiling
{slot} public
lv::Runnable
*
openRunnable
(const QString & path,const QStringList & activations)
{slot} public bool
isDirProject
() const
Shows if the project is of folder type.
{slot} public bool
isFileInProject
(const QUrl & rootPath) const
QUrl variant of this function.
See also: Project::isFileInProject(const QString &path)
{slot} public bool
isFileInProject
(const QString & rootPath) const
Shows if the file given by the QString path is inside this folder-based project.
{slot} public bool
canRunFile
(const QString & path) const
Checks whether the file can be run.
{slot} public void
openProject
(const QString & rootPath)
Open project given by the path.
It can be either a single file or an entire folder, as mentioned before
{slot} public void
openProject
(const QUrl & url)
Opens project given by QUrl
{slot} public void
closeFile
(const QString & rootPath)
Closes the file given the path.
{slot} public QString
dir
() const
Returns the path of the folder of the given file-based project, or the actual folder of a folder-based project.
{slot} public QString
path
(const QString & relative) const
Returns an absolute path given a relative one.
{slot} public void
scheduleRun
()
Schedules a run in 1 second. Clears any previous schedule.
{slot} public void
run
()
Run the current project.
{slot} public QObject *
runSpace
()
{slot} public QObject *
appRoot
()
{slot} public inline el::Engine *
engine
()
Returns the Elements engine associated with this project.
enum
RunTrigger
Values | Descriptions |
---|---|
RunManual | |
RunOnSave | |
RunOnChange |
class lv::ProjectDocumentMarker
Dynamic project document markers.
Markers are wrappers around a position in a document. They get moved automatically with document changes, and get deleted when both characters surrounding them are deleted.
Summary
Members | Descriptions |
---|---|
public inline int position () const |
Marker position. |
public inline bool isValid () const |
Shows if the marker is valid. |
public inline ~ProjectDocumentMarker () |
Destructor. |
typedef Ptr |
Shared pointer to the marker |
typedef ConstPtr |
Const shared pointer to the marker |
Members
public inline int
position
() const
Marker position.
public inline bool
isValid
() const
Shows if the marker is valid.
public inline
~ProjectDocumentMarker
()
Destructor.
typedef
Ptr
Shared pointer to the marker
typedef
ConstPtr
Const shared pointer to the marker
class lv::ProjectDocument
class lv::ProjectDocument
: public lv::Document
Wrapper for any opened document in LiveKeys.
Summary
Members | Descriptions |
---|---|
public explicit ProjectDocument ( ProjectFile * file,bool isMonitored, Project * parent) |
Default constructor |
public ~ProjectDocument () |
ProjectDocument destructor. |
public QTextDocument * textDocument () |
Text document which is wrapped inside the ProjectDocument. |
public bool isActive () const |
Shows if the current document is active. |
public virtual QByteArray content () |
Overrides Document::content. |
public virtual void setContent (const QByteArray & content) |
Overrides Document::setContent. |
public const QString & contentString () |
|
public ProjectDocumentMarker::Ptr
addMarker (int position) |
Adds a marker at the given position. |
public void removeMarker ( ProjectDocumentMarker::Ptr marker) |
Removes a given marker. |
public ProjectDocumentSection::Ptr
createSection (int type,int position,int length) |
Creates a custom section with the given type, position and length. |
public SectionIterator
sectionsBegin () |
Begin-iterator of the sections. |
public SectionIterator
sectionsEnd () |
End-iterator of the sections. |
public SectionConstIterator
sectionsBegin () const |
Const begin-iterator of the sections. |
public SectionConstIterator
sectionsEnd () const |
Const end-iterator of the sections. |
public int totalSections () const |
Number of sections. |
public bool hasSections () const |
Shows if the object has any sections. |
public ProjectDocumentSection::Ptr
sectionAt (int position) |
Returns the section at the given position. |
public bool removeSectionAt (int position) |
Removes section at given position. |
public void removeSection ( ProjectDocumentSection::Ptr section) |
Removes section given its pointer. |
public QString peekContent (int position) const |
Shows a small text preview of the text around a given position, including a visual pointer to the position itself. |
public void addEditingState ( EditingState type) |
Adds editing state flag. |
public void removeEditingState ( EditingState state) |
Removes the given editing state flag. |
public bool editingStateIs (int flag) const |
Shows if the editing state includes the given flags. |
public void resetEditingState () |
Resets all of the editing state flags. |
public int lastCursorPosition () |
|
public void setLastCursorPosition (int pos) |
|
public inline void resetCollapseSignal (int blockNumber) |
|
public void addLineAtBlockNumber (QString line,int pos) |
|
public void removeLineAtBlockNumber (int pos) |
|
{signal} public void formatChanged (int position,int length) |
shows if the format changed |
{signal} public void contentsChange (int pos,int removed,int added) |
triggered when a contents changed inside the document |
{signal} public void resetCollapse (int blockNumber) |
triggered when we need to reset collapse state |
{slot} public void __documentContentsChanged (int position,int charsRemoved,int charsAdded) |
Slot for tracking text document changes which updates markers and sections. |
{slot} public void __documentModificationChanged () |
|
{slot} public void __documentSaved () |
|
{slot} public virtual void readContent () |
|
{slot} public virtual int contentLength () |
|
{slot} public QString substring (int from,int length) const |
|
{slot} public void insert (int from,int length,const QString & text,int editingState) |
|
{slot} public int offsetAtLine (int line) const |
|
enum EditingState |
Editing states of an opened document |
typedef SectionIterator |
Iterator through sections |
typedef SectionConstIterator |
Const iterator through sections |
Members
public explicit
ProjectDocument
(
ProjectFile
* file,bool isMonitored,
Project
* parent)
Default constructor
public
~ProjectDocument
()
ProjectDocument destructor.
public QTextDocument *
textDocument
()
Text document which is wrapped inside the ProjectDocument.
public bool
isActive
() const
Shows if the current document is active.
public virtual QByteArray
content
()
Overrides Document::content.
public virtual void
setContent
(const QByteArray & content)
Overrides Document::setContent.
public const QString &
contentString
()
public
ProjectDocumentMarker::Ptr
addMarker
(int position)
Adds a marker at the given position.
public void
removeMarker
(
ProjectDocumentMarker::Ptr
marker)
Removes a given marker.
public
ProjectDocumentSection::Ptr
createSection
(int type,int position,int length)
Creates a custom section with the given type, position and length.
See also: lv::ProjectDocumentSection
public
SectionIterator
sectionsBegin
()
Begin-iterator of the sections.
public
SectionIterator
sectionsEnd
()
End-iterator of the sections.
public
SectionConstIterator
sectionsBegin
() const
Const begin-iterator of the sections.
public
SectionConstIterator
sectionsEnd
() const
Const end-iterator of the sections.
public int
totalSections
() const
Number of sections.
public bool
hasSections
() const
Shows if the object has any sections.
public
ProjectDocumentSection::Ptr
sectionAt
(int position)
Returns the section at the given position.
public bool
removeSectionAt
(int position)
Removes section at given position.
public void
removeSection
(
ProjectDocumentSection::Ptr
section)
Removes section given its pointer.
public QString
peekContent
(int position) const
Shows a small text preview of the text around a given position, including a visual pointer to the position itself.
public void
addEditingState
(
EditingState
type)
Adds editing state flag.
public void
removeEditingState
(
EditingState
state)
Removes the given editing state flag.
public bool
editingStateIs
(int flag) const
Shows if the editing state includes the given flags.
public void
resetEditingState
()
Resets all of the editing state flags.
public int
lastCursorPosition
()
public void
setLastCursorPosition
(int pos)
public inline void
resetCollapseSignal
(int blockNumber)
public void
addLineAtBlockNumber
(QString line,int pos)
public void
removeLineAtBlockNumber
(int pos)
{signal} public void
formatChanged
(int position,int length)
shows if the format changed
{signal} public void
contentsChange
(int pos,int removed,int added)
triggered when a contents changed inside the document
{signal} public void
resetCollapse
(int blockNumber)
triggered when we need to reset collapse state
{slot} public void
__documentContentsChanged
(int position,int charsRemoved,int charsAdded)
Slot for tracking text document changes which updates markers and sections.
{slot} public void
__documentModificationChanged
()
{slot} public void
__documentSaved
()
{slot} public virtual void
readContent
()
{slot} public virtual int
contentLength
()
{slot} public QString
substring
(int from,int length) const
{slot} public void
insert
(int from,int length,const QString & text,int editingState)
{slot} public int
offsetAtLine
(int line) const
enum
EditingState
Values | Descriptions |
---|---|
Manual | 0 : coming from the user |
Assisted | 1 : coming from a code completion assistant |
Silent | 10 : does not trigger a recompile |
Palette | 110 : also silent (when a palette edits a section) |
Runtime | 1010 : also silent (comming from a runtime binding) |
Read | 10000 : populate from file, does not signal anything |
Overlay | 100000 : document under overlay mode, does not signal anything |
Editing states of an opened document
typedef
SectionIterator
Iterator through sections
typedef
SectionConstIterator
Const iterator through sections
class lv::ProjectDocumentAction
class lv::ProjectDocumentAction
: public QAbstractUndoItem
Undo/redo implementation for project documents.
Summary
Members | Descriptions |
---|---|
public ProjectDocument * parent |
|
public QString charsAdded |
|
public QString charsRemoved |
|
public int position |
|
public bool commited |
|
public inline ProjectDocumentAction ( ProjectDocument * pParent,int pPosition,const QString & pCharsAdded,const QString & pCharsRemoved,bool pCommited) |
Default constructor |
public void undo () |
Undo implementation. |
public void redo () |
Redo implementation. |
Members
public
ProjectDocument
*
parent
public QString
charsAdded
public QString
charsRemoved
public int
position
public bool
commited
public inline
ProjectDocumentAction
(
ProjectDocument
* pParent,int pPosition,const QString & pCharsAdded,const QString & pCharsRemoved,bool pCommited)
Default constructor
public void
undo
()
Undo implementation.
public void
redo
()
Redo implementation.
class lv::ProjectDocumentSection
Dynamic project document section.
The section is defined by its position and length. Similar to the dynamic markers, this gets moved around and modified along with document changes.
Summary
Members | Descriptions |
---|---|
public inline int position () const |
Returns the first position of the section. |
public inline int length () const |
Returns the length of the section. |
public inline int type () const |
Returns the type of section set by the user. |
public inline bool isValid () const |
Shows if the section is still valid. |
public inline void resize (int newLength) |
|
public ~ProjectDocumentSection () |
Default destructor. |
public inline void setUserData (void * data) |
Set the custom user data inside the section. |
public inline void * userData () |
Returns the custom user data. |
public inline ProjectDocument * document () |
Returns the document the section belongs to. |
public inline ProjectDocumentBlockData * parentBlock () |
Returns the block containing the first position of the section. |
public void onTextChanged (std::function< void( ProjectDocumentSection::Ptr , int, int, const QString &)> handler) |
Sets the callback funciton to be called when the text changes |
typedef Ptr |
Shared pointer to a section |
typedef ConstPtr |
Const shared pointer to a section |
Members
public inline int
position
() const
Returns the first position of the section.
public inline int
length
() const
Returns the length of the section.
public inline int
type
() const
Returns the type of section set by the user.
public inline bool
isValid
() const
Shows if the section is still valid.
public inline void
resize
(int newLength)
public
~ProjectDocumentSection
()
Default destructor.
public inline void
setUserData
(void * data)
Set the custom user data inside the section.
public inline void *
userData
()
Returns the custom user data.
public inline
ProjectDocument
*
document
()
Returns the document the section belongs to.
public inline ProjectDocumentBlockData *
parentBlock
()
Returns the block containing the first position of the section.
public void
onTextChanged
(std::function< void(
ProjectDocumentSection::Ptr
, int, int, const QString &)> handler)
Sets the callback funciton to be called when the text changes
typedef
Ptr
Shared pointer to a section
typedef
ConstPtr
Const shared pointer to a section
class lv::ProjectDocumentModel
class lv::ProjectDocumentModel
: public QAbstractListModel
It's a model containing all of the open files in our Project.
Summary
Members | Descriptions |
---|---|
public ProjectDocumentModel ( Project * project) |
Default constructor |
public ~ProjectDocumentModel () |
Default destructor |
public int rowCount (const QModelIndex & parent) const |
implementation of the function inherited from QAbstractListModel |
public QVariant data (const QModelIndex & index,int role) const |
implementation of the function inherited from QAbstractListModel |
public QHash< int, QByteArray > roleNames () const |
implementation of the function inherited from QAbstractListModel |
public void openDocument (const QString & path, Document * document) |
Adds a document to the model |
public void relocateDocument (const QString & path,const QString & newPath, Document * document) |
Changes the path of a document |
public void closeDocuments () |
Closes all of the open documents |
public inline const QHash< QString, Document * > openedFiles () const |
Returns the hashmap containing the open documents |
public void updateDocumentMonitoring ( Document * document,bool monitor) |
Change the monitoring state of a particular documetn |
public void closeDocumentsInPath (const QString & path) |
Close all of the documents within a given folder path |
public void closeDocument (const QString & path) |
Close the specific file with a given path. |
{signal} public void monitoredDocumentChanged ( lv::Document * document) |
Shows that the given document has changed |
{signal} public void documentChangedOutside ( lv::Document * document) |
Shows that the given document was changed externally |
{signal} public void aboutToClose ( lv::Document * document) |
Signals that the document is being closed |
{slot} public void rescanDocuments () |
Check for changes inside the open files (by comparing last mod timestamps) |
{slot} public void monitoredFileChanged (const QString & path) |
Re-reads content of a monitored file that changed |
{slot} public bool saveDocuments () |
Saves all changed documents |
{slot} public lv::Document * isOpened (const QString & path) |
Returns if the file is opened. |
{slot} public lv::Document * lastOpened () |
Returns last opened file |
{slot} public lv::Document * documentByPathHash (const QString & pathHash) |
Returns the document given it's path hash, using lv::ProjectEntry::hashPath() |
{slot} public QStringList listUnsavedDocuments () |
Shows a list of all unsaved docs. |
{slot} public QStringList listUnsavedDocumentsInPath (const QString & path) |
Returns list of unsaved documents withing a folder. |
enum Roles |
Model roles |
Members
public
ProjectDocumentModel
(
Project
* project)
Default constructor
public
~ProjectDocumentModel
()
Default destructor
public int
rowCount
(const QModelIndex & parent) const
implementation of the function inherited from QAbstractListModel
public QVariant
data
(const QModelIndex & index,int role) const
implementation of the function inherited from QAbstractListModel
public QHash< int, QByteArray >
roleNames
() const
implementation of the function inherited from QAbstractListModel
public void
openDocument
(const QString & path,
Document
* document)
Adds a document to the model
public void
relocateDocument
(const QString & path,const QString & newPath,
Document
* document)
Changes the path of a document
public void
closeDocuments
()
Closes all of the open documents
public inline const QHash< QString,
Document
* >
openedFiles
() const
Returns the hashmap containing the open documents
public void
updateDocumentMonitoring
(
Document
* document,bool monitor)
Change the monitoring state of a particular documetn
public void
closeDocumentsInPath
(const QString & path)
Close all of the documents within a given folder path
public void
closeDocument
(const QString & path)
Close the specific file with a given path.
{signal} public void
monitoredDocumentChanged
(
lv::Document
* document)
Shows that the given document has changed
{signal} public void
documentChangedOutside
(
lv::Document
* document)
Shows that the given document was changed externally
{signal} public void
aboutToClose
(
lv::Document
* document)
Signals that the document is being closed
{slot} public void
rescanDocuments
()
Check for changes inside the open files (by comparing last mod timestamps)
{slot} public void
monitoredFileChanged
(const QString & path)
Re-reads content of a monitored file that changed
{slot} public bool
saveDocuments
()
Saves all changed documents
{slot} public
lv::Document
*
isOpened
(const QString & path)
Returns if the file is opened.
By definition, if the file is inside this model, it's opened!
{slot} public
lv::Document
*
lastOpened
()
Returns last opened file
{slot} public
lv::Document
*
documentByPathHash
(const QString & pathHash)
Returns the document given it's path hash, using lv::ProjectEntry::hashPath()
{slot} public QStringList
listUnsavedDocuments
()
Shows a list of all unsaved docs.
Useful for e.g. when we're closing a project
{slot} public QStringList
listUnsavedDocumentsInPath
(const QString & path)
Returns list of unsaved documents withing a folder.
Useful for e.g. when you're moving or deleting a folder within a project
enum
Roles
Values | Descriptions |
---|---|
Name | |
Path | |
IsOpen |
Model roles
class lv::ProjectEntry
class lv::ProjectEntry
: public QObject
An entry within a LiveKeys project, either a folder or a file.
The whole hierarchy is in a tree-like structure
Summary
Members | Descriptions |
---|---|
public explicit ProjectEntry (const QString & path, ProjectEntry * parent) |
Default constructor |
public ProjectEntry (const QString & path,const QString & name, ProjectEntry * parent) |
Constructor with a name parameter |
public ~ProjectEntry () |
Blank destructor |
public ProjectEntry * child (int index) |
Return a child at a given index |
public inline ProjectEntry * parentEntry () const |
Return the parent of this entry |
public ProjectEntry * addEntry (const QString & name) |
Adds entry with a given name to this entry |
public ProjectEntry * addFileEntry (const QString & name) |
Adds fuke entry with a given name to this entry |
public int childCount () const |
Number of entries |
public int childIndex () const |
Returns the position of this entry within its parent |
public inline const QString & name () const |
Name getter |
public void setName (const QString & name) |
Sets the name to the current entry, simultaneously changing the path as well. |
public inline const QString & path () const |
Path getter |
public inline bool isFile () const |
Shows if the entry is a file |
public void clearItems () |
Resets all the entries for which that's possible to do. |
public inline bool contains (const QString & name) const |
Shows if the entry contains a sub-entry with a given name |
public inline bool operator< (const ProjectEntry & other) const |
Less-than relational operator of entries, sorting by name |
public inline bool operator> (const ProjectEntry & other) const |
Greater-than relational operator of entries, sorting by name |
public void setParentEntry ( ProjectEntry * entry) |
Sets the parent entry |
public void addChildEntry ( ProjectEntry * entry) |
Adds child entry |
public int findEntryInsertionIndex ( ProjectEntry * entry) |
Find a hypothetical insertion point for a given entry |
public void removeChildEntry ( ProjectEntry * entry) |
Remove a child entry |
public inline const QDateTime & lastCheckTime () const |
Returns the last check time |
public inline void setLastCheckTime (const QDateTime & lastCheckTime) |
Sets the last check time |
public inline const QList< ProjectEntry * > & entries () const |
Returns the list of entries |
public void updatePaths () |
Updates paths of child entries. |
protected ProjectEntry (const QString & path,const QString & name,bool isFile, ProjectEntry * parent) |
Complex constructor with an indicator that the entry is a file |
{signal} public void nameChanged () |
Signals that the name has changed |
{signal} public void pathChanged () |
Signals that the path has changed |
{slot} public QUrl pathUrl () const |
Returns the QUrl of the entry path |
{slot} public QString hashPath () const |
Returns the path hashed with md5 and converted to hex |
Members
public explicit
ProjectEntry
(const QString & path,
ProjectEntry
* parent)
Default constructor
public
ProjectEntry
(const QString & path,const QString & name,
ProjectEntry
* parent)
Constructor with a name parameter
public
~ProjectEntry
()
Blank destructor
public
ProjectEntry
*
child
(int index)
Return a child at a given index
public inline
ProjectEntry
*
parentEntry
() const
Return the parent of this entry
public
ProjectEntry
*
addEntry
(const QString & name)
Adds entry with a given name to this entry
public
ProjectEntry
*
addFileEntry
(const QString & name)
Adds fuke entry with a given name to this entry
public int
childCount
() const
Number of entries
public int
childIndex
() const
Returns the position of this entry within its parent
public inline const QString &
name
() const
Name getter
public void
setName
(const QString & name)
Sets the name to the current entry, simultaneously changing the path as well.
Useful for e.g. renaming folders
public inline const QString &
path
() const
Path getter
public inline bool
isFile
() const
Shows if the entry is a file
public void
clearItems
()
Resets all the entries for which that's possible to do.
It's not possible to delete open files!
public inline bool
contains
(const QString & name) const
Shows if the entry contains a sub-entry with a given name
public inline bool
operator<
(const
ProjectEntry
& other) const
Less-than relational operator of entries, sorting by name
public inline bool
operator>
(const
ProjectEntry
& other) const
Greater-than relational operator of entries, sorting by name
public void
setParentEntry
(
ProjectEntry
* entry)
Sets the parent entry
public void
addChildEntry
(
ProjectEntry
* entry)
Adds child entry
public int
findEntryInsertionIndex
(
ProjectEntry
* entry)
Find a hypothetical insertion point for a given entry
public void
removeChildEntry
(
ProjectEntry
* entry)
Remove a child entry
public inline const QDateTime &
lastCheckTime
() const
Returns the last check time
public inline void
setLastCheckTime
(const QDateTime & lastCheckTime)
Sets the last check time
public inline const QList<
ProjectEntry
* > &
entries
() const
Returns the list of entries
public void
updatePaths
()
Updates paths of child entries.
Useful when moving folders in LiveKeys and re-updates the sub-entry paths
protected
ProjectEntry
(const QString & path,const QString & name,bool isFile,
ProjectEntry
* parent)
Complex constructor with an indicator that the entry is a file
{signal} public void
nameChanged
()
Signals that the name has changed
{signal} public void
pathChanged
()
Signals that the path has changed
{slot} public QUrl
pathUrl
() const
Returns the QUrl of the entry path
{slot} public QString
hashPath
() const
Returns the path hashed with md5 and converted to hex
class lv::ProjectFile
class lv::ProjectFile
: public lv::ProjectEntry
Specialization of ProjectEntry for files.
Summary
Members | Descriptions |
---|---|
public explicit ProjectFile (const QString & path, ProjectEntry * parent) |
Default constructor |
public ProjectFile (const QString & path,const QString & name, ProjectEntry * parent) |
Constructor with a name parameter given |
public ~ProjectFile () |
Blank destructor |
public inline Document * document () const |
Document getter |
public void setDocument ( lv::Document * document) |
Document setter |
public inline bool isOpen () const |
Shows if the file is opened |
{signal} public void documentChanged () |
Signals that the document associated with the file has changed |
{slot} public inline bool exists () const |
Returns true if the file exists or false is a temporarry file. |
Members
public explicit
ProjectFile
(const QString & path,
ProjectEntry
* parent)
Default constructor
public
ProjectFile
(const QString & path,const QString & name,
ProjectEntry
* parent)
Constructor with a name parameter given
public
~ProjectFile
()
Blank destructor
public inline
Document
*
document
() const
Document getter
public void
setDocument
(
lv::Document
* document)
Document setter
public inline bool
isOpen
() const
Shows if the file is opened
{signal} public void
documentChanged
()
Signals that the document associated with the file has changed
{slot} public inline bool
exists
() const
Returns true if the file exists or false is a temporarry file.
class lv::ProjectFileModel
class lv::ProjectFileModel
: public QAbstractItemModel
The model of the whole project file system used when opening a project in LiveKeys.
It's a tree-like structure
Summary
Members | Descriptions |
---|---|
public ProjectFileModel (QObject * parent) |
Default constructor |
public ~ProjectFileModel () |
Default destructor |
public QVariant data (const QModelIndex & index,int role) const |
Override of the standard function from QAbstractItemModel |
public QModelIndex index (int row,int column,const QModelIndex & parent) const |
Override of the standard function from QAbstractItemModel |
public QModelIndex rootIndex () |
|
public QModelIndex parent (const QModelIndex & index) const |
|
public int rowCount (const QModelIndex & parent) const |
|
public int columnCount (const QModelIndex & parent) const |
|
public bool hasChildren (const QModelIndex & parent) const |
|
public Qt::ItemFlags flags (const QModelIndex & index) const |
|
public QHash< int, QByteArray > roleNames () const |
|
public void createProject () |
|
public void openProject (const QString & path) |
|
public void closeProject () |
|
public ProjectFile * openFile (const QString & file) |
|
public ProjectEntry * findPathInEntry ( ProjectEntry * entry,const QString & path) |
|
public inline ProjectEntry * root () |
|
{signal} public void projectNodeChanged (QModelIndex index) |
|
{signal} public void error (const QString & message) |
|
{slot} public void entryRemoved (const QModelIndex & item) |
|
{slot} public void entryRemoved ( ProjectEntry * entry) |
|
{slot} public void entryRemoved (const QModelIndex & item, lv::ProjectEntry * entry) |
|
{slot} public void entryAdded ( lv::ProjectEntry * item, lv::ProjectEntry * parent) |
|
{slot} public void moveEntry ( lv::ProjectEntry * item, lv::ProjectEntry * parent) |
|
{slot} public void renameEntry ( lv::ProjectEntry * item,const QString & newName) |
|
{slot} public lv::ProjectFile * addFile ( lv::ProjectEntry * parentEntry,const QString & name) |
|
{slot} public lv::ProjectFile * addTemporaryFile () |
|
{slot} public lv::ProjectEntry * addDirectory ( lv::ProjectEntry * parentEntry,const QString & name) |
|
{slot} public lv::ProjectEntry * findPath (const QString & path) |
|
{slot} public bool removeEntry ( lv::ProjectEntry * entry) |
|
{slot} public void expandEntry ( lv::ProjectEntry * entry) const |
|
{slot} public void rescanEntries ( lv::ProjectEntry * entry) |
|
{slot} public lv::ProjectEntry * itemAt (const QModelIndex & index) const |
|
{slot} public QModelIndex itemIndex ( lv::ProjectEntry * entry) |
|
{slot} public QString printableName (const QString & name) |
|
enum Roles |
Members
public
ProjectFileModel
(QObject * parent)
Default constructor
public
~ProjectFileModel
()
Default destructor
public QVariant
data
(const QModelIndex & index,int role) const
Override of the standard function from QAbstractItemModel
public QModelIndex
index
(int row,int column,const QModelIndex & parent) const
Override of the standard function from QAbstractItemModel
public QModelIndex
rootIndex
()
public QModelIndex
parent
(const QModelIndex & index) const
public int
rowCount
(const QModelIndex & parent) const
public int
columnCount
(const QModelIndex & parent) const
public bool
hasChildren
(const QModelIndex & parent) const
public Qt::ItemFlags
flags
(const QModelIndex & index) const
public QHash< int, QByteArray >
roleNames
() const
public void
createProject
()
public void
openProject
(const QString & path)
public void
closeProject
()
public
ProjectFile
*
openFile
(const QString & file)
public
ProjectEntry
*
findPathInEntry
(
ProjectEntry
* entry,const QString & path)
public inline
ProjectEntry
*
root
()
{signal} public void
projectNodeChanged
(QModelIndex index)
{signal} public void
error
(const QString & message)
{slot} public void
entryRemoved
(const QModelIndex & item)
{slot} public void
entryRemoved
(
ProjectEntry
* entry)
{slot} public void
entryRemoved
(const QModelIndex & item,
lv::ProjectEntry
* entry)
{slot} public void
entryAdded
(
lv::ProjectEntry
* item,
lv::ProjectEntry
* parent)
{slot} public void
moveEntry
(
lv::ProjectEntry
* item,
lv::ProjectEntry
* parent)
{slot} public void
renameEntry
(
lv::ProjectEntry
* item,const QString & newName)
{slot} public
lv::ProjectFile
*
addFile
(
lv::ProjectEntry
* parentEntry,const QString & name)
{slot} public
lv::ProjectFile
*
addTemporaryFile
()
{slot} public
lv::ProjectEntry
*
addDirectory
(
lv::ProjectEntry
* parentEntry,const QString & name)
{slot} public
lv::ProjectEntry
*
findPath
(const QString & path)
{slot} public bool
removeEntry
(
lv::ProjectEntry
* entry)
{slot} public void
expandEntry
(
lv::ProjectEntry
* entry) const
{slot} public void
rescanEntries
(
lv::ProjectEntry
* entry)
{slot} public
lv::ProjectEntry
*
itemAt
(const QModelIndex & index) const
{slot} public QModelIndex
itemIndex
(
lv::ProjectEntry
* entry)
{slot} public QString
printableName
(const QString & name)
enum
Roles
Values | Descriptions |
---|---|
UrlStringRole |