project_files/HedgewarsMobile/Classes/ExtraCategories.h
author Wuzzy <Wuzzy2@mail.ru>
Tue, 14 May 2019 01:03:23 +0200
changeset 14955 0ec0ed2d9045
parent 13167 c129707eb1e6
permissions -rw-r--r--
Frontend: Select appropriate localized Default voicepack for new teams
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6208
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     1
/*
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     2
 * Hedgewars-iOS, a Hedgewars port for iOS devices
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     3
 * Copyright (c) 2009-2010 Vittorio Giovara <vittorio.giovara@gmail.com>
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     4
 *
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     8
 *
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    12
 * GNU General Public License for more details.
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    13
 *
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
10108
c68cf030eded update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents: 6832
diff changeset
    16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
6208
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    17
 */
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    18
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    19
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    20
#import <Foundation/Foundation.h>
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    21
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    22
6209
074ab6ebcb3e restore runtime compatibility with ios 3.2
koda
parents: 6208
diff changeset
    23
@interface UIScreen (safe)
074ab6ebcb3e restore runtime compatibility with ios 3.2
koda
parents: 6208
diff changeset
    24
13166
ba5c794adae3 - Some not-so-important pretty formatting
antonc27 <antonc27@mail.ru>
parents: 12872
diff changeset
    25
- (CGFloat)safeScale;
ba5c794adae3 - Some not-so-important pretty formatting
antonc27 <antonc27@mail.ru>
parents: 12872
diff changeset
    26
- (CGRect)safeBounds;
6209
074ab6ebcb3e restore runtime compatibility with ios 3.2
koda
parents: 6208
diff changeset
    27
074ab6ebcb3e restore runtime compatibility with ios 3.2
koda
parents: 6208
diff changeset
    28
@end
074ab6ebcb3e restore runtime compatibility with ios 3.2
koda
parents: 6208
diff changeset
    29
074ab6ebcb3e restore runtime compatibility with ios 3.2
koda
parents: 6208
diff changeset
    30
6208
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    31
@interface UITableView (backgroundColor)
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    32
12872
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 11145
diff changeset
    33
- (void)setBackgroundColorForAnyTable:(UIColor *)color;
6208
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    34
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    35
@end
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    36
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    37
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    38
@interface UIColor (HWColors)
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    39
13166
ba5c794adae3 - Some not-so-important pretty formatting
antonc27 <antonc27@mail.ru>
parents: 12872
diff changeset
    40
+ (UIColor *)darkYellowColor;
ba5c794adae3 - Some not-so-important pretty formatting
antonc27 <antonc27@mail.ru>
parents: 12872
diff changeset
    41
+ (UIColor *)lightYellowColor;
ba5c794adae3 - Some not-so-important pretty formatting
antonc27 <antonc27@mail.ru>
parents: 12872
diff changeset
    42
+ (UIColor *)darkBlueColor;
ba5c794adae3 - Some not-so-important pretty formatting
antonc27 <antonc27@mail.ru>
parents: 12872
diff changeset
    43
+ (UIColor *)darkBlueColorTransparent;
ba5c794adae3 - Some not-so-important pretty formatting
antonc27 <antonc27@mail.ru>
parents: 12872
diff changeset
    44
+ (UIColor *)blackColorTransparent;
6208
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    45
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    46
@end
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    47
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    48
6711
76e96101a84f prepare a styled button
koda
parents: 6700
diff changeset
    49
@interface UIButton (quickStyle)
76e96101a84f prepare a styled button
koda
parents: 6700
diff changeset
    50
12872
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 11145
diff changeset
    51
- (id)initWithFrame:(CGRect)frame andTitle:(NSString *)title;
6711
76e96101a84f prepare a styled button
koda
parents: 6700
diff changeset
    52
11145
1c89970c7f15 - Restyle of 'Simple' and 'Missions' buttons at Main screen
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    53
- (void)applyBlackQuickStyle;
1c89970c7f15 - Restyle of 'Simple' and 'Missions' buttons at Main screen
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    54
- (void)applyDarkBlueQuickStyle;
1c89970c7f15 - Restyle of 'Simple' and 'Missions' buttons at Main screen
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    55
6711
76e96101a84f prepare a styled button
koda
parents: 6700
diff changeset
    56
@end
76e96101a84f prepare a styled button
koda
parents: 6700
diff changeset
    57
76e96101a84f prepare a styled button
koda
parents: 6700
diff changeset
    58
6208
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    59
@interface UILabel (quickStyle)
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    60
12872
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 11145
diff changeset
    61
- (id)initWithFrame:(CGRect)frame andTitle:(NSString *)title;
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 11145
diff changeset
    62
- (id)initWithFrame:(CGRect)frame andTitle:(NSString *)title withBorderWidth:(CGFloat)borderWidth;
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 11145
diff changeset
    63
- (id)initWithFrame:(CGRect)frame andTitle:(NSString *)title withBorderWidth:(CGFloat)borderWidth
6711
76e96101a84f prepare a styled button
koda
parents: 6700
diff changeset
    64
    withBorderColor:(UIColor *)borderColor withBackgroundColor:(UIColor *)backColor;
6208
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    65
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    66
@end
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    67
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    68
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    69
@interface NSString (MD5)
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    70
13166
ba5c794adae3 - Some not-so-important pretty formatting
antonc27 <antonc27@mail.ru>
parents: 12872
diff changeset
    71
- (NSString *)MD5hash;
6208
b831679e9467 move all extra categories in a single source, add caching for HWUtils
koda
parents:
diff changeset
    72
6300
db8fd3ff693c move two class files in a correct directory
koda
parents: 6209
diff changeset
    73
@end
db8fd3ff693c move two class files in a correct directory
koda
parents: 6209
diff changeset
    74
13167
c129707eb1e6 - Remember user settings on app update
antonc27 <antonc27@mail.ru>
parents: 13166
diff changeset
    75
@interface NSUserDefaults (setNonExisting)
c129707eb1e6 - Remember user settings on app update
antonc27 <antonc27@mail.ru>
parents: 13166
diff changeset
    76
c129707eb1e6 - Remember user settings on app update
antonc27 <antonc27@mail.ru>
parents: 13166
diff changeset
    77
- (void)setDefaultValue:(nullable id)value forNonExistingKey:(NSString *_Nonnull)key;
c129707eb1e6 - Remember user settings on app update
antonc27 <antonc27@mail.ru>
parents: 13166
diff changeset
    78
- (void)setDefaultBool:(BOOL)boolValue forNonExistingKey:(NSString *_Nonnull)key;
c129707eb1e6 - Remember user settings on app update
antonc27 <antonc27@mail.ru>
parents: 13166
diff changeset
    79
c129707eb1e6 - Remember user settings on app update
antonc27 <antonc27@mail.ru>
parents: 13166
diff changeset
    80
@end