TemplateInfo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/.gitignore +2 -0
- data/TemplateInfo.gemspec +1 -1
- data/bin/tif_create.rb +157 -0
- data/lib/TemplateInfo/version.rb +1 -1
- data/test.xctemplate/.DS_Store +0 -0
- data/test.xctemplate/TemplateInfo.plist +2830 -0
- data/test.xctemplate/TemplateInfo.xml +2842 -0
- data/test.xctemplate/libs/BeeFramework/Bee.h +35 -0
- data/test.xctemplate/libs/BeeFramework/Bee_Precompile.h +143 -0
- data/test.xctemplate/libs/BeeFramework/Core/Bee_Core.h +36 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Foundation.h +54 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Foundation.mm +33 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Log.h +64 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Log.mm +164 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Performance.h +111 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Performance.mm +122 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Runtime.h +98 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Runtime.mm +437 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Sandbox.h +45 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Sandbox.mm +81 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Singleton.h +47 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Singleton.mm +34 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_SystemInfo.h +62 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_SystemInfo.m +147 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Thread.h +64 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Thread.mm +91 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSArray+BeeExtension.h +76 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSArray+BeeExtension.m +300 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSData+BeeExtension.h +44 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSData+BeeExtension.m +92 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDate+BeeExtension.h +44 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDate+BeeExtension.m +85 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDictionary+BeeExtension.h +90 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDictionary+BeeExtension.m +509 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSNumber+BeeExtension.h +50 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSNumber+BeeExtension.m +64 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeJSON.h +43 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeJSON.m +116 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeNotification.h +66 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeNotification.m +150 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeProperty.h +210 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeProperty.m +34 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTicker.h +41 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTicker.m +156 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTypeConversion.h +49 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTypeConversion.m +109 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSString+BeeExtension.h +86 -0
- data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSString+BeeExtension.m +464 -0
- data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Network.h +36 -0
- data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Network.m +33 -0
- data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Request.h +144 -0
- data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Request.m +560 -0
- data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_RequestQueue.h +99 -0
- data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_RequestQueue.m +742 -0
- data/test.xctemplate/libs/BeeFramework/Core/Network/Extension/NSObject+BeeRequest.h +62 -0
- data/test.xctemplate/libs/BeeFramework/Core/Network/Extension/NSObject+BeeRequest.m +175 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/0.2.4.zip +0 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveBase.h +133 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveBase.m +641 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveRecord.h +106 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveRecord.m +1956 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Cache.h +91 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Cache.m +318 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Database.h +223 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Database.m +3007 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Keychain.h +55 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Keychain.m +173 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Storage.h +39 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Storage.m +33 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeDatabase.h +47 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeDatabase.m +81 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeKeychain.h +44 -0
- data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeKeychain.m +57 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Bee_MVC.h +49 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Controller.h +66 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Controller.mm +228 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Message.h +209 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Message.mm +873 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_MessageQueue.h +75 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_MessageQueue.mm +389 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+ActiveRecord.h +52 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+ActiveRecord.m +150 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+HTTP.h +49 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+HTTP.mm +201 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+JSON.h +52 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+JSON.mm +118 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+XML.h +49 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+XML.mm +78 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/NSObject+BeeMessage.h +57 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/NSObject+BeeMessage.mm +138 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Model/Bee_Model.h +64 -0
- data/test.xctemplate/libs/BeeFramework/MVC/Model/Bee_Model.m +190 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActionSheet.h +71 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActionSheet.m +307 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActivityIndicatorView.h +52 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActivityIndicatorView.m +152 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIAlertView.h +73 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIAlertView.m +234 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIButton.h +97 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIButton.m +424 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIDatePicker.h +78 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIDatePicker.m +362 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIGridCell.h +82 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIGridCell.m +298 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIImageView.h +110 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIImageView.m +541 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIKeyboard.h +74 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIKeyboard.m +243 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UILabel.h +46 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UILabel.m +99 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIMatrixView.h +124 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIMatrixView.m +821 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UINavigationBar.h +57 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UINavigationBar.m +161 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIOrientation.h +60 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIOrientation.m +146 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPageControl.h +61 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPageControl.m +190 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIProgressView.h +47 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIProgressView.m +113 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPullLoader.h +71 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPullLoader.m +236 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIScrollView.h +146 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIScrollView.m +1487 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISegmentedControl.h +60 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISegmentedControl.m +192 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISignal.h +126 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISignal.m +453 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITabBar.h +70 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITabBar.m +249 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextField.h +67 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextField.m +242 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextView.h +75 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextView.m +311 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITipsView.h +184 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITipsView.m +911 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIWebView.h +65 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIWebView.m +242 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIZoomView.h +91 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIZoomView.m +444 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_View.h +72 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_View.m +38 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/CGRect+BeeExtension.h +79 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/CGRect+BeeExtension.m +288 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIColor+BeeExtension.h +65 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIColor+BeeExtension.m +161 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIFont+BeeExtension.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIFont+BeeExtension.m +137 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIImage+BeeExtension.h +56 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIImage+BeeExtension.m +218 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeExtension.h +105 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeExtension.m +556 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeUISignal.h +53 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeUISignal.m +104 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+HoldGesture.h +52 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+HoldGesture.m +170 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+PanGesture.h +54 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+PanGesture.m +166 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+SwipeGesture.h +54 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+SwipeGesture.m +184 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+TapGesture.h +57 -0
- data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+TapGesture.m +275 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIBoard.h +212 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIBoard.m +1219 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStack.h +111 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStack.m +694 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStackGroup.h +71 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStackGroup.m +258 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_ViewController.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_ViewController.m +36 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeExtension.h +57 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeExtension.m +151 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeUISignal.h +53 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeUISignal.m +92 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+UINavigationBar.h +72 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+UINavigationBar.m +175 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UICollection.h +59 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UICollection.m +249 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UILayout.h +199 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UILayout.m +1170 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIQuery.h +113 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIQuery.m +710 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIStyle.h +66 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIStyle.m +189 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplate.h +69 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplate.m +210 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateAndroid.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateAndroid.m +59 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateHTML.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateHTML.m +55 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateJSON.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateJSON.m +54 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateOmniGraffle.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateOmniGraffle.m +54 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateXML.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateXML.m +438 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_ViewLayout.h +60 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_ViewLayout.m +37 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIQuery+BeeUIStyle.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIQuery+BeeUIStyle.m +55 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIStyle+BeeUIQuery.h +45 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIStyle+BeeUIQuery.m +55 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIButton+BeeUIStyle.h +41 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIButton+BeeUIStyle.m +100 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIImageView+BeeUIStyle.h +41 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIImageView+BeeUIStyle.m +101 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UILabel+BeeUIStyle.h +41 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UILabel+BeeUIStyle.m +48 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextField+BeeUIStyle.h +41 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextField+BeeUIStyle.m +77 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextView+BeeUIStyle.h +41 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextView+BeeUIStyle.m +47 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUILayout.h +52 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUILayout.m +177 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIQuery.h +44 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIQuery.m +57 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIStyle.h +50 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIStyle.m +283 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUILayout.h +52 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUILayout.m +178 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIQuery.h +44 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIQuery.m +58 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIStyle.h +44 -0
- data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIStyle.m +57 -0
- metadata +226 -3
@@ -0,0 +1,438 @@
|
|
1
|
+
//
|
2
|
+
// ______ ______ ______
|
3
|
+
// /\ __ \ /\ ___\ /\ ___\
|
4
|
+
// \ \ __< \ \ __\_ \ \ __\_
|
5
|
+
// \ \_____\ \ \_____\ \ \_____\
|
6
|
+
// \/_____/ \/_____/ \/_____/
|
7
|
+
//
|
8
|
+
// Copyright (c) 2012 BEE creators
|
9
|
+
// http://www.whatsbug.com
|
10
|
+
//
|
11
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
12
|
+
// copy of this software and associated documentation files (the "Software"),
|
13
|
+
// to deal in the Software without restriction, including without limitation
|
14
|
+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
15
|
+
// and/or sell copies of the Software, and to permit persons to whom the
|
16
|
+
// Software is furnished to do so, subject to the following conditions:
|
17
|
+
//
|
18
|
+
// The above copyright notice and this permission notice shall be included in
|
19
|
+
// all copies or substantial portions of the Software.
|
20
|
+
//
|
21
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
27
|
+
// IN THE SOFTWARE.
|
28
|
+
//
|
29
|
+
//
|
30
|
+
// Bee_UITemplateXML.m
|
31
|
+
//
|
32
|
+
|
33
|
+
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
34
|
+
|
35
|
+
#import "Bee_Precompile.h"
|
36
|
+
#import "Bee_Log.h"
|
37
|
+
#import "Bee_UITemplateXML.h"
|
38
|
+
#import "UIView+BeeExtension.h"
|
39
|
+
#import "NSArray+BeeExtension.h"
|
40
|
+
#import "NSString+BeeExtension.h"
|
41
|
+
|
42
|
+
#import "Bee_UIStyle.h"
|
43
|
+
#import "Bee_UITemplate.h"
|
44
|
+
|
45
|
+
#import "JSONKit.h"
|
46
|
+
#import "TouchXML.h"
|
47
|
+
|
48
|
+
#pragma mark -
|
49
|
+
|
50
|
+
@interface BeeUITemplateXML()
|
51
|
+
|
52
|
+
AS_INT( ELEM_TYPE_UNKNOWN )
|
53
|
+
AS_INT( ELEM_TYPE_TEMPLATE )
|
54
|
+
AS_INT( ELEM_TYPE_LAYOUT )
|
55
|
+
AS_INT( ELEM_TYPE_CONTAINER )
|
56
|
+
AS_INT( ELEM_TYPE_SUBVIEW )
|
57
|
+
AS_INT( ELEM_TYPE_SPACE )
|
58
|
+
AS_INT( ELEM_TYPE_STYLE )
|
59
|
+
|
60
|
+
@end
|
61
|
+
|
62
|
+
#pragma mark -
|
63
|
+
|
64
|
+
@implementation BeeUITemplateXML
|
65
|
+
|
66
|
+
DEF_INT( ELEM_TYPE_UNKNOWN, 0 )
|
67
|
+
DEF_INT( ELEM_TYPE_TEMPLATE, 1 )
|
68
|
+
DEF_INT( ELEM_TYPE_LAYOUT, 2 )
|
69
|
+
DEF_INT( ELEM_TYPE_CONTAINER, 3 )
|
70
|
+
DEF_INT( ELEM_TYPE_SUBVIEW, 4 )
|
71
|
+
DEF_INT( ELEM_TYPE_SPACE, 5 )
|
72
|
+
DEF_INT( ELEM_TYPE_STYLE, 6 )
|
73
|
+
|
74
|
+
- (NSInteger)guessElementType:(CXMLElement *)elem
|
75
|
+
{
|
76
|
+
if ( NSOrderedSame == [elem.name compare:@"ui" options:NSCaseInsensitiveSearch] )
|
77
|
+
{
|
78
|
+
return self.ELEM_TYPE_TEMPLATE;
|
79
|
+
}
|
80
|
+
else if ( NSOrderedSame == [elem.name compare:@"view" options:NSCaseInsensitiveSearch] )
|
81
|
+
{
|
82
|
+
return self.ELEM_TYPE_SUBVIEW;
|
83
|
+
}
|
84
|
+
else if ( NSOrderedSame == [elem.name compare:@"container" options:NSCaseInsensitiveSearch] )
|
85
|
+
{
|
86
|
+
return self.ELEM_TYPE_CONTAINER;
|
87
|
+
}
|
88
|
+
else if ( NSOrderedSame == [elem.name compare:@"layout" options:NSCaseInsensitiveSearch] )
|
89
|
+
{
|
90
|
+
return self.ELEM_TYPE_LAYOUT;
|
91
|
+
}
|
92
|
+
else if ( NSOrderedSame == [elem.name compare:@"space" options:NSCaseInsensitiveSearch] )
|
93
|
+
{
|
94
|
+
return self.ELEM_TYPE_SPACE;
|
95
|
+
}
|
96
|
+
else if ( NSOrderedSame == [elem.name compare:@"style" options:NSCaseInsensitiveSearch] )
|
97
|
+
{
|
98
|
+
return self.ELEM_TYPE_STYLE;
|
99
|
+
}
|
100
|
+
|
101
|
+
return self.ELEM_TYPE_UNKNOWN;
|
102
|
+
}
|
103
|
+
|
104
|
+
- (void)parseAttributes:(CXMLElement *)elem forLayout:(BeeUILayout *)layout
|
105
|
+
{
|
106
|
+
NSString * x = [[elem attributeForName:@"x"] stringValue];
|
107
|
+
if ( x )
|
108
|
+
{
|
109
|
+
layout.X( x );
|
110
|
+
}
|
111
|
+
|
112
|
+
NSString * y = [[elem attributeForName:@"y"] stringValue];
|
113
|
+
if ( y )
|
114
|
+
{
|
115
|
+
layout.Y( y );
|
116
|
+
}
|
117
|
+
|
118
|
+
NSString * w = [[elem attributeForName:@"w"] stringValue];
|
119
|
+
if ( nil == w )
|
120
|
+
{
|
121
|
+
w = [[elem attributeForName:@"width"] stringValue];
|
122
|
+
}
|
123
|
+
|
124
|
+
if ( w )
|
125
|
+
{
|
126
|
+
layout.W( w );
|
127
|
+
}
|
128
|
+
|
129
|
+
NSString * h = [[elem attributeForName:@"h"] stringValue];
|
130
|
+
if ( nil == h )
|
131
|
+
{
|
132
|
+
h = [[elem attributeForName:@"height"] stringValue];
|
133
|
+
}
|
134
|
+
|
135
|
+
if ( h )
|
136
|
+
{
|
137
|
+
layout.H( h );
|
138
|
+
}
|
139
|
+
|
140
|
+
NSString * pos = [[elem attributeForName:@"position"] stringValue];
|
141
|
+
if ( pos )
|
142
|
+
{
|
143
|
+
layout.POSITION( pos );
|
144
|
+
}
|
145
|
+
|
146
|
+
NSString * align = [[elem attributeForName:@"align"] stringValue];
|
147
|
+
if ( align )
|
148
|
+
{
|
149
|
+
layout.ALIGN( align );
|
150
|
+
}
|
151
|
+
|
152
|
+
NSString * v_align = [[elem attributeForName:@"v_align"] stringValue];
|
153
|
+
if ( v_align )
|
154
|
+
{
|
155
|
+
layout.V_ALIGN( v_align );
|
156
|
+
}
|
157
|
+
|
158
|
+
NSString * orientation = [[elem attributeForName:@"orientation"] stringValue];
|
159
|
+
if ( orientation )
|
160
|
+
{
|
161
|
+
layout.ORIENTATION( orientation );
|
162
|
+
}
|
163
|
+
|
164
|
+
NSString * autoresizeWidth = [[elem attributeForName:@"autoresize_width"] stringValue];
|
165
|
+
if ( autoresizeWidth )
|
166
|
+
{
|
167
|
+
layout.AUTORESIZE_WIDTH( autoresizeWidth.boolValue );
|
168
|
+
}
|
169
|
+
|
170
|
+
NSString * autoresizeHeight = [[elem attributeForName:@"autoresize_height"] stringValue];
|
171
|
+
if ( autoresizeHeight )
|
172
|
+
{
|
173
|
+
layout.AUTORESIZE_HEIGHT( autoresizeHeight.boolValue );
|
174
|
+
}
|
175
|
+
|
176
|
+
NSString * frame = [[elem attributeForName:@"frame"] stringValue];
|
177
|
+
if ( frame )
|
178
|
+
{
|
179
|
+
NSArray * components = [frame componentsSeparatedByString:@","];
|
180
|
+
if ( components.count >= 2 )
|
181
|
+
{
|
182
|
+
layout.X( ((NSString *)[components objectAtIndex:0]).trim );
|
183
|
+
layout.Y( ((NSString *)[components objectAtIndex:1]).trim );
|
184
|
+
}
|
185
|
+
if ( components.count >= 4 )
|
186
|
+
{
|
187
|
+
layout.W( ((NSString *)[components objectAtIndex:2]).trim );
|
188
|
+
layout.H( ((NSString *)[components objectAtIndex:3]).trim );
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
|
193
|
+
NSString * styleID = [[elem attributeForName:@"style"] stringValue];
|
194
|
+
if ( nil == styleID )
|
195
|
+
{
|
196
|
+
styleID = [[elem attributeForName:@"style_id"] stringValue];
|
197
|
+
}
|
198
|
+
|
199
|
+
layout.styleID = styleID;
|
200
|
+
}
|
201
|
+
|
202
|
+
- (void)parseLayout:(CXMLElement *)elem forLayout:(BeeUILayout *)parentLayout
|
203
|
+
{
|
204
|
+
BeeUILayout * layout = nil;
|
205
|
+
|
206
|
+
if ( nil == parentLayout )
|
207
|
+
{
|
208
|
+
layout = [[[BeeUILayout alloc] init] autorelease];
|
209
|
+
|
210
|
+
NSString * elemID = [[elem attributeForName:@"id"] stringValue];
|
211
|
+
if ( elemID )
|
212
|
+
{
|
213
|
+
layout.name = elemID;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
else
|
217
|
+
{
|
218
|
+
layout = parentLayout;
|
219
|
+
}
|
220
|
+
|
221
|
+
if ( layout )
|
222
|
+
{
|
223
|
+
layout = layout.BEGIN_LAYOUT();
|
224
|
+
if ( layout )
|
225
|
+
{
|
226
|
+
[self parseAttributes:elem forLayout:layout];
|
227
|
+
|
228
|
+
for ( CXMLElement * child in elem.children )
|
229
|
+
{
|
230
|
+
if ( NO == [child isKindOfClass:[CXMLElement class]] )
|
231
|
+
continue;
|
232
|
+
|
233
|
+
[self parseElement:child forLayout:layout];
|
234
|
+
}
|
235
|
+
|
236
|
+
layout.END_LAYOUT();
|
237
|
+
}
|
238
|
+
|
239
|
+
self.rootLayout = layout;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
- (void)parseContainer:(CXMLElement *)elem forLayout:(BeeUILayout *)layout
|
244
|
+
{
|
245
|
+
NSString * elemID = [[elem attributeForName:@"id"] stringValue];
|
246
|
+
|
247
|
+
layout = layout.BEGIN_CONTAINER( elemID );
|
248
|
+
if ( layout )
|
249
|
+
{
|
250
|
+
[self parseAttributes:elem forLayout:layout];
|
251
|
+
|
252
|
+
for ( CXMLElement * child in elem.children )
|
253
|
+
{
|
254
|
+
if ( NO == [child isKindOfClass:[CXMLElement class]] )
|
255
|
+
continue;
|
256
|
+
|
257
|
+
[self parseElement:child forLayout:layout];
|
258
|
+
}
|
259
|
+
|
260
|
+
layout.END_CONTAINER();
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
- (void)parseSubview:(CXMLElement *)elem forLayout:(BeeUILayout *)layout
|
265
|
+
{
|
266
|
+
NSString * elemID = [[elem attributeForName:@"id"] stringValue];
|
267
|
+
NSString * classType = [[elem attributeForName:@"class"] stringValue];
|
268
|
+
|
269
|
+
layout = layout.VIEW( NSClassFromString(classType), elemID );
|
270
|
+
if ( layout )
|
271
|
+
{
|
272
|
+
[self parseAttributes:elem forLayout:layout];
|
273
|
+
|
274
|
+
for ( CXMLElement * child in elem.children )
|
275
|
+
{
|
276
|
+
if ( NO == [child isKindOfClass:[CXMLElement class]] )
|
277
|
+
continue;
|
278
|
+
|
279
|
+
[self parseElement:child forLayout:layout];
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
|
284
|
+
- (void)parseSpace:(CXMLElement *)elem forLayout:(BeeUILayout *)layout
|
285
|
+
{
|
286
|
+
layout = layout.SPACE();
|
287
|
+
if ( layout )
|
288
|
+
{
|
289
|
+
[self parseAttributes:elem forLayout:layout];
|
290
|
+
|
291
|
+
for ( CXMLElement * child in elem.children )
|
292
|
+
{
|
293
|
+
if ( NO == [child isKindOfClass:[CXMLElement class]] )
|
294
|
+
continue;
|
295
|
+
|
296
|
+
[self parseElement:child forLayout:layout];
|
297
|
+
}
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
- (void)parseTemplate:(CXMLElement *)elem forLayout:(BeeUILayout *)layout
|
302
|
+
{
|
303
|
+
NSString * elemID = [[elem attributeForName:@"id"] stringValue];
|
304
|
+
if ( elemID )
|
305
|
+
{
|
306
|
+
self.name = elemID;
|
307
|
+
}
|
308
|
+
|
309
|
+
for ( CXMLElement * child in elem.children )
|
310
|
+
{
|
311
|
+
if ( NO == [child isKindOfClass:[CXMLElement class]] )
|
312
|
+
continue;
|
313
|
+
|
314
|
+
[self parseElement:child forLayout:layout];
|
315
|
+
}
|
316
|
+
}
|
317
|
+
|
318
|
+
- (void)parseStyle:(CXMLElement *)elem
|
319
|
+
{
|
320
|
+
BeeUIStyle * style = [[[BeeUIStyle alloc] init] autorelease];
|
321
|
+
if ( style )
|
322
|
+
{
|
323
|
+
NSString * elemID = [[elem attributeForName:@"id"] stringValue];
|
324
|
+
if ( elemID )
|
325
|
+
{
|
326
|
+
style.name = elemID;
|
327
|
+
}
|
328
|
+
|
329
|
+
NSString * text = [elem stringValue].trim;
|
330
|
+
if ( [text hasPrefix:@"{"] )
|
331
|
+
{
|
332
|
+
NSDictionary * props = [text objectFromJSONString];
|
333
|
+
if ( props && props.count )
|
334
|
+
{
|
335
|
+
[style.properties addEntriesFromDictionary:props];
|
336
|
+
}
|
337
|
+
}
|
338
|
+
else
|
339
|
+
{
|
340
|
+
NSArray * segments = [text componentsSeparatedByString:@";"];
|
341
|
+
for ( NSString * seg in segments )
|
342
|
+
{
|
343
|
+
NSArray * keyValue = [seg componentsSeparatedByString:@":"];
|
344
|
+
if ( keyValue.count == 2 )
|
345
|
+
{
|
346
|
+
NSString * key = [keyValue objectAtIndex:0];
|
347
|
+
NSString * val = [keyValue objectAtIndex:1];
|
348
|
+
|
349
|
+
key = key.trim.unwrap;
|
350
|
+
val = val.trim.unwrap;
|
351
|
+
|
352
|
+
[style.properties setObject:val forKey:key];
|
353
|
+
}
|
354
|
+
}
|
355
|
+
}
|
356
|
+
|
357
|
+
[self.rootStyles setObject:style forKey:style.name];
|
358
|
+
}
|
359
|
+
}
|
360
|
+
|
361
|
+
- (void)parseElement:(CXMLElement *)elem forLayout:(BeeUILayout *)layout
|
362
|
+
{
|
363
|
+
NSInteger elemType = [self guessElementType:elem];
|
364
|
+
|
365
|
+
if ( self.ELEM_TYPE_TEMPLATE == elemType )
|
366
|
+
{
|
367
|
+
[self parseTemplate:elem forLayout:layout];
|
368
|
+
}
|
369
|
+
else if ( self.ELEM_TYPE_LAYOUT == elemType )
|
370
|
+
{
|
371
|
+
[self parseLayout:elem forLayout:layout];
|
372
|
+
}
|
373
|
+
else if ( self.ELEM_TYPE_CONTAINER == elemType )
|
374
|
+
{
|
375
|
+
[self parseContainer:elem forLayout:layout];
|
376
|
+
}
|
377
|
+
else if ( self.ELEM_TYPE_SUBVIEW == elemType )
|
378
|
+
{
|
379
|
+
[self parseSubview:elem forLayout:layout];
|
380
|
+
}
|
381
|
+
else if ( self.ELEM_TYPE_SPACE == elemType )
|
382
|
+
{
|
383
|
+
[self parseSpace:elem forLayout:layout];
|
384
|
+
}
|
385
|
+
else if ( self.ELEM_TYPE_STYLE == elemType )
|
386
|
+
{
|
387
|
+
[self parseStyle:elem];
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
- (void)matchStylesForLayout:(BeeUILayout *)layout
|
392
|
+
{
|
393
|
+
if ( layout.styleID )
|
394
|
+
{
|
395
|
+
BeeUIStyle * style = [self.rootStyles objectForKey:layout.styleID];
|
396
|
+
if ( style )
|
397
|
+
{
|
398
|
+
layout.style = style;
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
402
|
+
for ( BeeUILayout * subLayout in layout.childs )
|
403
|
+
{
|
404
|
+
[self matchStylesForLayout:subLayout];
|
405
|
+
}
|
406
|
+
}
|
407
|
+
|
408
|
+
- (BOOL)parse:(NSData *)data
|
409
|
+
{
|
410
|
+
if ( nil == data )
|
411
|
+
return NO;
|
412
|
+
|
413
|
+
[self.rootStyles removeAllObjects];
|
414
|
+
|
415
|
+
NSError * error = nil;
|
416
|
+
CXMLDocument * doc = [[[CXMLDocument alloc] initWithData:data encoding:NSUTF8StringEncoding options:0 error:&error] autorelease];
|
417
|
+
if ( nil == doc )
|
418
|
+
{
|
419
|
+
CC( @"Failed to open XML document" );
|
420
|
+
return NO;
|
421
|
+
}
|
422
|
+
|
423
|
+
CXMLElement * root = doc.rootElement;
|
424
|
+
if ( nil == root )
|
425
|
+
{
|
426
|
+
CC( @"Root node not found" );
|
427
|
+
return NO;
|
428
|
+
}
|
429
|
+
|
430
|
+
[self parseElement:root forLayout:nil];
|
431
|
+
[self matchStylesForLayout:self.rootLayout];
|
432
|
+
|
433
|
+
return YES;
|
434
|
+
}
|
435
|
+
|
436
|
+
@end
|
437
|
+
|
438
|
+
#endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
@@ -0,0 +1,60 @@
|
|
1
|
+
//
|
2
|
+
// ______ ______ ______
|
3
|
+
// /\ __ \ /\ ___\ /\ ___\
|
4
|
+
// \ \ __< \ \ __\_ \ \ __\_
|
5
|
+
// \ \_____\ \ \_____\ \ \_____\
|
6
|
+
// \/_____/ \/_____/ \/_____/
|
7
|
+
//
|
8
|
+
// Copyright (c) 2012 BEE creators
|
9
|
+
// http://www.whatsbug.com
|
10
|
+
//
|
11
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
12
|
+
// copy of this software and associated documentation files (the "Software"),
|
13
|
+
// to deal in the Software without restriction, including without limitation
|
14
|
+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
15
|
+
// and/or sell copies of the Software, and to permit persons to whom the
|
16
|
+
// Software is furnished to do so, subject to the following conditions:
|
17
|
+
//
|
18
|
+
// The above copyright notice and this permission notice shall be included in
|
19
|
+
// all copies or substantial portions of the Software.
|
20
|
+
//
|
21
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
27
|
+
// IN THE SOFTWARE.
|
28
|
+
//
|
29
|
+
//
|
30
|
+
// Bee_ViewLayout.h
|
31
|
+
//
|
32
|
+
|
33
|
+
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
34
|
+
|
35
|
+
#import "Bee_Precompile.h"
|
36
|
+
|
37
|
+
#import "Bee_UICollection.h"
|
38
|
+
#import "Bee_UILayout.h"
|
39
|
+
#import "Bee_UIQuery.h"
|
40
|
+
#import "Bee_UIStyle.h"
|
41
|
+
#import "Bee_UITemplate.h"
|
42
|
+
|
43
|
+
#import "BeeUIQuery+BeeUIStyle.h"
|
44
|
+
#import "BeeUIStyle+BeeUIQuery.h"
|
45
|
+
|
46
|
+
#import "UIView+BeeUIStyle.h"
|
47
|
+
#import "UIButton+BeeUIStyle.h"
|
48
|
+
#import "UILabel+BeeUIStyle.h"
|
49
|
+
#import "UIImageView+BeeUIStyle.h"
|
50
|
+
#import "UITextView+BeeUIStyle.h"
|
51
|
+
#import "UITextField+BeeUIStyle.h"
|
52
|
+
#import "UIViewController+BeeUIStyle.h"
|
53
|
+
|
54
|
+
#import "UIView+BeeUIQuery.h"
|
55
|
+
#import "UIViewController+BeeUIQuery.h"
|
56
|
+
|
57
|
+
#import "UIView+BeeUILayout.h"
|
58
|
+
#import "UIViewController+BeeUILayout.h"
|
59
|
+
|
60
|
+
#endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
//
|
2
|
+
// ______ ______ ______
|
3
|
+
// /\ __ \ /\ ___\ /\ ___\
|
4
|
+
// \ \ __< \ \ __\_ \ \ __\_
|
5
|
+
// \ \_____\ \ \_____\ \ \_____\
|
6
|
+
// \/_____/ \/_____/ \/_____/
|
7
|
+
//
|
8
|
+
// Copyright (c) 2012 BEE creators
|
9
|
+
// http://www.whatsbug.com
|
10
|
+
//
|
11
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
12
|
+
// copy of this software and associated documentation files (the "Software"),
|
13
|
+
// to deal in the Software without restriction, including without limitation
|
14
|
+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
15
|
+
// and/or sell copies of the Software, and to permit persons to whom the
|
16
|
+
// Software is furnished to do so, subject to the following conditions:
|
17
|
+
//
|
18
|
+
// The above copyright notice and this permission notice shall be included in
|
19
|
+
// all copies or substantial portions of the Software.
|
20
|
+
//
|
21
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
27
|
+
// IN THE SOFTWARE.
|
28
|
+
//
|
29
|
+
//
|
30
|
+
// Bee_ViewLayout.m
|
31
|
+
//
|
32
|
+
|
33
|
+
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
34
|
+
|
35
|
+
#import "Bee_ViewLayout.h"
|
36
|
+
|
37
|
+
#endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
@@ -0,0 +1,45 @@
|
|
1
|
+
//
|
2
|
+
// ______ ______ ______
|
3
|
+
// /\ __ \ /\ ___\ /\ ___\
|
4
|
+
// \ \ __< \ \ __\_ \ \ __\_
|
5
|
+
// \ \_____\ \ \_____\ \ \_____\
|
6
|
+
// \/_____/ \/_____/ \/_____/
|
7
|
+
//
|
8
|
+
// Copyright (c) 2012 BEE creators
|
9
|
+
// http://www.whatsbug.com
|
10
|
+
//
|
11
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
12
|
+
// copy of this software and associated documentation files (the "Software"),
|
13
|
+
// to deal in the Software without restriction, including without limitation
|
14
|
+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
15
|
+
// and/or sell copies of the Software, and to permit persons to whom the
|
16
|
+
// Software is furnished to do so, subject to the following conditions:
|
17
|
+
//
|
18
|
+
// The above copyright notice and this permission notice shall be included in
|
19
|
+
// all copies or substantial portions of the Software.
|
20
|
+
//
|
21
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
27
|
+
// IN THE SOFTWARE.
|
28
|
+
//
|
29
|
+
//
|
30
|
+
// BeeUIQuery+BeeUIStyle.h
|
31
|
+
//
|
32
|
+
|
33
|
+
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
34
|
+
|
35
|
+
#import "Bee_Precompile.h"
|
36
|
+
#import "Bee_UIQuery.h"
|
37
|
+
#import "Bee_UIStyle.h"
|
38
|
+
|
39
|
+
#pragma mark -
|
40
|
+
|
41
|
+
@interface BeeUIQuery(BeeUIStyle)
|
42
|
+
@property (nonatomic, readonly) BeeUIStyle * style;
|
43
|
+
@end
|
44
|
+
|
45
|
+
#endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
//
|
2
|
+
// ______ ______ ______
|
3
|
+
// /\ __ \ /\ ___\ /\ ___\
|
4
|
+
// \ \ __< \ \ __\_ \ \ __\_
|
5
|
+
// \ \_____\ \ \_____\ \ \_____\
|
6
|
+
// \/_____/ \/_____/ \/_____/
|
7
|
+
//
|
8
|
+
// Copyright (c) 2012 BEE creators
|
9
|
+
// http://www.whatsbug.com
|
10
|
+
//
|
11
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
12
|
+
// copy of this software and associated documentation files (the "Software"),
|
13
|
+
// to deal in the Software without restriction, including without limitation
|
14
|
+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
15
|
+
// and/or sell copies of the Software, and to permit persons to whom the
|
16
|
+
// Software is furnished to do so, subject to the following conditions:
|
17
|
+
//
|
18
|
+
// The above copyright notice and this permission notice shall be included in
|
19
|
+
// all copies or substantial portions of the Software.
|
20
|
+
//
|
21
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
27
|
+
// IN THE SOFTWARE.
|
28
|
+
//
|
29
|
+
//
|
30
|
+
// BeeUIQuery+BeeUIStyle.m
|
31
|
+
//
|
32
|
+
|
33
|
+
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
34
|
+
|
35
|
+
#import "Bee_Precompile.h"
|
36
|
+
#import "BeeUIQuery+BeeUIStyle.h"
|
37
|
+
#include <objc/runtime.h>
|
38
|
+
#include <execinfo.h>
|
39
|
+
|
40
|
+
#pragma mark -
|
41
|
+
|
42
|
+
@implementation BeeUIQuery(BeeUIStyle)
|
43
|
+
|
44
|
+
@dynamic style;
|
45
|
+
|
46
|
+
- (BeeUIStyle *)style
|
47
|
+
{
|
48
|
+
BeeUIStyle * s = [[[BeeUIStyle alloc] init] autorelease];
|
49
|
+
[s copyFrom:self];
|
50
|
+
return s;
|
51
|
+
}
|
52
|
+
|
53
|
+
@end
|
54
|
+
|
55
|
+
#endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
@@ -0,0 +1,45 @@
|
|
1
|
+
//
|
2
|
+
// ______ ______ ______
|
3
|
+
// /\ __ \ /\ ___\ /\ ___\
|
4
|
+
// \ \ __< \ \ __\_ \ \ __\_
|
5
|
+
// \ \_____\ \ \_____\ \ \_____\
|
6
|
+
// \/_____/ \/_____/ \/_____/
|
7
|
+
//
|
8
|
+
// Copyright (c) 2012 BEE creators
|
9
|
+
// http://www.whatsbug.com
|
10
|
+
//
|
11
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
12
|
+
// copy of this software and associated documentation files (the "Software"),
|
13
|
+
// to deal in the Software without restriction, including without limitation
|
14
|
+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
15
|
+
// and/or sell copies of the Software, and to permit persons to whom the
|
16
|
+
// Software is furnished to do so, subject to the following conditions:
|
17
|
+
//
|
18
|
+
// The above copyright notice and this permission notice shall be included in
|
19
|
+
// all copies or substantial portions of the Software.
|
20
|
+
//
|
21
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
27
|
+
// IN THE SOFTWARE.
|
28
|
+
//
|
29
|
+
//
|
30
|
+
// BeeUIStyle+BeeUIQuery.h
|
31
|
+
//
|
32
|
+
|
33
|
+
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|
34
|
+
|
35
|
+
#import "Bee_Precompile.h"
|
36
|
+
#import "Bee_UIQuery.h"
|
37
|
+
#import "Bee_UIStyle.h"
|
38
|
+
|
39
|
+
#pragma mark -
|
40
|
+
|
41
|
+
@interface BeeUIStyle(BeeUIQuery)
|
42
|
+
@property (nonatomic, readonly) BeeUIQuery * query;
|
43
|
+
@end
|
44
|
+
|
45
|
+
#endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
|