[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [PATCH] rapidsvn: Make svn folders look different from normal folders

From: Peter Johnson <peterj_at_nec.com.au>
Date: 2002-07-29 05:36:31 CEST

Hi Brent

I had a feeling Outlook would do that. Attached are the two diffs.

Regards
Peter

> -----Original Message-----
> From: Brent R. Matzelle [mailto:bmatzelle@yahoo.com]
> Sent: Monday, July 29, 2002 11:28 AM
> To: dev@subversion.tigris.org
> Subject: Re: [PATCH] rapidsvn: Make svn folders look different from
normal
> folders
>
> Hello Peter,
>
> Thanks for the patch. One thing though. It appears that your mail
> client word-wrapped the diff and patch doesn't like it. Please send
> me the patch as an attachment.
>
> Regards,
>
> Brent
>
> --- Peter Johnson <peterj@nec.com.au> wrote:
> > Here's a patch that addresses the only entry in the rapidsvn TODO
> > list.
> >
> > Versioned SVN folders are displayed using a different icon.
> >
> > This is shown in the file list of the right hand pane.
> > I have attached the new icons. Sorry, I don't know where XPM
> > bitmaps are
> > used and can't test the Unix/Linux build.
> > Please uncompress them into rapidsvn/src/res/bitmaps
> >
> > * rapidsvn/src/filelist_ctrl.cpp
> > (FileListCtrl::UpdateFileList): SVN folders are shown with a
> > different
> > icon.
> >
> > * rapidsvn/src/rapidsvn.rc
> > Added a new folder icon to represent SVN versioned folders.
> >
> > Index: ./filelist_ctrl.cpp
> > ===================================================================
> > --- ./filelist_ctrl.cpp
> > +++ ./filelist_ctrl.cpp Sun Jul 28 19:54:54 2002
> > @@ -12,7 +12,7 @@
> > * Number of items in the IMAGE_INDEX table.
> > * This should be large enough to include the range of status
> > codes.
> > */
> > -#define N_STATUS_KIND 20
> > +#define N_STATUS_KIND 21
> >
> > /**
> > * The index from where there will be only images not related
> > @@ -20,7 +20,8 @@
> > */
> > #define N_START_EXTRA_IMGS 15
> >
> > -#define IMG_INDX_FOLDER N_START_EXTRA_IMGS
> > +#define IMG_INDX_FOLDER
> > N_START_EXTRA_IMGS
> > +#define IMG_INDX_VERSIONED_FOLDER (N_START_EXTRA_IMGS + 1)
> >
> > /**
> > * This table holds information about image index in a image list.
> > @@ -60,6 +61,7 @@
> > m_imageListSmall->Add( wxICON(conflicted_file) );
> >
> > m_imageListSmall->Add( wxICON(folder) );
> > + m_imageListSmall->Add( wxICON(versioned_folder) );
> >
> > // set the indexes
> > IMAGE_INDEX[svn_wc_status_none] = 0;
> > @@ -74,6 +76,7 @@
> > IMAGE_INDEX[svn_wc_status_conflicted] = 8;
> >
> > IMAGE_INDEX[IMG_INDX_FOLDER] = 9;
> > + IMAGE_INDEX[IMG_INDX_VERSIONED_FOLDER] = 10;
> >
> > // set this file list control to use the image list
> > this->SetImageList( m_imageListSmall, wxIMAGE_LIST_SMALL );
> > @@ -123,7 +126,16 @@
> > if( name != ".." && name != SVN_WC_ADM_DIR_NAME
> > ) // not the parent directory
> > {
> > if( wxDirExists( f ) ) // a
> > directory
> > - InsertItem( i, name,
> > IMAGE_INDEX[IMG_INDX_FOLDER] );
> > + {
> > + if( SVN_IS_VALID_REVNUM(
> > file_info.getRevision() ) )
> > + {
> > + InsertItem( i, name,
> > IMAGE_INDEX[IMG_INDX_VERSIONED_FOLDER] );
> > + }
> > + else
> > + {
> > + InsertItem( i, name,
> > IMAGE_INDEX[IMG_INDX_FOLDER] );
> > + }
> > + }
> > else
>
> > InsertItem( i, name,
> > IMAGE_INDEX[file_info.getFileStatus()] );
> >
> >
> > Index: ./rapidsvn.rc
> > ===================================================================
> > --- ./rapidsvn.rc
> > +++ ./rapidsvn.rc Sun Jul 28 18:09:44 2002
> > @@ -14,6 +14,7 @@
> > conflicted_file ICON
> > "res/bitmaps/conflicted_file.ico"
> >
> > folder ICON
> "res/bitmaps/folder.ico"
> > +versioned_folder ICON "res/bitmaps/versioned_folder.ico"
> >
> >
> > refresh BITMAP
> > "res/bitmaps/refresh.bmp"
> >
>
> > ATTACHMENT part 2 application/x-compressed name=verfolder.zip
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Mon Jul 29 04:38:18 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.