32 bool includeProtected,
bool includePublic)
43 for (TokenIdxSet::const_iterator it = parentToken->
m_Children.begin(); it != parentToken->
m_Children.end(); ++it)
46 const Token* token = tree->
at(idx);
99 XRCCTRL(*
this,
"rbCode",
wxRadioBox)->SetSelection(0);
100 XRCCTRL(*
this,
"wxID_OK",
wxButton)->SetDefault();
114 for (
size_t i = 0; i < clb->
GetCount(); ++i)
119 if (XRCCTRL(*
this,
"chkAddDoc",
wxCheckBox)->IsChecked())
122 str <<
_T(
"/** @brief (one liner)\n *\n * (documentation goes here)\n */\n");
126 array.
Add(str + (m_Decl ?
_T(
";\n") :
_T(
"\n{\n\t\n}\n\n")));
139 TokenTree* tree = m_Parser->GetTokenTree();
140 for (
size_t i = 0; i < tree->
size(); ++i)
147 lb->Append(token->
m_Name, token);
161 if (lb->GetSelection() == -1)
165 bool includeProtected = XRCCTRL(*
this,
"chkProtected",
wxCheckBox)->IsChecked();
166 bool includePublic = XRCCTRL(*
this,
"chkPublic",
wxCheckBox)->IsChecked();
168 Token* parentToken =
reinterpret_cast<Token*
>(lb->GetClientData(lb->GetSelection()));
174 parentToken ? parentToken->
m_Name +
_T(
"::") :
_T(
""),
189 m_Decl = XRCCTRL(*
this,
"rbCode",
wxRadioBox)->GetSelection() == 0;
TokenTree * GetTree() const
get the TokenTree associated with the current Token
destructor class member function
void OnCodeChange(wxCommandEvent &event)
constructor class member function
wxString m_Name
Token's name, it can be searched in the TokenTree.
typedef, note typedefs are stored as classes inheriting from the typedef'd type, this takes advantage...
virtual wxString GetString(unsigned int n) const
a container class to hold all the Tokens getting from parsing stage
TokenIdxSet m_Children
if it is a class kind token, then it contains all the member tokens
size_t size()
total size of std::vector<Token*>
bool IsChecked(unsigned int item) const
virtual ~InsertClassMethodDlg()
TokenScope m_Scope
public? private? protected?
void RecalcInheritanceChain(Token *token)
convert the Token's ancestor string to it's IDs this contains recursive calls, for example in such co...
virtual int FindString(const wxString &s, bool bCase=false) const
a symbol found in the parsed files, it can be many kinds, such as a variable, a class and so on...
size_t Replace(const wxString &strOld, const wxString &strNew, bool replaceAll=true)
wxArrayString GetCode() const
void OnClassesChange(wxCommandEvent &event)
void OnFilterChange(wxCommandEvent &event)
TokenKind m_TokenKind
See TokenKind class.
general function, not constructor nor destructor
size_t Add(const wxString &str, size_t copies=1)
static wxXmlResource * Get()
wxString m_FullType
this is the full return value (if any): e.g.
void DoFillMethodsFor(wxCheckListBox *clb, Token *parentToken, const wxString &ns, bool includePrivate, bool includeProtected, bool includePublic)
TokenIdxSet m_DirectAncestors
the nearest ancestors
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)
virtual unsigned int GetCount() const