Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
ThreadSearch 0.7 release
Pecan:
--- Quote from: Pecan on July 01, 2007, 08:49:33 pm ---
--- Quote from: dje on July 01, 2007, 07:39:59 pm ---I never saw that on my Ubuntu 6.10.
Maybe should I use a "real" size instead of wxDefaultSize...
EDIT : can you undock it and resize it ?
Dje
--- End quote ---
Here it is undocked and with the downArrow clicked.
Would you like me to change anything?
--- End quote ---
I put a debug statement as follow:
--- Code: ---bool ThreadSearch::BuildToolBar(wxToolBar* toolBar)
....
toolBar->Realize();
#if wxCHECK_VERSION(2, 8, 0)
toolBar->SetInitialSize();
#else
toolBar->SetBestFittingSize();
#endif
int x, y;
m_pCboSearchExpr->GetSize(&x,&y);
DBGLOG(wxT("ThreadSearch ToolBar Size[%d][%d]"), x, y);
....
--- End code ---
and got the following result:
[17:03:45.742]: ThreadSearch ToolBar Size[100][25]
Is this a little small for a wxcombo box? I though 25 pixels is almost closed.
dje:
Hi !
I wrote a wiki page for the ThreadSearch plugin.
@Pecan
Thanks for project and for Linux investigation.
I'll try to see on my 6.10 tomorrow.
Bye :)
dje:
Hi all !
@dmoore
--- Quote from: dmoore on June 29, 2007, 05:11:22 pm ---I realize that search in file isn't possible, but just left it in to show the possibilities (I did take out the more complex multiple file/directory targets, which sends a list of a space separated files and directories that the user selected before right clicking)
--- End quote ---
It is quite easy to manage a list of items instead of one directory. I'd choose a '*' instead of space for separator because '*' can't be used in paths and avoid problems with 'Program files' or others.
Technically, nothing seems really difficult but:
Once you right-clicked an item, how do you get search text ? Sould it activate window, fill the directory path, check directory search check box and set focus to combo to set the search text ?
I think it would be the best solution, so that user has less to do. Moreover, it let him choose the configuration he wants to use and we do not have to merge FindData with current one (I don't know if I would appreciate to have my settings altered by the file explorer contextual menu call).
What do you think about that ?
--- Quote from: dmoore on June 29, 2007, 05:11:22 pm ---btw, it could have been something I did wrong, but I was getting a crash on exit (even without starting up a threadsearch)
--- End quote ---
I never had this problem. Could you be more precise on context ? Do you have any crash report ?
Dje
dmoore:
--- Quote from: dje on July 02, 2007, 11:16:21 am ---
--- Quote from: dmoore on June 29, 2007, 05:11:22 pm ---I realize that search in file isn't possible, but just left it in to show the possibilities (I did take out the more complex multiple file/directory targets, which sends a list of a space separated files and directories that the user selected before right clicking)
--- End quote ---
It is quite easy to manage a list of items instead of one directory. I'd choose a '*' instead of space for separator because '*' can't be used in paths and avoid problems with 'Program files' or others.
--- End quote ---
yeah i guess that will save putting the names in quotes. to handle this case, your buildmodulemenu should look like this:
--- Code: ---void InterpretedLangs::BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data)
{
...
if(type==mtUnknown) //Assuming file explorer -- fileexplorer fills the filetreedata with ftdkFile or ftdkFolder as "kind", the folder is the full path of the entry
{
if(data && data->GetKind()==FileTreeData::ftdkVirtualGroup) //right clicked on multiple selections in file explorer
{
wxString paths=data->GetFolder(); //get folder contains a space separated list of the files/directories
...
}
--- End code ---
--- Quote ---Technically, nothing seems really difficult but:
Once you right-clicked an item, how do you get search text ? Sould it activate window, fill the directory path, check directory search check box and set focus to combo to set the search text ?
--- End quote ---
yes, that is how I would do it.
--- Quote ---
--- Quote from: dmoore on June 29, 2007, 05:11:22 pm ---btw, it could have been something I did wrong, but I was getting a crash on exit (even without starting up a threadsearch)
--- End quote ---
I never had this problem. Could you be more precise on context ? Do you have any crash report ?
Dje
--- End quote ---
hasn't happened since so most likely was something i was doing wrong. If it happens again I'll post the report.
tiwag:
since i've updated to ThreadSearch 0.7, the contextmenu item "find occurrences of"
isn't longer grouped with the codecompletion "find declaration / implementation" menu items.
see screenshot
any workaround known?
brgds, tiwag
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version