diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2011-05-26 18:09:17 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-05-27 08:44:13 +0200 |
commit | 8e84872ace9ccab8e9a3467d8bcce2e5cd0474d5 (patch) | |
tree | 49674d1c2ab49d322446c3bb37545c7455f9b765 /src/plugins/texteditor/codeassist/iassistproposal.cpp | |
parent | 5647e67762d078358bac62042f1b066c7cfa87fd (diff) | |
download | qt-creator-8e84872ace9ccab8e9a3467d8bcce2e5cd0474d5.tar.gz |
Documentation: Code assist API
Change-Id: Id703725708823edc24171f7c1b28befe99032d63
Reviewed-on: http://codereview.qt.nokia.com/154
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/codeassist/iassistproposal.cpp')
-rw-r--r-- | src/plugins/texteditor/codeassist/iassistproposal.cpp | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/src/plugins/texteditor/codeassist/iassistproposal.cpp b/src/plugins/texteditor/codeassist/iassistproposal.cpp index ba7a2fd514..e082f6c762 100644 --- a/src/plugins/texteditor/codeassist/iassistproposal.cpp +++ b/src/plugins/texteditor/codeassist/iassistproposal.cpp @@ -35,8 +35,21 @@ using namespace TextEditor; /*! - \class IAssistProposal - \brief The IAssistProposal is an interface for representing an assist proposal. + \group CodeAssist + \title Code Assist for Editors + + These classes are used to provide code assist support such as completions and refactoring + actions for editors. + + Completions can be of a variety of kind like function hints, snippets, and regular + context-aware content. The later are usually represented by semantic proposals, but + it is also possible that they are simply plain text as supported in the fake vim mode. +*/ + +/*! + \class TextEditor::IAssistProposal + \brief The IAssistProposal class acts as an interface for representing an assist proposal. + \ingroup CodeAssist Known implenters of this interface are FunctionHintProposal and GenericProposal. The former is recommended to be used when assisting function call constructs (overloads @@ -44,6 +57,8 @@ using namespace TextEditor; snippets, refactoring operations (quickfixes), and contextual content (the member of class or a string existent in the document, for example). + This class is part of the CodeAssist API. + \sa IAssistProposalWidget, IAssistModel */ @@ -54,7 +69,7 @@ IAssistProposal::~IAssistProposal() {} /*! - \fn bool isFragile() const + \fn bool TextEditor::IAssistProposal::isFragile() const Returns whether this is a fragile proposal. When a proposal is fragile it means that it will be replaced by a new proposal in the case one is created, even if due to an @@ -62,13 +77,13 @@ IAssistProposal::~IAssistProposal() */ /*! - \fn int basePosition() const + \fn int TextEditor::IAssistProposal::basePosition() const Returns the position from which this proposal starts. */ /*! - \fn bool isCorrective() const + \fn bool TextEditor::IAssistProposal::isCorrective() const Returns whether this proposal is also corrective. This could happen in C++, for example, when a dot operator (.) needs to be replaced by an arrow operator (->) before the proposal @@ -76,13 +91,13 @@ IAssistProposal::~IAssistProposal() */ /*! - \fn void makeCorrection(BaseTextEditor *editor) + \fn void TextEditor::IAssistProposal::makeCorrection(BaseTextEditor *editor) This allows a correction to be made in the case this is a corrective proposal. */ /*! - \fn IAssistModel *model() const + \fn IAssistModel *TextEditor::IAssistProposal::model() const Returns the model associated with this proposal. @@ -93,7 +108,7 @@ IAssistProposal::~IAssistProposal() */ /*! - \fn IAssistProposalWidget *createWidget() const + \fn IAssistProposalWidget *TextEditor::IAssistProposal::createWidget() const Returns the widget associated with this proposal. The IAssistProposalWidget implementor recommended for function hint proposals is FunctionHintProposalWidget. For snippets, |