Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 4 commits
  • 10 files changed
  • 0 commit comments
  • 1 contributor
View
0 ...+ Class.xctemplate/___FILEBASENAME___.cpp → ...ss.xctemplate/None/___FILEBASENAME___.cpp
File renamed without changes.
View
6 ...+ Class.xctemplate/___FILEBASENAME___.hpp → ...ss.xctemplate/None/___FILEBASENAME___.hpp
@@ -6,10 +6,10 @@
// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//
-#ifndef ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER____
-#define ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER____
+#ifndef ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER___
+#define ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER___
-class ___FILEBASENAME___ {
+class ___VARIABLE_className:identifier___ {
<#instance variables#>
public:
View
9 Templates/File Templates/C and C++/C++ Class.xctemplate/Private/___FILEBASENAME___.cpp
@@ -0,0 +1,9 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+#include "___FILEBASENAME___.hpp"
View
21 Templates/File Templates/C and C++/C++ Class.xctemplate/Private/___FILEBASENAME___.hpp
@@ -0,0 +1,21 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+#ifndef ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER___
+#define ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER___
+
+#include "___VARIABLE_superclassName:identifier___.hpp"
+
+class ___VARIABLE_className:identifier___ : private ___VARIABLE_superclassName:identifier___ {
+ <#instance variables#>
+
+public:
+ <#member functions#>
+};
+
+#endif
View
9 Templates/File Templates/C and C++/C++ Class.xctemplate/Protected/___FILEBASENAME___.cpp
@@ -0,0 +1,9 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+#include "___FILEBASENAME___.hpp"
View
21 Templates/File Templates/C and C++/C++ Class.xctemplate/Protected/___FILEBASENAME___.hpp
@@ -0,0 +1,21 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+#ifndef ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER___
+#define ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER___
+
+#include "___VARIABLE_superclassName:identifier___.hpp"
+
+class ___VARIABLE_className:identifier___ : protected ___VARIABLE_superclassName:identifier___ {
+ <#instance variables#>
+
+public:
+ <#member functions#>
+};
+
+#endif
View
9 Templates/File Templates/C and C++/C++ Class.xctemplate/Public/___FILEBASENAME___.cpp
@@ -0,0 +1,9 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+#include "___FILEBASENAME___.hpp"
View
21 Templates/File Templates/C and C++/C++ Class.xctemplate/Public/___FILEBASENAME___.hpp
@@ -0,0 +1,21 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+#ifndef ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER___
+#define ___PROJECTNAMEASIDENTIFIER_______FILEBASENAMEASIDENTIFIER___
+
+#include "___VARIABLE_superclassName:identifier___.hpp"
+
+class ___VARIABLE_className:identifier___ : public ___VARIABLE_superclassName:identifier___ {
+ <#instance variables#>
+
+public:
+ <#member functions#>
+};
+
+#endif
View
BIN Templates/File Templates/C and C++/C++ Class.xctemplate/TemplateIcon.icns
Binary file not shown.
View
68 Templates/File Templates/C and C++/C++ Class.xctemplate/TemplateInfo.plist
@@ -40,26 +40,82 @@ subject to the following restrictions:
<key>Kind</key>
<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
-
- <key>MainTemplateFile</key>
- <string>___FILEBASENAME___.cpp</string>
<key>Options</key>
<array>
+ <!-- product name : based on the class name -->
<dict>
- <key>Description</key>
- <string>The name of the class to create</string>
<key>Identifier</key>
<string>productName</string>
+ <key>Default</key>
+ <string>___VARIABLE_className:identifier___</string>
+ <key>Type</key>
+ <string>static</string>
+ </dict>
+
+ <!-- class name -->
+ <dict>
+ <key>Description</key>
+ <string>The name of the class to create.</string>
<key>Name</key>
<string>Class Name</string>
+
+ <key>Identifier</key>
+ <string>className</string>
<key>NotPersisted</key>
- <true/>
+ <false/>
<key>Required</key>
<true/>
<key>Type</key>
<string>text</string>
</dict>
+
+ <!-- Inheritance ? None, Public, Protected or Private ? -->
+ <!-- This will load the files in "option" directory -->
+ <dict>
+ <key>Name</key>
+ <string>Inheritance Type</string>
+ <key>Description</key>
+ <string>How does the new class inherits from its superclass ?</string>
+
+ <key>Identifier</key>
+ <string>inheritanceType</string>
+ <key>Type</key>
+ <string>popup</string>
+ <key>Default</key>
+ <string>None</string>
+ <key>Values</key>
+ <array>
+ <string>None</string>
+ <string>Public</string>
+ <string>Protected</string>
+ <string>Private</string>
+ </array>
+ </dict>
+
+ <!-- Superclass name -->
+ <dict>
+ <key>Name</key>
+ <string>Superclass</string>
+ <key>Description</key>
+ <string>What is its superclass ?</string>
+
+ <key>Identifier</key>
+ <string>superclassName</string>
+ <key>Type</key>
+ <string>class</string>
+
+ <key>RequiredOptions</key>
+ <dict>
+ <key>inheritanceType</key>
+ <array>
+ <string>Public</string>
+ <string>Protected</string>
+ <string>Private</string>
+ </array>
+ </dict>
+ </dict>
+
</array>
</dict>
</plist>

No commit comments for this range

Something went wrong with that request. Please try again.