Browse files

License change to MIT.

  • Loading branch information...
1 parent 756a4f9 commit b6d3aed12eefd47e83852085fa6ada66a9b226a4 Damien Debin committed Oct 1, 2012
Showing with 31 additions and 51 deletions.
  1. +7 −0 LICENSE
  2. +24 −51 README.markdown → README.md
View
7 LICENSE
@@ -0,0 +1,7 @@
+Copyright (c) 2011-2012 Damien Debin / SmartApps (http://smartapps.fr/)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
75 README.markdown → README.md
@@ -17,60 +17,46 @@ Properties
A DDExpandableButton has the following properties:
- - `@property (nonatomic,assign) BOOL expanded;`
-
+ - `@property (nonatomic,assign) BOOL expanded;`
Current button status (if expanded or shrunk).
- - `@property (nonatomic,assign) BOOL useAnimation;`
-
+ - `@property (nonatomic,assign) BOOL useAnimation;`
Use animation during button state transitions.
- - `@property (nonatomic,assign) BOOL toggleMode;`
-
+ - `@property (nonatomic,assign) BOOL toggleMode;`
Use button as a toggle (like "HDR On" / "HDR Off" button in camera app).
- - `@property (nonatomic,assign) CGFloat timeout;`
-
+ - `@property (nonatomic,assign) CGFloat timeout;`
To shrink the button after a timeout. Use `0` if you want to disable timeout.
- - `@property (nonatomic,assign) CGFloat horizontalPadding;`
-
+ - `@property (nonatomic,assign) CGFloat horizontalPadding;`
Horizontal padding space between items.
- - `@property (nonatomic,assign) CGFloat verticalPadding;`
-
+ - `@property (nonatomic,assign) CGFloat verticalPadding;`
Vertical padding space above and below items.
- - `@property (nonatomic,assign) CGFloat borderWidth;`
-
+ - `@property (nonatomic,assign) CGFloat borderWidth;`
Width (thickness) of the button border.
- - `@property (nonatomic,assign) CGFloat innerBorderWidth;`
-
+ - `@property (nonatomic,assign) CGFloat innerBorderWidth;`
Width (thickness) of the inner borders between items.
- - `@property (nonatomic,assign) NSUInteger selectedItem;`
-
+ - `@property (nonatomic,assign) NSUInteger selectedItem;`
Selected item number.
- - `@property (nonatomic,retain) UIColor *borderColor;`
-
+ - `@property (nonatomic,retain) UIColor *borderColor;`
Color of the button and inner borders.
- - `@property (nonatomic,retain) UIColor *textColor;`
-
+ - `@property (nonatomic,retain) UIColor *textColor;`
Color of text labels.
- - `@property (nonatomic,retain) UIFont *labelFont;`
-
+ - `@property (nonatomic,retain) UIFont *labelFont;`
Font of text labels.
- - `@property (nonatomic,retain) UIFont *unSelectedLabelFont;`
-
+ - `@property (nonatomic,retain) UIFont *unSelectedLabelFont;`
Font of unselected text labels. `Nil` if not different from `labelFont`.
- - `@property (nonatomic,readonly) NSArray *labels;`
-
+ - `@property (nonatomic,readonly) NSArray *labels;`
Access `UIView` used to draw labels.
@@ -79,32 +65,25 @@ Methods
A DDExpandableButton has the following methods:
- - `- (id)initWithPoint:(CGPoint)point leftTitle:(id)leftTitle buttons:(NSArray *)buttons;`
-
+ - `- (id)initWithPoint:(CGPoint)point leftTitle:(id)leftTitle buttons:(NSArray *)buttons;`
*Init* method where you can specify `leftTitle` and `buttons`.
- - `- (void)setSelectedItem:(NSUInteger)selected animated:(BOOL)animated;`
-
+ - `- (void)setSelectedItem:(NSUInteger)selected animated:(BOOL)animated;`
*Animated* version of `- (void)setSelectedItem:(NSUInteger)selected`.
- - `- (void)setExpanded:(BOOL)expanded animated:(BOOL)animated;`
-
+ - `- (void)setExpanded:(BOOL)expanded animated:(BOOL)animated;`
*Animated* version of `- (void)setExpanded:(BOOL)expanded`.
- - `- (void)setLeftTitle:(id)leftTitle;`
-
+ - `- (void)setLeftTitle:(id)leftTitle;`
Set left title view : you can use a `NSString`, an `UIImage` or any `UIView` (but the view must implement `DDExpandableButtonViewSource` protocol).
- - `- (void)setButtons:(NSArray *)buttons;`
-
+ - `- (void)setButtons:(NSArray *)buttons;`
Set buttons views : you can use a `NSString`, an `UIImage` or any `UIView` (but the view must implement `DDExpandableButtonViewSource` protocol).
- - `- (void)disableTimeout;`
-
+ - `- (void)disableTimeout;`
If you want to disable timeout shrunk. You can set `timeout` to `0` also.
- - `- (void)updateDisplay;`
-
+ - `- (void)updateDisplay;`
When modifying button parameters, use this method to update button display.
@@ -113,12 +92,10 @@ Protocols
The `DDExpandableButtonViewSource` protocol, used when you specify the title or the different buttons, has the following methods:
- - `- (CGSize)defaultFrameSize;`
-
+ - `- (CGSize)defaultFrameSize;`
Returns default frame size of the view, used when expanding the button.
- - `- (void)setHighlighted:(BOOL)highlighted;`
-
+ - `- (void)setHighlighted:(BOOL)highlighted;`
*Optional*, used to change appearance of selected items.
@@ -136,8 +113,4 @@ Example : a button with four text labels and a hook when value change.
License
---------------
-This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <[http://www.gnu.org/licenses/](http://www.gnu.org/licenses/)>.
+DDExpandableButton is available under the MIT license. See the LICENSE file for more info.

0 comments on commit b6d3aed

Please sign in to comment.