mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-20 18:32:17 +00:00
Add indentation preferences.
This commit is contained in:
parent
a186488b30
commit
51d9342bbb
8 changed files with 170 additions and 1 deletions
|
@ -39,7 +39,8 @@ SUBPROJECTS = \
|
|||
Preferences/Build \
|
||||
Preferences/Saving \
|
||||
Preferences/Misc \
|
||||
Preferences/EditorFSC
|
||||
Preferences/EditorFSC \
|
||||
Preferences/Indentation
|
||||
|
||||
SUBPROJECTS += Debuggers/ProjectCenter
|
||||
|
||||
|
|
41
Modules/Preferences/Indentation/GNUmakefile
Normal file
41
Modules/Preferences/Indentation/GNUmakefile
Normal file
|
@ -0,0 +1,41 @@
|
|||
#
|
||||
# GNUmakefile - Indentation preferences
|
||||
#
|
||||
PACKAGE_NAME = Indentation
|
||||
include $(GNUSTEP_MAKEFILES)/common.make
|
||||
|
||||
#
|
||||
# Bundle
|
||||
#
|
||||
BUNDLE_NAME = Indentation
|
||||
BUNDLE_EXTENSION = .preferences
|
||||
Indentation_PRINCIPAL_CLASS = PCIndentationPrefs
|
||||
|
||||
|
||||
#
|
||||
# Additional libraries
|
||||
#
|
||||
Indentation_LIBRARIES_DEPEND_UPON +=
|
||||
|
||||
#
|
||||
# Resource files
|
||||
#
|
||||
Indentation_RESOURCE_FILES= \
|
||||
Resources/IndentationPrefs.gorm \
|
||||
Resources/Info.table
|
||||
|
||||
#
|
||||
# Header files
|
||||
#
|
||||
Indentation_HEADERS= \
|
||||
PCIndentationPrefs.h
|
||||
|
||||
#
|
||||
# Class files
|
||||
#
|
||||
Indentation_OBJC_FILES= \
|
||||
PCIndentationPrefs.m
|
||||
|
||||
include ../../GNUmakefile.bundles
|
||||
include $(GNUSTEP_MAKEFILES)/bundle.make
|
||||
|
25
Modules/Preferences/Indentation/PCIndentationPrefs.h
Normal file
25
Modules/Preferences/Indentation/PCIndentationPrefs.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/* All rights reserved */
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@interface PCIndentationPrefs : NSObject
|
||||
{
|
||||
id _indentWhenTyping;
|
||||
id _indentForOpenCurly;
|
||||
id _indentForCloseCurly;
|
||||
id _indentForSemicolon;
|
||||
id _indentForColon;
|
||||
id _indentForHash;
|
||||
id _indentForReturn;
|
||||
id _indentForSoloOpenCurly;
|
||||
id _indentNumberOfSpaces;
|
||||
}
|
||||
- (void) setIndentWhenTyping: (id)sender;
|
||||
- (void) setIndentForOpenCurlyBrace: (id)sender;
|
||||
- (void) setIndentForCloseCurlyBrace: (id)sender;
|
||||
- (void) setIndentForSemicolon: (id)sender;
|
||||
- (void) setIndentForColon: (id)sender;
|
||||
- (void) setIndentForHash: (id)sender;
|
||||
- (void) setIndentForReturn: (id)sender;
|
||||
- (void) setIndentForSoloOpenBrace: (id)sender;
|
||||
@end
|
56
Modules/Preferences/Indentation/PCIndentationPrefs.m
Normal file
56
Modules/Preferences/Indentation/PCIndentationPrefs.m
Normal file
|
@ -0,0 +1,56 @@
|
|||
/* All rights reserved */
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include "PCIndentationPrefs.h"
|
||||
|
||||
@implementation PCIndentationPrefs
|
||||
|
||||
|
||||
- (void) setIndentWhenTyping: (id)sender
|
||||
{
|
||||
/* insert your code here */
|
||||
}
|
||||
|
||||
|
||||
- (void) setIndentForOpenCurlyBrace: (id)sender
|
||||
{
|
||||
/* insert your code here */
|
||||
}
|
||||
|
||||
|
||||
- (void) setIndentForCloseCurlyBrace: (id)sender
|
||||
{
|
||||
/* insert your code here */
|
||||
}
|
||||
|
||||
|
||||
- (void) setIndentForSemicolon: (id)sender
|
||||
{
|
||||
/* insert your code here */
|
||||
}
|
||||
|
||||
|
||||
- (void) setIndentForColon: (id)sender
|
||||
{
|
||||
/* insert your code here */
|
||||
}
|
||||
|
||||
|
||||
- (void) setIndentForHash: (id)sender
|
||||
{
|
||||
/* insert your code here */
|
||||
}
|
||||
|
||||
|
||||
- (void) setIndentForReturn: (id)sender
|
||||
{
|
||||
/* insert your code here */
|
||||
}
|
||||
|
||||
|
||||
- (void) setIndentForSoloOpenBrace: (id)sender
|
||||
{
|
||||
/* insert your code here */
|
||||
}
|
||||
|
||||
@end
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"## Comment" = "Do NOT change this file, Gorm maintains it";
|
||||
FirstResponder = {
|
||||
Actions = (
|
||||
"setIndentWhenTyping:",
|
||||
"setIndentForOpenCurlyBrace:",
|
||||
"setIndentForCloseCurlyBrace:",
|
||||
"setIndentForSemicolon:",
|
||||
"setIndentForColon:",
|
||||
"setIndentForHash:",
|
||||
"setIndentForReturn:",
|
||||
"setIndentForSoloOpenBrace:"
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
PCIndentationPrefs = {
|
||||
Actions = (
|
||||
"setIndentWhenTyping:",
|
||||
"setIndentForOpenCurlyBrace:",
|
||||
"setIndentForCloseCurlyBrace:",
|
||||
"setIndentForSemicolon:",
|
||||
"setIndentForColon:",
|
||||
"setIndentForHash:",
|
||||
"setIndentForReturn:",
|
||||
"setIndentForSoloOpenBrace:"
|
||||
);
|
||||
Outlets = (
|
||||
"_indentWhenTyping",
|
||||
"_indentForOpenCurly",
|
||||
"_indentForCloseCurly",
|
||||
"_indentForSemicolon",
|
||||
"_indentForColon",
|
||||
"_indentForHash",
|
||||
"_indentForReturn",
|
||||
"_indentForSoloOpenCurly",
|
||||
"_indentNumberOfSpaces"
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
}
|
Binary file not shown.
Binary file not shown.
6
Modules/Preferences/Indentation/Resources/Info.table
Normal file
6
Modules/Preferences/Indentation/Resources/Info.table
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
Type = "Preferences";
|
||||
Name = "Miscellaneous";
|
||||
Description = "Miscellaneous ProjectCenter options.";
|
||||
PrincipalClassName = "PCMiscPrefs";
|
||||
}
|
Loading…
Reference in a new issue