72 virtual void onStateChanged(
bool state);
74 void insertDocstring(
const QTextCursor &cursor,
const QString "es =
"\"\"\"",
bool insertOpeningQuotes =
true,
int overwriteEndLineIdx = -1)
const;
75 QSharedPointer<OutlineItem> getOutlineOfLineIdx(
int lineIdx)
const;
77 Style docstringStyle()
const {
return m_docstringStyle; }
78 void setDocstringStyle(
const Style &style) { m_docstringStyle = style; }
85 const QString& name =
"",
86 const QString& type =
"",
87 const QString& defaultValue =
"",
bool isOptional =
false) :
90 m_defaultValue(defaultValue),
91 m_isOptional(isOptional)
98 QString m_defaultValue;
110 QList<ArgInfo> m_args;
111 QList<QString> m_returnTypes;
113 QList<QString> m_raises;
116 int lastLineIdxOfDefinition(
const QSharedPointer<OutlineItem> &item)
const;
117 FunctionInfo parseFunctionInfo(
const QSharedPointer<OutlineItem> &item,
int lastLineIdxOfDefinition)
const;
118 void parseArgList(
const QSharedPointer<OutlineItem> &item,
FunctionInfo &info)
const;
119 QString generateGoogleDoc(
const QSharedPointer<OutlineItem> &item,
const FunctionInfo &info,
int &cursorPos)
const;
120 QString generateNumpyDoc(
const QSharedPointer<OutlineItem> &item,
const FunctionInfo &info,
int &cursorPos)
const;
122 QSharedPointer<QMenu> m_popupMenu;
123 Style m_docstringStyle;
124 int m_overwriteEndLineIndex;
127 void onKeyPressed(QKeyEvent *e);
128 void mnuInsertDocstring();