Re: Adding some functionality...
"Arthur Barrett" <arthur.barrett-qn/[email protected]> Tue, 14 Feb 2012 09:12:01 +1100
| Newsgroups | gmane.comp.version-control.cvs.tortoisecvs.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============3690577397083049195== content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CCEA9C.82C96A1C" This is a multi-part message in MIME format. ------_=_NextPart_001_01CCEA9C.82C96A1C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Sebastian, =20 I suggest you use the debugger in MS visual studio. Just set the debugger to start: =20 tortoiseact.exe CVSAdd -l d:\ =20 Then set a breakpoint where the add dialog is created, and step through. You'll see exactly how the code works. =20 =20 If you've not used a debugger before, get someone (your teacher?) at the school to give you a 5 minute introduction. =20 Also if you can reproduce the crashes while running in debug, you will find the line of code it crashes on (visual studio will show it to you). Once you know where it crashes you can fix it and submit a patch. Bugs and patches should be reported here: http://sourceforge.net/tracker/?group_id=3D48103&atid=3D451972 =20 Regards, =20 =20 Arthur Barrett =20 -----Original Message----- From: Sebastian Andersson [mailto:[email protected]]=20 Sent: Monday, 13 February 2012 7:26 PM To: tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: [TortoiseCVS] Adding some functionality... =09 =09 Hello! =09 I have been trying to add some functionality to TortoiseCVS (as a school project, but if it turns out to be great I would love to share it). The goal is creating a Search screen that enables the user search through files in a folder for e.g author name or changedates/createddates. The overall look could be very similair to the "Add Contents" dialog, which was my starting point in learning how the code was set up. I have successfully managed to edit the menu to show a Search-dialog option which when selected starts a almost identical dialog to the AddContents dialog.=20 =09 Now I wanted to have ALL folders in the Root (the folder where I started Tortoise in) to show up in the left panel gui-tree, and all files in the selected folder to show in the right list panel. However currently, as the Add-contents dialog only want to show files NOT in the repository, the gui-tree (ofcourse) only shows the folders that have files addable in them. I have tried to figure out how this exactly works, but have failed. In my mind, somewhere in the code it should check whether a folder contains files that are not in the repository, but this location in the code is not obvious. There seems to be a long sequence of events that determine what folders appear in the gui-tree. Some folders are excluded at the creating of the FileTree and some are excluded at the next step when creating the gui-tree, which is very confusing. Any hints on this would be very helpful. In my case, I want ALL folders to be visible. =09 I do not understand what "Enabled" and "Selected" means, which a treeData can have both of, can someone explain? =09 Also, there seems to be a bug in the Add Content dialog: If you click the column head (the top of the column that sorts the ctrl-list) twice on the same column (to re-sort ascending/descending) and that column only contains one type of entry you will get a crash. E.g: A folder contains two addable files, both of which are of Format=3DBinary, you click to sort after Format and after two clicks (sometimes even one) you get a crash. This is regardless of what column it is (Add, Keywords, Type, etc). =09 Very thankful of any help and tips! =09 Best regards, Sebastian =09 =09 =09 ------_=_NextPart_001_01CCEA9C.82C96A1C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <STYLE>.hmmessage P { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: = 0px; PADDING-TOP: 0px } BODY.hmmessage { FONT-SIZE: 10pt; FONT-FAMILY: Tahoma } </STYLE> <META content=3D"MSHTML 6.00.3790.4426" name=3DGENERATOR></HEAD> <BODY class=3Dhmmessage> <DIV><FONT face=3DArial color=3D#0000ff><SPAN = class=3D579210022-13022012>Hi=20 Sebastian,</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN = class=3D579210022-13022012>I suggest you=20 use the debugger in MS visual studio. = </SPAN></FONT><FONT=20 face=3DArial color=3D#0000ff><SPAN class=3D579210022-13022012>Just set = the debugger to=20 start:</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012></SPAN></FONT> </DIV> <DIV><FONT face=3D"Courier New"><SPAN = class=3D579210022-13022012> =20 tortoiseact.exe CVSAdd -l d:\</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN = class=3D579210022-13022012>Then set a=20 breakpoint where the add dialog is created, and step through. = You'll see=20 exactly how the code works. </SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN = class=3D579210022-13022012>If you've not=20 used a debugger before, get someone (your teacher?) at the school to = give you a=20 5 minute introduction.</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN = class=3D579210022-13022012>Also if you=20 can reproduce the crashes while running in debug, you will find the line = of code=20 it crashes on (visual studio will show it to you). Once you know = where it=20 crashes you can fix it and submit a patch. Bugs and patches should = be=20 reported here:</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN = class=3D579210022-13022012><A=20 href=3D"http://sourceforge.net/tracker/?group_id=3D48103&atid=3D45197= 2">http://sourceforge.net/tracker/?group_id=3D48103&atid=3D451972</A>= </SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012>Regards,</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN = class=3D579210022-13022012>Arthur=20 Barrett</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff><SPAN=20 class=3D579210022-13022012> </SPAN></FONT></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = align=3Dleft><FONT=20 face=3DTahoma>-----Original Message-----<BR><B>From:</B> Sebastian = Andersson=20 [mailto:[email protected]] <BR><B>Sent:</B> Monday, 13 February 2012 = 7:26=20 PM<BR><B>To:</B> = tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<BR><B>Subject:</B>=20 [TortoiseCVS] Adding some functionality...<BR><BR></FONT></DIV> <DIV dir=3Dltr>Hello!<BR><BR>I have been trying to add some = functionality to=20 TortoiseCVS (as a school project, but if it turns out to be great I = would love=20 to share it). The goal is creating a Search screen that enables the = user=20 search through files in a folder for e.g author name or=20 changedates/createddates. The overall look could be very similair to = the "Add=20 Contents" dialog, which was my starting point in learning how the code = was set=20 up. I have successfully managed to edit the menu to show a = Search-dialog=20 option which when selected starts a almost identical dialog to the = AddContents=20 dialog. <BR><BR>Now I wanted to have ALL folders in the Root (the = folder where=20 I started Tortoise in) to show up in the left panel gui-tree, and all = files in=20 the selected folder to show in the right list panel. However = currently, as the=20 Add-contents dialog only want to show files NOT in the repository, the = gui-tree (ofcourse) only shows the folders that have files addable in = them. I=20 have tried to figure out how this exactly works, but have failed. In = my mind,=20 somewhere in the code it should check whether a folder contains files = that are=20 not in the repository, but this location in the code is not obvious. = There=20 seems to be a long sequence of events that determine what folders = appear in=20 the gui-tree. Some folders are excluded at the creating of the = FileTree and=20 some are excluded at the next step when creating the gui-tree, which = is very=20 confusing. Any hints on this would be very helpful. In my case, I want = ALL=20 folders to be visible.<BR><BR>I do not understand what "Enabled" and=20 "Selected" means, which a treeData can have both of, can someone=20 explain?<BR><BR>Also, there seems to be a bug in the Add Content = dialog: If=20 you click the column head (the top of the column that sorts the = ctrl-list)=20 twice on the same column (to re-sort ascending/descending) and that = column=20 only contains one type of entry you will get a crash. E.g: A folder = contains=20 two addable files, both of which are of Format=3DBinary, you click to = sort after=20 Format and after two clicks (sometimes even one) you get a crash. This = is=20 regardless of what column it is (Add, Keywords, Type, = etc).<BR><BR>Very=20 thankful of any help and tips!<BR><BR>Best=20 regards,<BR>Sebastian<BR><BR><BR></DIV></BLOCKQUOTE></BODY></HTML> ------_=_NextPart_001_01CCEA9C.82C96A1C-- --===============3690577397083049195== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 --===============3690577397083049195== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ tortoisecvs-users mailing list tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/tortoisecvs-users --===============3690577397083049195==--