From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../visual_studio_macros/?sortby=author/index.html | 119 ++++++ .../visual_studio_macros/?sortby=date/index.html | 119 ++++++ .../code/tool/visual_studio_macros/autoexp.dat | 154 ++++++++ .../x-cvsweb-markup/index.html | Bin 0 -> 56687 bytes .../code/tool/visual_studio_macros/doxbar.dll | 134 +++++++ .../x-cvsweb-markup/index.html | 422 +++++++++++++++++++++ .../visual_studio_macros/nevrax_macros_howto.txt | 225 +++++++++++ .../visual_studio_macros/nevrax_macros_ryzom.dsm | 164 ++++++++ .../code/tool/visual_studio_macros/usertype.dat | 164 ++++++++ 9 files changed, 1501 insertions(+) create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/?sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/?sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/autoexp.dat create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/doxbar.chm?rev=1.1&content-type=text/x-cvsweb-markup/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/doxbar.dll create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros.dsm?rev=1.19&content-type=text/x-cvsweb-markup/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros_howto.txt create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros_ryzom.dsm create mode 100644 cvs/cvsweb.cgi/code/tool/visual_studio_macros/usertype.dat (limited to 'cvs/cvsweb.cgi/code/tool/visual_studio_macros') diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/?sortby=author/index.html b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/?sortby=author/index.html new file mode 100644 index 00000000..8c212725 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/?sortby=author/index.html @@ -0,0 +1,119 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + + +
Nevrax / code / tool / visual_studio_macros
+ + + + + + + + + + + + + + +
FileRev.AgeAuthorLast log entry
[BACK] + Previous Directory +    
[DIR] + Attic/[Don't hide]    
[TXT] + nevrax_macros.dsm + 1.19  4 months cado  ADDED 2002 +
[TXT] + nevrax_macros_98.dsm + 1.18  4 months cado  ADDED 2002 +
[TXT] + nevrax_macros_howto.txt + 1.10  12 months cado  #quickfix +
[TXT] + nevrax_macros_ryzom.dsm + 1.4  4 months cado  ADDED 2002 +
[TXT] + autoexp.dat + 1.3  11 months lecroart  ADDED: stringstream display +
[TXT] + doxbar.chm + 1.1  15 months lecroart  no message +
[TXT] + doxbar.dll + 1.1  15 months lecroart  no message +
[TXT] + usertype.dat + 1.4  12 months lecroart  no message +

+ +Show only files with tag: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/?sortby=date/index.html b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/?sortby=date/index.html new file mode 100644 index 00000000..634704b1 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/?sortby=date/index.html @@ -0,0 +1,119 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + + +
Nevrax / code / tool / visual_studio_macros
+ + + + + + + + + + + + + + +
FileRev.AgeAuthorLast log entry
[BACK] + Previous Directory +    
[DIR] + Attic/[Don't hide]    
[TXT] + nevrax_macros.dsm + 1.19  5 months cado  ADDED 2002 +
[TXT] + nevrax_macros_98.dsm + 1.18  5 months cado  ADDED 2002 +
[TXT] + nevrax_macros_ryzom.dsm + 1.4  5 months cado  ADDED 2002 +
[TXT] + autoexp.dat + 1.3  12 months lecroart  ADDED: stringstream display +
[TXT] + usertype.dat + 1.4  13 months lecroart  no message +
[TXT] + nevrax_macros_howto.txt + 1.10  13 months cado  #quickfix +
[TXT] + doxbar.chm + 1.1  16 months lecroart  no message +
[TXT] + doxbar.dll + 1.1  16 months lecroart  no message +

+ +Show only files with tag: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/autoexp.dat b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/autoexp.dat new file mode 100644 index 00000000..7d6b223b --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/autoexp.dat @@ -0,0 +1,154 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + +
Nevrax / code / tool / visual_studio_macros / autoexp.dat
+ + + + + +
autoexp.dat
+

+

Default branch: MAIN
+


+ Revision 1.3 / (download) - annotate - [select for diffs] +, Mon Jun 18 16:08:57 2001 UTC (12 months, 2 weeks ago) by lecroart +
Branch: MAIN + +
CVS Tags: HEAD +
Changes since 1.2: +1 -0 + lines
Diff to previous 1.2 +

+ADDED: stringstream display
+
+

+ Revision 1.2 / (download) - annotate - [select for diffs] +, Wed May 30 12:41:49 2001 UTC (13 months ago) by lecroart +
Branch: MAIN + +
Changes since 1.1: +1 -1 + lines
Diff to previous 1.1 +

+no message
+
+

+ Revision 1.1 / (download) - annotate - [select for diffs] +, Wed May 30 12:39:31 2001 UTC (13 months ago) by cado +
Branch: MAIN + +
Diff

+Added autoexp.dat for easy debugging
+
+ + + + + +
Request Diffs
+

+

+

+Diffs between + + + and + + +
Type of Diff should be a  +
+ + + + + +
Select branch
+

+

+ +

+View only Branch: + + +
+ +
+Sort log by: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/doxbar.chm?rev=1.1&content-type=text/x-cvsweb-markup/index.html b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/doxbar.chm?rev=1.1&content-type=text/x-cvsweb-markup/index.html new file mode 100644 index 00000000..bec1ed27 Binary files /dev/null and b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/doxbar.chm?rev=1.1&content-type=text/x-cvsweb-markup/index.html differ diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/doxbar.dll b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/doxbar.dll new file mode 100644 index 00000000..0aa05adc --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/doxbar.dll @@ -0,0 +1,134 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + +
Nevrax / code / tool / visual_studio_macros / doxbar.dll
+ + + + + +
doxbar.dll
+

+

Default branch: MAIN
+


+ Revision 1.1 / (download) - annotate - [select for diffs] +, Thu Feb 1 11:14:43 2001 UTC (16 months, 4 weeks ago) by lecroart +
Branch: MAIN + +
CVS Tags: HEAD +
Diff

+no message
+
+ + + + + +
Request Diffs
+

+

+

+Diffs between + + + and + + +
Type of Diff should be a  +
+ + + + + +
Select branch
+

+

+ +

+View only Branch: + + +
+ +
+Sort log by: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros.dsm?rev=1.19&content-type=text/x-cvsweb-markup/index.html b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros.dsm?rev=1.19&content-type=text/x-cvsweb-markup/index.html new file mode 100644 index 00000000..1b911c7b --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros.dsm?rev=1.19&content-type=text/x-cvsweb-markup/index.html @@ -0,0 +1,422 @@ + + + +code/tool/visual_studio_macros/nevrax_macros.dsm - view - 1.19 + +
[BACK] Return to nevrax_macros.dsm + CVS log [TXT][DIR] Up to Nevrax / code / tool / visual_studio_macros

File: Nevrax / code / tool / visual_studio_macros / nevrax_macros.dsm (download)
+Revision 1.19, Thu Jan 10 14:41:48 2002 UTC (5 months, 3 weeks ago) by cado +
Branch: MAIN +
CVS Tags: HEAD
Changes since 1.18: +3 -3 + lines
+ADDED 2002
+
+

' nevrax_macros.dsm
+'
+' Copyright (C) 2000-2002 Nevrax. All rights reserved.
+'
+' The redistribution, use and modification in source or binary forms of
+' this software is subject to the conditions set forth in the copyright
+' document ("Copyright") included with this distribution.
+'
+'------------------------------------------------------------------------------
+' FILE DESCRIPTION: Nevrax Visual Studio macro file
+' $Id: nevrax_macros.dsm,v 1.19 2002/01/10 14:41:48 cado Exp $
+'------------------------------------------------------------------------------
+
+
+' *** NevraxNewClass ***
+
+
+' NevraxInsertFileHeader
+' Utility Sub for NevraxNewClass()
+' Author : Olivier Cado
+Sub NevraxInsertFileHeader( filename, productname )
+        ActiveDocument.Selection.StartOfDocument
+        ActiveDocument.Selection = _
+                "/** \file " + filename + vbLf + _
+                " * <File description>" + vbLf + _
+                " *" + vbLf + _
+                " * $Id: nevrax_macros.dsm,v 1.19 2002/01/10 14:41:48 cado Exp $" + vbLf + _
+                " */" + vbLf + vbLf
+        ActiveDocument.Selection = _
+                "/* Copyright, 2000-2002 Nevrax Ltd." + vbLf + _
+                " *" + vbLf + _
+                " * This file is part of NEVRAX " + productname + "." + vbLf + _
+                " * NEVRAX " + productname + " is free software; you can redistribute it and/or modify" + vbLf + _
+                " * it under the terms of the GNU General Public License as published by" + vbLf + _
+                " * the Free Software Foundation; either version 2, or (at your option)" + vbLf + _
+                " * any later version." + vbLf + vbLf + _
+                " * NEVRAX " + productname + " is distributed in the hope that it will be useful, but" + vbLf + _
+                " * WITHOUT ANY WARRANTY; without even the implied warranty of" + vbLf + _
+                " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU" + vbLf + _
+                " * General Public License for more details." + vbLf + vbLf + _
+                " * You should have received a copy of the GNU General Public License" + vbLf + _
+                " * along with NEVRAX " + productname + "; see the file COPYING. If not, write to the" + vbLf + _
+                " * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston," + vbLf + _
+                " * MA 02111-1307, USA." + vbLf + _
+                " */" + vbLf
+End Sub
+
+
+Function IsUpCase( str )
+        IsUpcase = ( str = Ucase(str) )
+End Function
+
+
+' NevraxClassNameToFileName
+' Utility Function for NevraxNewClass()
+' 1/08/2000 : now analyses the first character
+' Author : Olivier Cado
+Function NevraxClassNameToFileName( classname )
+        beginningpos = 1
+        first = left(classname,1)
+        if ((first="C") or (first="E") or (first="I")) then
+                if len(classname)>1 then
+                        if IsUpCase( mid(classname,2,1) ) then
+                                beginningpos = 2
+                        end if
+                end if
+        end if
+        filename = lcase(mid(classname,beginningpos,1))
+        for i = beginningpos+1 to len( classname )
+                charact = mid(classname,i,1 )
+                if IsUpCase( charact ) then
+                        if i+1 <= len( classname ) then
+                                if not IsUpCase( mid(classname,i+1,1) ) then
+                                        filename = filename + "_"
+                                end if
+                        else
+                                filename = filename + "_"
+                        end if
+                end if
+                filename = filename + lcase(charact)
+        next
+        NevraxClassNameToFileName = filename
+End Function
+
+
+' NevraxProjectOpen
+' Utility Function for NevraxNewClass()
+' Author : Olivier Cado
+Function NevraxProjectOpen( projname )
+        found = 0
+        dim proj
+        for i = 1 to Projects.Count
+                if Projects(i).Name = projname then
+                        found = i
+                        exit for
+                end if
+        next
+        NevraxProjectOpen = found
+End Function
+
+
+' Global variable
+Dim CurrentDirectoryName
+Dim CurrentProgrammerName
+
+
+' NevraxNewClass
+' DESCRIPTION: Wizard for new class creation
+' 1/08/2000 : added input boxes for directories
+' 7/09/2000 : added programmer's name dialog and test for file existence (dirs & files)
+' 18/09/2000 : namespace, programmer's name saved in a file, file added to the right project
+' 12/10/2000 : modified output
+' Weird things :
+' - CreateObject( Scripting.FileSystemObject ) doesn't work on Win 98, but on 2000
+' - Projects.Item( string ) doesn't work. Using number instead
+' Author : Olivier Cado
+Sub NevraxNewClass()
+
+        ' ** Input class name and file name
+        ClassName = InputBox( "Bienvenue dans l'assistant de création de classe." + vbLf + vbLf + _
+                "Nom de la nouvelle classe :", "Nouvelle classe (1)" )
+        if ClassName = "" then
+                Exit Sub
+        end if
+        Filename = NevraxClassNameToFileName( ClassName )
+        ' Warning: do not enter an existing filename, or MsDev will crash when attempting to save
+        Filename = InputBox( "Nom de fichier sans l'extension:", "Nouvelle classe (2)", Filename )
+        if Filename = "" then
+                Exit Sub
+        end if
+        UniqueName = "NL_" + UCase( Filename ) + "_H"
+        HFilename = Filename + ".h"
+        CppFilename = Filename + ".cpp"
+
+        ' Load configuration
+        dim fso
+        set fso = CreateObject("Scripting.FileSystemObject")
+        ConfigFileName = "R:\code\tool\visual_studio_macros\nevrax_new_class.cfg"
+        if fso.FileExists( ConfigFileName ) then
+                set f = fso.OpenTextFile( ConfigFileName, 1 ) ' 1 = ForReading
+                'if CurrentProgrammerName = "" then
+                        CurrentProgrammerName = f.ReadLine
+                'else
+                '        CurrentProgrammerName = "Richard Stallman"
+                'end if
+                SrcDirectory = f.ReadLine
+                IncDirectory = f.ReadLine
+                f.Close
+        end if
+
+        ' ** Directories (NB: input boxes cannot be canceled in this part)
+        SrcDirectory = InputBox( "Répertoire racine (existant) des sources (.cpp)" + vbLf + "(ex: R:\code\nel\src pour NeL) :","Nouvelle classe (3)", SrcDirectory )
+        if SrcDirectory <> "" then
+                if right(SrcDirectory,1)<>"\" then
+                        SrcDirectory = SrcDirectory + "\"
+                end if
+        else
+                IncDirectory = ""
+        end if
+        IncDirectory = InputBox( "Répertoire racine (existant) des include (.h)" + vbLf + "(ex: R:\code\nel\include\nel pour NeL ; chaîne vide pour le même répertoire que les fichiers source ) :","Nouvelle classe (4)", IncDirectory )
+        if IncDirectory = "" then
+                IncDirectory = SrcDirectory
+        else
+                if (right(IncDirectory,1)<>"\") then
+                        IncDirectory = IncDirectory + "\"
+                end if
+        end if
+        CurrentDirectoryName = InputBox( "Nom du répertoire de travail (ex: misc)" + vbLf + "(existant dans " + SrcDirectory + _
+                " et dans " + IncDirectory + ")" + vbLf + "Ce nom restera mémorisé" + vbLf + "(chaîne vide pour pour un projet hors-NeL).", "Nouvelle classe (5)", CurrentDirectoryName )
+        if CurrentDirectoryName<>"" then
+                CurrentDirectoryDir = CurrentDirectoryName + "\"
+                Namesp = "NL" + ucase(CurrentDirectoryName)
+        end if
+        If InStr( IncDirectory, "nel" ) then
+                ProdName = "NEL"
+                ShortIncDir = "nel/" + CurrentDirectoryName + "/"
+        else
+                ProdName = "NeL Network Services" ' not Distributed Toolkit Components System anymore
+        end if
+
+        ' ** Check for file existence
+        FinalCPPdir = SrcDirectory + CurrentDirectoryDir
+        FinalHdir = IncDirectory + CurrentDirectoryDir
+        if not fso.FolderExists( FinalHdir ) then
+                MsgBox "Erreur : le répertoire " + FinalHdir + " n'existe pas !", vbExclamation
+                Exit Sub
+        end if
+        if not fso.FolderExists( FinalCPPdir ) then
+                MsgBox "Erreur : le répertoire " + FinalCPPdir + " n'existe pas !", vbExclamation
+                Exit Sub
+        end if
+        FinalCPPfilename = FinalCPPdir + CppFilename
+        FinalHfilename = FinalHdir + HFilename
+        if fso.FileExists( FinalHfilename ) then
+                MsgBox "Erreur : le fichier " + FinalHfilename + " existe déjà !", vbExclamation
+                Exit Sub
+        end if
+        if fso.FileExists( FinalCPPfilename ) then
+                MsgBox "Erreur : le fichier " + FinalCPPfilename + " existe déjà !", vbExclamation
+                Exit Sub
+        end if
+
+        ' ** Check for open project
+        if CurrentDirectoryName=""        then
+                AddToProject = 0
+        else
+                AddToProject = NevraxProjectOpen( CurrentDirectoryName )
+        end if
+
+        ' ** Programmer's name
+        CurrentProgrammerName = InputBox( "Votre prénom et votre nom (qui restera mémorisé dans un fichier) :", "Nouvelle classe (6)", CurrentProgrammerName )
+        if CurrentProgrammerName = "" then
+                Exit Sub
+        end if
+
+        ' Save configuration
+        set f = fso.OpenTextFile( ConfigFileName, 2, true ) ' 2 = ForWriting
+        f.WriteLine CurrentProgrammerName
+        f.WriteLine SrcDirectory
+        f.WriteLine IncDirectory
+        f.Close
+
+        ' ** Input ancestor class name and file name
+        NoAncestor = "NO BASE CLASS"
+        AncClassName = InputBox( "Nom de la classe de base :", "Nouvelle classe (7)", NoAncestor )
+        if AncClassName = "" then
+                Exit Sub
+        else
+                if AncClassName = NoAncestor then
+                        AncClassName = ""
+                else
+                        AncFilename = InputBox( "Nom de fichier (avec chemin) sans l'extension (ex: nel/misc/toto) :", "Nouvelle classe (8)" )
+                        if AncFileName = "" then
+                                Exit Sub
+                        end if
+                        AncHFilename = AncFilename + ".h"
+                        'if not fso.FileExists( AncHFilename ) then
+                        '        MsgBox "Attention : le fichier " + AncHFilename + " n'existe pas encore.", vbInformation
+                        'end if
+                end if
+        end if
+
+        ' ** Now write .cpp
+        Documents.Add( "Text" )
+        NevraxInsertFileHeader CppFilename, ProdName
+        ActiveDocument.Selection = vbLf + "#include """ + ShortIncDir + HFilename + """" + vbLf + vbLf + vbLf
+        if ( CurrentDirectoryName<>"" ) then
+                ActiveDocument.Selection = "namespace " + Namesp + " {" + vbLf + vbLf + vbLf
+        end if
+        ActiveDocument.Selection = "/*" + vbLf + _
+                " * Constructor" + vbLf + _
+                " */" + vbLf + _
+                ClassName + "::" + ClassName + "()" + vbLf + _
+                "{" + vbLf + _
+                "}" + vbLf + vbLf + vbLf
+        if ( CurrentDirectoryName<>"" ) then
+                ActiveDocument.Selection = "} // " + Namesp + vbLf
+        end if
+        ' Warning: ActiveDocument.Save raises an "Unknown error" if the directory does not exist"
+        ActiveDocument.Save( FinalCPPfilename )
+        if AddToProject=0 then
+                ActiveProject.AddFile( FinalCPPfilename )
+        else
+                Projects(AddToProject).AddFile( FinalCPPfilename )
+        end if
+
+        ' ** Now write .h
+        Documents.Add( "Text" )
+        NevraxInsertFileHeader HFilename, ProdName
+        ActiveDocument.Selection = vbLf + "#ifndef " + UniqueName + vbLf + _
+                "#define " + UniqueName + vbLf + vbLf
+        ActiveDocument.Selection = "#include ""nel/misc/types_nl.h""" + vbLf
+        if AncClassName <> "" then
+                ActiveDocument.Selection = "#include """ + AncHFilename + """" + vbLf
+        end if
+        if ( CurrentDirectoryName<>"" ) then
+                ActiveDocument.Selection = vbLf + vbLf + "namespace " + Namesp + " {" + vbLf
+        end if
+        ActiveDocument.Selection = vbLf + vbLf + _
+                "/**" + vbLf + _
+                " * <Class description>" + vbLf + _
+                " * \author " + CurrentProgrammerName + vbLf + _
+                " * \author Nevrax France" + vbLf + _
+                " * \date 2002" + vbLf + _
+                " */" + vbLf + _
+                "class " + ClassName
+        if AncClassName <> "" then
+                ActiveDocument.Selection = " : public " + AncClassName
+        end if
+        ActiveDocument.Selection = vbLf + _
+                "{" + vbLf + _
+                "public:" + vbLf + vbLf + _
+                "        /// Constructor" + vbLf + _
+                "        " + ClassName + "();" + vbLf + vbLf + _
+                "};" + vbLf + vbLf
+        if ( CurrentDirectoryName<>"" ) then
+                ActiveDocument.Selection = vbLf + "} // " + Namesp + vbLf + vbLf
+        end if
+        ActiveDocument.Selection = vbLf + "#endif // " + UniqueName + vbLf
+        ActiveDocument.Selection = vbLf + "/* End of " + HFilename + " */" + vbLf
+        ' Warning: ActiveDocument.Save raises an "Unknown error" if the directory does not exist"
+        ActiveDocument.Save( FinalHfilename )
+        if AddToProject=0 then
+                ActiveProject.AddFile( FinalHfilename )
+        else
+                Projects(AddToProject).AddFile( FinalHfilename )
+        end if
+
+End Sub
+
+' *** End of NevraxNewClass ***
+
+
+' ** NevraxToggleHCPP
+
+' NevraxToggleHCPP
+' DESCRIPTION: Opens the .cpp or .h file (toggles) for the current document.
+' TIP: Bind this macro to Ctrl+<
+' Last modification : 22/05/2001
+' Author : Olivier Cado
+Sub NevraxToggleHCPP()
+
+        ' ** Get filename extension and ensure it is .h or .cpp
+        ActFilename = ActiveDocument.FullName
+        pos = InstrRev( ActFilename, "." )
+        if ( pos <> 0 ) then
+                Ext = mid(ActFilename,pos)                
+                if (Ext<>".h" and Ext<>".cpp") then
+                        msgbox( "Error : Active document is not a .cpp or .h file" )
+                        exit sub
+                end if
+        else
+                exit sub
+        end if
+        
+        ' ** Build the alternative filename
+
+        ' The module name is the word between the two last backslashes of the path\filename
+        ModuleDir = left( ActFilename, InstrRev(ActFilename,"\")-1 )
+        ModuleDir = mid( ModuleDir, InstrRev(ModuleDir, "\")+1 ) + "\"
+
+        dim SearchDirs (4)
+        if ( Ext = ".cpp" ) then
+                SearchDirs(1) = "R:\code\nel\include\nel\" + ModuleDir
+                SearchDirs(2) = "R:\code\nel\include_private\nel\" + ModuleDir
+                SearchDirs(3) = left( ActFilename, InstrRev(ActFilename,"\") ) 'dir of the current file
+                NbDirs = 3
+                Ext = "h"
+        else
+                SearchDirs(1) = "R:\code\nel\src\" + ModuleDir
+                SearchDirs(2) = left( ActFilename, InstrRev(ActFilename,"\") ) 'dir of the current file
+                NbDirs = 2
+                Ext = "cpp"
+        end if
+        DirIndex = 1
+        FileFound = False
+        Dirs = ""
+        while (DirIndex <= NbDirs) and (FileFound = False)
+                ' NeL directory scheme
+                if InStr(ActFilename,"nel")<>0 then
+                        ' Add the search path and the filename
+                        NewFilename = SearchDirs(DirIndex)
+                        ShortFilenameDot = mid( ActFilename, InstrRev(ActFilename,"\")+1 )
+                else
+                        ' The complete filename
+                        ShortFilenameDot = ActFilename
+                end if
+                ShortFilenameDot = left( ShortFilenameDot, Instr(ShortFilenameDot,".") )
+                NewFilename = NewFilename + ShortFilenameDot + Ext
+ 
+                ' ** Open the alternative file
+                dim fso
+                set fso = CreateObject("Scripting.FileSystemObject")
+                if fso.FileExists( NewFilename ) then
+                        Documents.Open( NewFilename )
+                        FileFound = True
+                else
+                        Dirs = Dirs + SearchDirs(DirIndex) + vbLf
+                        DirIndex = DirIndex + 1
+                end if
+        wend
+        if FileFound <> True then
+                MsgBox "There is no file " + ShortFilenameDot + Ext + " in " + vbLf + Dirs
+        end if
+End Sub
+
+
+' ** NevraxToggleHCPP
+
+
+' NevraxFormatMethodHeader
+' DESCRIPTION: Edit a Doxygen .h style method header for a .cpp file.
+' The caret must be a the beginning of the first line of the header.
+' Author : Olivier Cado
+Sub NevraxFormatMethodHeader()
+        ActiveDocument.Selection.Delete
+        ActiveDocument.Selection.CharRight
+        ActiveDocument.Selection.Delete 2
+        ActiveDocument.Selection = "*" + vbLf + " *"
+        ActiveDocument.Selection.EndOfLine
+        ActiveDocument.Selection = vbLf + " */"
+        ActiveDocument.Selection.LineDown
+        ActiveDocument.Selection.Delete
+        ActiveDocument.Selection.EndOfLine
+        ActiveDocument.Selection.Backspace
+        ActiveDocument.Selection = vbLf + "{" + vbLf + vbLf + "}" + vbLf
+        ActiveDocument.Selection.LineDown dsMove,2
+End Sub
+
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros_howto.txt b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros_howto.txt new file mode 100644 index 00000000..595901be --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros_howto.txt @@ -0,0 +1,225 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + +
Nevrax / code / tool / visual_studio_macros / nevrax_macros_howto.txt
+ + + + + +
nevrax_macros_howto.txt
+

+

Default branch: MAIN
+


+ Revision 1.10 / (download) - annotate - [select for diffs] +, Tue May 22 12:08:47 2001 UTC (13 months, 1 week ago) by cado +
Branch: MAIN + +
CVS Tags: HEAD +
Changes since 1.9: +5 -5 + lines
Diff to previous 1.9 +

+#quickfix
+
+

+ Revision 1.9 / (download) - annotate - [select for diffs] +, Tue May 22 12:04:32 2001 UTC (13 months, 1 week ago) by cado +
Branch: MAIN + +
Changes since 1.8: +31 -2 + lines
Diff to previous 1.8 +

+Improved NevraxNewClass and NevraxToggleHCPP (multiple search directories)
+
+

+ Revision 1.8 / (download) - annotate - [select for diffs] +, Mon Jan 8 10:21:17 2001 UTC (17 months, 3 weeks ago) by corvazier +
Branch: MAIN + +
Changes since 1.7: +2 -2 + lines
Diff to previous 1.7 +

+no message
+
+

+ Revision 1.7 / (download) - annotate - [select for diffs] +, Thu Dec 14 10:55:43 2000 UTC (18 months, 2 weeks ago) by cado +
Branch: MAIN + +
Changes since 1.6: +19 -7 + lines
Diff to previous 1.6 +

+Saving directories in config file
+
+

+ Revision 1.6 / (download) - annotate - [select for diffs] +, Thu Oct 12 13:55:31 2000 UTC (20 months, 2 weeks ago) by cado +
Branch: MAIN + +
Changes since 1.5: +4 -1 + lines
Diff to previous 1.5 +

+Improved NevraxNewClass
+
+

+ Revision 1.5 / (download) - annotate - [select for diffs] +, Mon Sep 18 13:49:42 2000 UTC (21 months, 2 weeks ago) by cado +
Branch: MAIN + +
Changes since 1.4: +24 -5 + lines
Diff to previous 1.4 +

+Added saving programmer's name in a file, adding files to the right project, namespace
+
+

+ Revision 1.4 / (download) - annotate - [select for diffs] +, Wed Sep 13 16:38:13 2000 UTC (21 months, 2 weeks ago) by cado +
Branch: MAIN + +
Changes since 1.3: +14 -3 + lines
Diff to previous 1.3 +

+created nevrax_macros_98.dsm
+
+

+ Revision 1.3 / (download) - annotate - [select for diffs] +, Wed Sep 13 16:19:13 2000 UTC (21 months, 2 weeks ago) by cado +
Branch: MAIN + +
Changes since 1.2: +3 -2 + lines
Diff to previous 1.2 +

+updated nevrax_macros_howto.txt
+
+

+ Revision 1.2 / (download) - annotate - [select for diffs] +, Thu Sep 7 15:05:51 2000 UTC (21 months, 3 weeks ago) by cado +
Branch: MAIN + +
Changes since 1.1: +2 -2 + lines
Diff to previous 1.1 +

+one letter
+
+

+ Revision 1.1 / (download) - annotate - [select for diffs] +, Thu Sep 7 14:58:14 2000 UTC (21 months, 3 weeks ago) by cado +
Branch: MAIN + +
Diff

+NevraxNewClass: added programmer's name input and file existence check.
+ModeEmploi.txt becomes nevrax_macros_howto.txt
+
+ + + + + +
Request Diffs
+

+

+

+Diffs between + + + and + + +
Type of Diff should be a  +
+ + + + + +
Select branch
+

+

+ +

+View only Branch: + + +
+ +
+Sort log by: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros_ryzom.dsm b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros_ryzom.dsm new file mode 100644 index 00000000..434a85cc --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/nevrax_macros_ryzom.dsm @@ -0,0 +1,164 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + +
Nevrax / code / tool / visual_studio_macros / nevrax_macros_ryzom.dsm
+ + + + + +
nevrax_macros_ryzom.dsm
+

+

Default branch: MAIN
+


+ Revision 1.4 / (download) - annotate - [select for diffs] +, Thu Jan 10 14:41:48 2002 UTC (5 months, 3 weeks ago) by cado +
Branch: MAIN + +
CVS Tags: HEAD +
Changes since 1.3: +3 -3 + lines
Diff to previous 1.3 +

+ADDED 2002
+
+

+ Revision 1.3 / (download) - annotate - [select for diffs] +, Wed Jan 9 10:31:23 2002 UTC (5 months, 3 weeks ago) by cado +
Branch: MAIN + +
Changes since 1.2: +4 -4 + lines
Diff to previous 1.2 +

+UPDATED year 2002
+
+

+ Revision 1.2 / (download) - annotate - [select for diffs] +, Fri Jul 6 15:37:43 2001 UTC (11 months, 3 weeks ago) by cado +
Branch: MAIN + +
Changes since 1.1: +4 -4 + lines
Diff to previous 1.1 +

+Changed copyright year to 2000, 2001
+
+

+ Revision 1.1 / (download) - annotate - [select for diffs] +, Tue May 22 12:04:32 2001 UTC (13 months, 1 week ago) by cado +
Branch: MAIN + +
Diff

+Improved NevraxNewClass and NevraxToggleHCPP (multiple search directories)
+
+ + + + + +
Request Diffs
+

+

+

+Diffs between + + + and + + +
Type of Diff should be a  +
+ + + + + +
Select branch
+

+

+ +

+View only Branch: + + +
+ +
+Sort log by: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/visual_studio_macros/usertype.dat b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/usertype.dat new file mode 100644 index 00000000..cb0ba150 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/visual_studio_macros/usertype.dat @@ -0,0 +1,164 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + +
Nevrax / code / tool / visual_studio_macros / usertype.dat
+ + + + + +
usertype.dat
+

+

Default branch: MAIN
+


+ Revision 1.4 / (download) - annotate - [select for diffs] +, Wed May 30 12:37:59 2001 UTC (13 months ago) by lecroart +
Branch: MAIN + +
CVS Tags: HEAD +
Changes since 1.3: +0 -4 + lines
Diff to previous 1.3 +

+no message
+
+

+ Revision 1.3 / (download) - annotate - [select for diffs] +, Thu May 10 09:09:44 2001 UTC (13 months, 3 weeks ago) by lecroart +
Branch: MAIN + +
Changes since 1.2: +5 -2 + lines
Diff to previous 1.2 +

+*** empty log message ***
+
+

+ Revision 1.2 / (download) - annotate - [select for diffs] +, Thu Oct 5 12:19:58 2000 UTC (20 months, 4 weeks ago) by corvazier +
Branch: MAIN + +
Changes since 1.1: +1 -0 + lines
Diff to previous 1.1 +

+hehe...
+
+

+ Revision 1.1 / (download) - annotate - [select for diffs] +, Thu Oct 5 12:10:32 2000 UTC (20 months, 4 weeks ago) by lecroart +
Branch: MAIN + +
Diff

+no message
+
+ + + + + +
Request Diffs
+

+

+

+Diffs between + + + and + + +
Type of Diff should be a  +
+ + + + + +
Select branch
+

+

+ +

+View only Branch: + + +
+ +
+Sort log by: + + +
+ + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1