project_files/HedgewarsMobile/Classes/ValueTrackingSliderView.h
author koda
Sun, 12 Feb 2012 11:05:26 +0100
changeset 6672 4f728ccdd06b
parent 6659 a6030b32b222
permissions -rwxr-xr-x
fixed a little event propagation problem, added rotation support to the scheme setting page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6634
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     1
/*
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     2
 * Hedgewars-iOS, a Hedgewars port for iOS devices
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     3
 * Copyright (c) 2009-2011 Vittorio Giovara <vittorio.giovara@gmail.com>
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     4
 *
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     8
 *
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    12
 * GNU General Public License for more details.
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    13
 *
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    17
 *
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    18
 * File created on 06/02/2012.
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    19
 */
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    20
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    21
// class heavily based on: http://blog.neuwert-media.com/2011/04/customized-uislider-with-visual-value-tracking/
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    22
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    23
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    24
#import <Foundation/Foundation.h>
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    25
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    26
@class SliderValuePopupView;
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    27
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    28
@interface ValueTrackingSliderView : UISlider {
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    29
    SliderValuePopupView *valuePopupView;
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    30
    NSString *textValue;
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    31
}
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    32
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    33
@property (nonatomic, readonly) CGRect thumbRect;
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    34
@property (nonatomic, retain) NSString *textValue;
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    35
e00762923086 ios game configuration page supports rotation, with some enhancements (like the new slider); some glitches here and there
koda
parents:
diff changeset
    36
@end