├── .gitignore
├── .gitmodules
├── README.md
├── v2
├── doc
│ ├── doc
│ │ └── docset-installed.txt
│ └── docset-installed.txt
├── vApp
│ ├── vApp.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── vApp.xccheckout
│ └── vApp
│ │ ├── en.lproj
│ │ └── InfoPlist.strings
│ │ ├── vApp-Info.plist
│ │ └── vApp-Prefix.pch
├── vDB
│ ├── vDB.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── vDB.xccheckout
│ └── vDB
│ │ ├── en.lproj
│ │ └── InfoPlist.strings
│ │ ├── vDB-Info.plist
│ │ └── vDB-Prefix.pch
├── vDataOutlet
│ ├── vDataOutlet.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── vDataOutlet.xccheckout
│ └── vDataOutlet
│ │ ├── en.lproj
│ │ └── InfoPlist.strings
│ │ ├── vDataOutlet-Info.plist
│ │ └── vDataOutlet-Prefix.pch
├── vDocument
│ ├── vDocument.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── vDocument.xccheckout
│ └── vDocument
│ │ ├── IVTCanvasElement.h
│ │ ├── IVTLayoutElement.h
│ │ ├── IVTViewEntity.h
│ │ ├── VTBRElement.h
│ │ ├── VTBRElement.m
│ │ ├── VTCanvasElement.h
│ │ ├── VTCanvasElement.m
│ │ ├── VTDocument.h
│ │ ├── VTDocument.m
│ │ ├── VTDocumentView.h
│ │ ├── VTDocumentView.m
│ │ ├── VTElement+Value.h
│ │ ├── VTElement+Value.m
│ │ ├── VTElement.h
│ │ ├── VTElement.m
│ │ ├── VTElementStyle.h
│ │ ├── VTElementStyle.m
│ │ ├── VTElementXMLParser.h
│ │ ├── VTElementXMLParser.m
│ │ ├── VTLayoutElement.h
│ │ ├── VTLayoutElement.m
│ │ ├── en.lproj
│ │ └── InfoPlist.strings
│ │ ├── vDocument-Info.plist
│ │ ├── vDocument-Prefix.pch
│ │ ├── vDocument.h
│ │ └── vDocument.m
├── vElement
│ ├── doc
│ │ └── docset-installed.txt
│ ├── vElement.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── vElement.xccheckout
│ └── vElement
│ │ ├── VTElement.h
│ │ ├── VTElement.m
│ │ ├── VTElementParser.h
│ │ ├── VTElementParser.m
│ │ ├── en.lproj
│ │ └── InfoPlist.strings
│ │ ├── vElement-Info.plist
│ │ └── vElement-Prefix.pch
├── vService
│ ├── vService.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── vService.xccheckout
│ └── vService
│ │ ├── en.lproj
│ │ └── InfoPlist.strings
│ │ ├── vService-Info.plist
│ │ └── vService-Prefix.pch
├── vStyleSheet
│ ├── vStyleSheet.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── vStyleSheet.xccheckout
│ └── vStyleSheet
│ │ ├── en.lproj
│ │ └── InfoPlist.strings
│ │ ├── vStyleSheet-Info.plist
│ │ └── vStyleSheet-Prefix.pch
├── vTeam 2.0.mmap
├── vTool
│ ├── vTool.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── vTool.xccheckout
│ └── vTool
│ │ ├── en.lproj
│ │ └── InfoPlist.strings
│ │ ├── vTool-Info.plist
│ │ ├── vTool-Prefix.pch
│ │ ├── vTool.h
│ │ └── vTool.m
└── vUI
│ ├── vUI.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ └── vUI.xccheckout
│ └── vUI
│ ├── en.lproj
│ └── InfoPlist.strings
│ ├── vUI-Info.plist
│ └── vUI-Prefix.pch
├── vTeam.dmg
└── vTeam
├── Framework.sh
├── doc
└── docset-installed.txt
├── vTeam.xcodeproj
├── project.pbxproj
└── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ └── vTeam.xccheckout
└── vTeam
├── Chart
├── IVTChart.h
├── IVTChartAnimation.h
├── IVTChartComponent.h
├── IVTChartContainer.h
├── IVTChartDraw.h
├── IVTChartView.h
├── VTChart.h
├── VTChart.m
├── VTChartArc.h
├── VTChartArc.m
├── VTChartComponent.h
├── VTChartComponent.m
├── VTChartContainer.h
├── VTChartContainer.m
├── VTChartDataReader.h
├── VTChartDataReader.m
├── VTChartLabel.h
├── VTChartLabel.m
├── VTChartRectangle.h
├── VTChartRectangle.m
├── VTChartTipLabel.h
├── VTChartTipLabel.m
├── VTChartView.h
├── VTChartView.m
├── VTPieChart.h
├── VTPieChart.m
├── VTPillarChart.h
└── VTPillarChart.m
├── DOM
├── NSString+VTDOMSource.h
├── NSString+VTDOMSource.m
├── UIActivityIndicatorView+VTDOMElement.h
├── UIActivityIndicatorView+VTDOMElement.m
├── UIButton+VTDOMElement.h
├── UIButton+VTDOMElement.m
├── UIControl+VTDOMElement.h
├── UIControl+VTDOMElement.m
├── UILabel+VTDOMElement.h
├── UILabel+VTDOMElement.m
├── UIView+VTDOMElement.h
├── UIView+VTDOMElement.m
├── VTDOM.h
├── VTDOM.m
├── VTDOMActionElement.h
├── VTDOMActionElement.m
├── VTDOMActionViewElement.h
├── VTDOMActionViewElement.m
├── VTDOMBRElement.h
├── VTDOMBRElement.m
├── VTDOMContainerElement.h
├── VTDOMContainerElement.m
├── VTDOMDocument.h
├── VTDOMDocument.m
├── VTDOMElement+Control.h
├── VTDOMElement+Control.m
├── VTDOMElement+Frame.h
├── VTDOMElement+Frame.m
├── VTDOMElement+Layout.h
├── VTDOMElement+Layout.m
├── VTDOMElement+Render.h
├── VTDOMElement+Render.m
├── VTDOMElement+Style.h
├── VTDOMElement+Style.m
├── VTDOMElement.h
├── VTDOMElement.m
├── VTDOMHScrollElement.h
├── VTDOMHScrollElement.m
├── VTDOMImageElement.h
├── VTDOMImageElement.m
├── VTDOMLabel.h
├── VTDOMLabel.m
├── VTDOMLabelElement.h
├── VTDOMLabelElement.m
├── VTDOMLinkElement.h
├── VTDOMLinkElement.m
├── VTDOMPageScrollElement.h
├── VTDOMPageScrollElement.m
├── VTDOMParse.h
├── VTDOMParse.m
├── VTDOMRichElement.h
├── VTDOMRichElement.m
├── VTDOMScrollView.h
├── VTDOMScrollView.m
├── VTDOMStatusElement.h
├── VTDOMStatusElement.m
├── VTDOMStyle.h
├── VTDOMStyle.m
├── VTDOMStyleSheet.h
├── VTDOMStyleSheet.m
├── VTDOMTableElement.h
├── VTDOMTableElement.m
├── VTDOMTipElement.h
├── VTDOMTipElement.m
├── VTDOMVScrollElement.h
├── VTDOMVScrollElement.m
├── VTDOMView.h
├── VTDOMView.m
├── VTDOMViewElement.h
├── VTDOMViewElement.m
├── VTDOMWebContainerElement.h
├── VTDOMWebContainerElement.m
├── VTDOMWebViewElement.h
└── VTDOMWebViewElement.m
├── FDB
├── VTFDB.h
├── VTFDB.m
├── VTFDBIndex.h
└── VTFDBIndex.m
├── GIFView.h
├── GIFView.m
├── Grid
├── Grid.h
├── Grid.m
├── GridApposeDataView.h
├── GridApposeDataView.m
├── GridApposeHeadView.h
├── GridApposeHeadView.m
├── GridDataView.h
├── GridDataView.m
├── GridHeadView.h
├── GridHeadView.m
├── GridScrollView.h
├── GridScrollView.m
├── IGrid.h
├── IGridCell.h
├── IGridColumn.h
├── IGridDraw.h
├── IGridRow.h
├── IGridValue.h
├── IGridView.h
├── NSString+Grid.h
└── NSString+Grid.m
├── IVTAPICancelTask.h
├── IVTAPITask.h
├── IVTAction.h
├── IVTAuthContext.h
├── IVTContext.h
├── IVTController.h
├── IVTDownlinkPageTask.h
├── IVTDownlinkTask.h
├── IVTFormEditor.h
├── IVTFormItemView.h
├── IVTImageTask.h
├── IVTService.h
├── IVTServiceContainer.h
├── IVTServiceContext.h
├── IVTTask.h
├── IVTUIContext.h
├── IVTUIViewController.h
├── IVTURLDownlinkTask.h
├── IVTUplinkTask.h
├── Montage
├── VTMontage.h
├── VTMontage.m
├── VTMontageElement.h
├── VTMontageElement.m
├── VTMontageGroupElement.h
├── VTMontageGroupElement.m
├── VTMontageLocus.h
├── VTMontageLocus.m
├── VTMontagePlayer.h
├── VTMontagePlayer.m
├── VTMontageScenes.h
├── VTMontageScenes.m
├── VTMontageViewElement.h
└── VTMontageViewElement.m
├── NSData+CCCryptor.h
├── NSData+CCCryptor.m
├── NSData+GZIP.h
├── NSData+GZIP.m
├── NSData+VTBASE64String.h
├── NSData+VTBASE64String.m
├── NSData+VTMD5String.h
├── NSData+VTMD5String.m
├── NSFileManager+VTMD5String.h
├── NSFileManager+VTMD5String.m
├── NSObject+VTValue.h
├── NSObject+VTValue.m
├── NSString+Pinyin.h
├── NSString+Pinyin.m
├── NSString+TextLength.h
├── NSString+TextLength.m
├── NSString+VTBASE64Decode.h
├── NSString+VTBASE64Decode.m
├── NSString+VTBASE64String.h
├── NSString+VTBASE64String.m
├── NSString+VTMD5String.h
├── NSString+VTMD5String.m
├── NSURL+QueryValue.h
├── NSURL+QueryValue.m
├── Rich
├── VTRich.h
├── VTRich.m
├── VTRichImageElement.h
├── VTRichImageElement.m
├── VTRichLinkElement.h
├── VTRichLinkElement.m
├── VTRichView.h
├── VTRichView.m
├── VTRichViewElement.h
└── VTRichViewElement.m
├── UIButton+VTStyle.h
├── UIButton+VTStyle.m
├── UIColor+UIImage.h
├── UIColor+UIImage.m
├── UIControl+VTDataOutlet.h
├── UIControl+VTDataOutlet.m
├── UIDevice+VTUUID.h
├── UIDevice+VTUUID.m
├── UIImage+GaussianBlur.h
├── UIImage+GaussianBlur.m
├── UIView+Hidden.h
├── UIView+Hidden.m
├── UIView+Image.h
├── UIView+Image.m
├── UIView+Search.h
├── UIView+Search.m
├── UIView+VTDataOutlet.h
├── UIView+VTDataOutlet.m
├── UIView+VTStyle.h
├── UIView+VTStyle.m
├── VTAPIRequestTask.h
├── VTAPIRequestTask.m
├── VTAPIResponseTask.h
├── VTAPIResponseTask.m
├── VTAPIService.h
├── VTAPIService.m
├── VTAPITask.h
├── VTAPITask.m
├── VTAction.h
├── VTAction.m
├── VTActionView.h
├── VTActionView.m
├── VTAlertView.h
├── VTAlertView.m
├── VTAnimationView.h
├── VTAnimationView.m
├── VTAppService.h
├── VTAppService.m
├── VTAppStatusView.h
├── VTAppStatusView.m
├── VTAppVersionTask.h
├── VTAppVersionTask.m
├── VTAudioService.h
├── VTAudioService.m
├── VTAudioTask.h
├── VTAudioTask.m
├── VTBEEventObject.h
├── VTBEEventObject.m
├── VTBESessionObject.h
├── VTBESessionObject.m
├── VTBarButtonItem.h
├── VTBarButtonItem.m
├── VTBehaviorObject.h
├── VTBehaviorObject.m
├── VTBehaviorService.h
├── VTBehaviorService.m
├── VTBehaviorTask.h
├── VTBehaviorTask.m
├── VTBehaviorTransactionTask.h
├── VTBehaviorTransactionTask.m
├── VTButton.h
├── VTButton.m
├── VTCleanupTask.h
├── VTCleanupTask.m
├── VTContainerDataController.h
├── VTContainerDataController.m
├── VTContainerLayout.h
├── VTContainerLayout.m
├── VTContainerView.h
├── VTContainerView.m
├── VTContentViewController.h
├── VTContentViewController.m
├── VTController.h
├── VTController.m
├── VTCrashService.h
├── VTCrashService.m
├── VTCrashTask.h
├── VTCrashTask.m
├── VTCreatorViewController.h
├── VTCreatorViewController.m
├── VTDBContext.h
├── VTDBContext.m
├── VTDBDataContext.h
├── VTDBDataContext.m
├── VTDBDataObject.h
├── VTDBDataObject.m
├── VTDBObject.h
├── VTDBObject.m
├── VTDataController.h
├── VTDataController.m
├── VTDataOutlet.h
├── VTDataOutlet.m
├── VTDataOutletContainer.h
├── VTDataOutletContainer.m
├── VTDataSource.h
├── VTDataSource.m
├── VTDocumentController.h
├── VTDocumentController.m
├── VTDocumentDataController.h
├── VTDocumentDataController.m
├── VTDocumentViewController.h
├── VTDocumentViewController.m
├── VTDownlinkService.h
├── VTDownlinkService.m
├── VTDragLoadingView.h
├── VTDragLoadingView.m
├── VTFallsContainerLayout.h
├── VTFallsContainerLayout.m
├── VTFeedbackService.h
├── VTFeedbackService.m
├── VTFeedbackTask.h
├── VTFeedbackTask.m
├── VTFlowContainerLayout.h
├── VTFlowContainerLayout.m
├── VTFlowViewLayout.h
├── VTFlowViewLayout.m
├── VTFoldViewController.h
├── VTFoldViewController.m
├── VTFormButton.h
├── VTFormButton.m
├── VTFormController.h
├── VTFormController.m
├── VTFormDateEditor.h
├── VTFormDateEditor.m
├── VTFormItem.h
├── VTFormItem.m
├── VTFormKeyboardEditor.h
├── VTFormKeyboardEditor.m
├── VTFormPickerEditor.h
├── VTFormPickerEditor.m
├── VTFormPickerEditorItem.h
├── VTFormPickerEditorItem.m
├── VTGatherService.h
├── VTGatherService.m
├── VTGatherTask.h
├── VTGatherTask.m
├── VTHeapViewController.h
├── VTHeapViewController.m
├── VTHtmlDataController.h
├── VTHtmlDataController.m
├── VTHttpFormBody.h
├── VTHttpFormBody.m
├── VTHttpService.h
├── VTHttpService.m
├── VTHttpTask.h
├── VTHttpTask.m
├── VTImageService.h
├── VTImageService.m
├── VTImageView.h
├── VTImageView.m
├── VTItemViewController.h
├── VTItemViewController.m
├── VTJSON.h
├── VTJSON.m
├── VTKeyboardController.h
├── VTKeyboardController.m
├── VTLayout.h
├── VTLayout.m
├── VTLayoutContainer.h
├── VTLayoutContainer.m
├── VTLayoutData.h
├── VTLayoutData.m
├── VTMonitorService.h
├── VTMonitorService.m
├── VTNavigationBar.h
├── VTNavigationBar.m
├── VTNavigationController.h
├── VTNavigationController.m
├── VTPageContainerLayout.h
├── VTPageContainerLayout.m
├── VTPageDataController.h
├── VTPageDataController.m
├── VTPageDataSource.h
├── VTPageDataSource.m
├── VTPopWindow.h
├── VTPopWindow.m
├── VTReportDocument.h
├── VTReportDocument.m
├── VTScrollView.h
├── VTScrollView.m
├── VTService.h
├── VTService.m
├── VTShell.h
├── VTShell.m
├── VTSqlite.h
├── VTSqlite.m
├── VTStatusDataSource.h
├── VTStatusDataSource.m
├── VTStatusGatherDataSource.h
├── VTStatusGatherDataSource.m
├── VTStatusView.h
├── VTStatusView.m
├── VTStyle.h
├── VTStyle.m
├── VTStyleController.h
├── VTStyleController.m
├── VTStyleOutlet.h
├── VTStyleOutlet.m
├── VTStyleOutletContainer.h
├── VTStyleOutletContainer.m
├── VTStyleSheet.h
├── VTStyleSheet.m
├── VTTabBar.h
├── VTTabBar.m
├── VTTabBarController.h
├── VTTabBarController.m
├── VTTabBarItem.h
├── VTTabBarItem.m
├── VTTabDataController.h
├── VTTabDataController.m
├── VTTabPageDataController.h
├── VTTabPageDataController.m
├── VTTabViewController.h
├── VTTabViewController.m
├── VTTableDataController.h
├── VTTableDataController.m
├── VTTableSection.h
├── VTTableSection.m
├── VTTableSource.h
├── VTTableSource.m
├── VTTableView.h
├── VTTableView.m
├── VTTableViewCell.h
├── VTTableViewCell.m
├── VTTask.h
├── VTTask.m
├── VTToolbar.h
├── VTToolbar.m
├── VTURLDataSource.h
├── VTURLDataSource.m
├── VTURLDocumentController.h
├── VTURLDocumentController.m
├── VTURLService.h
├── VTURLService.m
├── VTUnZip.h
├── VTUnZip.m
├── VTUplinkService.h
├── VTUplinkService.m
├── VTUplinkTask.h
├── VTUplinkTask.m
├── VTViewController.h
├── VTViewController.m
├── VTViewLayout.h
├── VTViewLayout.m
├── VTWebView.h
├── VTWebView.m
├── VTZoomView.h
├── VTZoomView.m
├── Vermin
├── vmDOMDocument.h
├── vmDOMDocument.m
├── vmDOMElement.h
├── vmDOMElement.m
├── vmVariant.h
└── vmVariant.m
├── en.lproj
└── InfoPlist.strings
├── pinyin
├── hpinyin.c
└── hpinyin.h
├── vTeam-Info.plist
├── vTeam-Prefix.pch
├── vTeam.h
├── vTeam.m
└── zh-Hans.lproj
└── InfoPlist.strings
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | .DS_Store
3 | */build/*
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | profile
14 | *.moved-aside
15 | DerivedData
16 | .idea/
17 | *.hmap
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "c"]
2 | path = c
3 | url = https://github.com/hailongz/c.git
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #vTeam.framework
2 | Checkout
3 | git clone https://github.com/hailongz/vTeam.git
4 | cd vTeam
5 | git submodule init
6 | git submodule update
7 |
8 | #Installing xcode project templates
9 | open vTeam.dmg
10 | copy vTeam to Templetes
11 |
12 | #初级使用入门
13 | http://v.youku.com/v_show/id_XNjkwMzE3MDQw.html
14 |
15 | #中级使用入门
16 | http://v.youku.com/v_show/id_XNjkwMzIwMTIw.html
17 |
18 | #高级使用入门
19 | http://v.youku.com/v_show/id_XNjkwMzIyODA0.html
20 |
--------------------------------------------------------------------------------
/v2/doc/doc/docset-installed.txt:
--------------------------------------------------------------------------------
1 | Documentation set was installed to Xcode!
2 |
3 | Path: /Users/hailongz/Library/Developer/Shared/Documentation/DocSets/org.hailong.vElement.docset
4 | Time: 2014-07-01 03:38:48 +0000
--------------------------------------------------------------------------------
/v2/doc/docset-installed.txt:
--------------------------------------------------------------------------------
1 | Documentation set was installed to Xcode!
2 |
3 | Path: /Users/hailongz/Library/Developer/Shared/Documentation/DocSets/org.hailong.vElement.docset
4 | Time: 2014-07-01 03:38:58 +0000
--------------------------------------------------------------------------------
/v2/vApp/vApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vApp/vApp/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vApp/vApp/vApp-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #import
10 |
11 | #ifndef DEBUG
12 |
13 | #define NSLog(...) {}
14 |
15 | #endif
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/v2/vDB/vDB.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vDB/vDB/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vDB/vDB/vDB-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #import
10 |
11 | #ifndef DEBUG
12 |
13 | #define NSLog(...) {}
14 |
15 | #endif
16 |
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/v2/vDataOutlet/vDataOutlet.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vDataOutlet/vDataOutlet/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vDataOutlet/vDataOutlet/vDataOutlet-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #import
10 |
11 | #ifndef DEBUG
12 |
13 | #define NSLog(...) {}
14 |
15 | #endif
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/IVTCanvasElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTCanvasElement.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTCanvasElement
14 |
15 | @property(nonatomic,readonly,getter=isHidden) BOOL hidden;
16 | @property(nonatomic,readonly) CGFloat cornerRadius;
17 |
18 | -(void) drawInContext:(CGContextRef) context;
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/IVTLayoutElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTLayoutElement.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IVTLayoutElement
12 |
13 | @property(nonatomic,assign) CGRect frame;
14 | @property(nonatomic,assign) CGSize contentSize;
15 | @property(nonatomic,readonly) UIEdgeInsets padding;
16 | @property(nonatomic,readonly) UIEdgeInsets margin;
17 | @property(nonatomic,readonly,getter=isLayouted) BOOL layouted;
18 |
19 | -(CGSize) layoutChildren:(UIEdgeInsets) padding;
20 |
21 | -(CGSize) layout:(CGSize) size;
22 |
23 | -(CGSize) layout;
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/IVTViewEntity.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTViewEntity.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class VTElement;
12 |
13 | @protocol IVTViewEntity
14 |
15 | -(void) elementDoAction:(id) viewEntity element:(VTElement *) element;
16 |
17 | -(void) elementDoNeedsDisplay:(VTElement *) element;
18 |
19 | -(UIView *) elementViewOf:(VTElement *) element viewClass:(Class) viewClass;
20 |
21 | -(void) elementLayoutView:(VTElement *) element view:(UIView *) view;
22 |
23 | -(void) elementVisable:(id) viewEntity element:(VTElement *) element;
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTBRElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTBRElement.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTBRElement : VTElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTBRElement.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTBRElement.m
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTBRElement.h"
10 |
11 | @implementation VTBRElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTCanvasElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTCanvasElement.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface VTCanvasElement : VTLayoutElement
13 |
14 | @property(nonatomic,readonly) UIColor * backgroundColor;
15 | @property(nonatomic,readonly) UIColor * borderColor;
16 | @property(nonatomic,readonly) CGFloat borderWidth;
17 |
18 | -(void) onDrawBackgroundInContext:(CGContextRef) context;
19 |
20 | -(void) onDrawInContext:(CGContextRef) context;
21 |
22 | -(void) onDrawBorderInContext:(CGContextRef) context;
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTDocument.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDocument.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDocument : NSObject
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTDocument.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTDocument.m
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTDocument.h"
10 |
11 | @implementation VTDocument
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTDocumentView.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDocumentView.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @interface VTDocumentView : UIView
15 |
16 | @property(nonatomic,weak) id delegate;
17 | @property(nonatomic,retain) VTElement * element;
18 | @property(nonatomic,assign,getter = isAllowAutoLayout) BOOL allowAutoLayout;
19 |
20 | @end
21 |
22 | @protocol VTDocumentViewDelegate
23 |
24 | @optional
25 |
26 | -(void) documentView:(VTDocumentView *) documentView onActionViewEntity:(id) viewEntity element:(VTElement *) element;
27 |
28 | -(void) documentView:(VTDocumentView *) documentView onVisableViewEntity:(id) viewEntity element:(VTElement *) element;
29 |
30 | @end
31 |
32 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTElement+Value.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTElement+Value.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTElement (Value)
12 |
13 | -(NSString *) stringValueForKey:(NSString *) key defaultValue:(NSString *) defaultValue;
14 |
15 | -(NSString *) stringValueForKey:(NSString *) key;
16 |
17 | -(CGFloat) floatValueForKey:(NSString *) key defaultValue:(CGFloat) defaultValue;
18 |
19 | -(CGFloat) floatValueForKey:(NSString *) key;
20 |
21 | -(CGFloat) floatValueForKey:(NSString *)key of:(CGFloat) of defaultValue:(CGFloat)defaultValue;
22 |
23 | -(CGFloat) floatValueForKey:(NSString *)key of:(CGFloat) of;
24 |
25 | -(BOOL) booleanValueForKey:(NSString *) key defaultValue:(BOOL) defaultValue;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTElementStyle.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTElementStyle.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTElementStyle : NSObject
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTElementStyle.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTElementStyle.m
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTElementStyle.h"
10 |
11 | @implementation VTElementStyle
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTElementXMLParser.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTElementXMLParser.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTElementXMLParser : NSObject
14 |
15 | -(void) loadLibrarys;
16 |
17 | -(void) setElementClass:(Class) clazz forName:(NSString *) name;
18 |
19 | -(VTElement *) parse:(NSXMLParser *) parser;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/VTLayoutElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTLayoutElement.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-2.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 |
13 | @interface VTLayoutElement : VTElement
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/vDocument-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #import
10 |
11 | #ifndef DEBUG
12 |
13 | #define NSLog(...) {}
14 |
15 | #endif
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/vDocument.h:
--------------------------------------------------------------------------------
1 | //
2 | // vDocument.h
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 |
--------------------------------------------------------------------------------
/v2/vDocument/vDocument/vDocument.m:
--------------------------------------------------------------------------------
1 | //
2 | // vDocument.m
3 | // vDocument
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "vDocument.h"
10 |
11 |
--------------------------------------------------------------------------------
/v2/vElement/doc/docset-installed.txt:
--------------------------------------------------------------------------------
1 | Documentation set was installed to Xcode!
2 |
3 | Path: /Users/hailongz/Library/Developer/Shared/Documentation/DocSets/org.hailong.vElement.docset
4 | Time: 2014-07-01 03:45:28 +0000
--------------------------------------------------------------------------------
/v2/vElement/vElement.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vElement/vElement/VTElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTElement.h
3 | // vElement
4 | //
5 | // Created by zhang hailong on 14-6-30.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTElement : NSObject
12 |
13 | @property(nonatomic,retain) NSString * ns;
14 | @property(nonatomic,retain) NSString * name;
15 | @property(nonatomic,retain) NSString * text;
16 | @property(nonatomic,readonly) NSDictionary * attributes;
17 | @property(nonatomic,weak) VTElement * parentElement;
18 | @property(nonatomic,readonly) NSArray * childs;
19 |
20 | -(void) setAttributeValue:(NSString *) value forKey:(NSString *) key;
21 |
22 | -(void) removeAttributeForKey:(NSString *) key;
23 |
24 | -(void) removeAllAttributes;
25 |
26 | -(NSString *) attributeValueForKey:(NSString *) key;
27 |
28 | -(void) addElement:(VTElement *) element;
29 |
30 | -(void) insertElement:(VTElement *) element atIndex:(NSUInteger) index;
31 |
32 | -(void) removeFromParentElement;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/v2/vElement/vElement/VTElementParser.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTElementParser.h
3 | // vElement
4 | //
5 | // Created by zhang hailong on 14-6-30.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTElementParser : NSObject
14 |
15 | -(BOOL) parseXML:(NSString *) xmlContent url:(NSURL *) url toElement:(VTElement *) element atIndex:(NSUInteger) index;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/v2/vElement/vElement/VTElementParser.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTElementParser.m
3 | // vElement
4 | //
5 | // Created by zhang hailong on 14-6-30.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTElementParser.h"
10 |
11 | #include
12 |
13 | #include
14 |
15 | @implementation VTElementParser
16 |
17 | -(BOOL) parseXML:(NSString *) xmlContent url:(NSURL *) url toElement:(VTElement *) element atIndex:(NSUInteger) index{
18 |
19 |
20 | NSXMLParser
21 | xmlDocPtr doc;
22 |
23 | doc = xmlReadDoc((const xmlChar *)[xmlContent UTF8String], [[url absoluteString] UTF8String]
24 | , "utf-8", XML_PARSE_RECOVER);
25 |
26 | if(doc == nil){
27 | return NO;
28 | }
29 |
30 |
31 | return YES;
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/v2/vElement/vElement/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vElement/vElement/vElement-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/v2/vService/vService.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vService/vService/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vService/vService/vService-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #import
10 |
11 | #ifndef DEBUG
12 |
13 | #define NSLog(...) {}
14 |
15 | #endif
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/v2/vStyleSheet/vStyleSheet.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vStyleSheet/vStyleSheet/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vStyleSheet/vStyleSheet/vStyleSheet-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #import
10 |
11 | #ifndef DEBUG
12 |
13 | #define NSLog(...) {}
14 |
15 | #endif
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/v2/vTeam 2.0.mmap:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/theron-dev/vTeam/2883cece61e878c4299c7dc90ceca8a65853d0aa/v2/vTeam 2.0.mmap
--------------------------------------------------------------------------------
/v2/vTool/vTool.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vTool/vTool/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vTool/vTool/vTool-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #import
10 |
11 | #ifndef DEBUG
12 |
13 | #define NSLog(...) {}
14 |
15 | #endif
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/v2/vTool/vTool/vTool.h:
--------------------------------------------------------------------------------
1 | //
2 | // vTool.h
3 | // vTool
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 |
12 |
--------------------------------------------------------------------------------
/v2/vTool/vTool/vTool.m:
--------------------------------------------------------------------------------
1 | //
2 | // vTool.m
3 | // vTool
4 | //
5 | // Created by zhang hailong on 14-7-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "vTool.h"
10 |
--------------------------------------------------------------------------------
/v2/vUI/vUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/v2/vUI/vUI/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/v2/vUI/vUI/vUI-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #import
10 |
11 | #ifndef DEBUG
12 |
13 | #define NSLog(...) {}
14 |
15 | #endif
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/vTeam.dmg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/theron-dev/vTeam/2883cece61e878c4299c7dc90ceca8a65853d0aa/vTeam.dmg
--------------------------------------------------------------------------------
/vTeam/Framework.sh:
--------------------------------------------------------------------------------
1 | #/bin/sh
2 |
3 | rm -rf build
4 |
5 |
6 | if [ $1 ]
7 | then
8 |
9 | target=$1
10 |
11 | else
12 |
13 | target=Release
14 |
15 | fi
16 |
17 |
18 | xcodebuild -configuration $target
19 | xcodebuild -sdk iphonesimulator7.1 -configuration $target
20 | cp -a build/$target-iphoneos build/$target
21 | lipo -create build/$target-iphoneos/vTeam.framework/vTeam build/$target-iphonesimulator/vTeam.framework/vTeam -output build/$target/vTeam.framework/vTeam
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/vTeam/doc/docset-installed.txt:
--------------------------------------------------------------------------------
1 | Documentation set was installed to Xcode!
2 |
3 | Path: /Users/hailongz/Library/Developer/Shared/Documentation/DocSets/org.hailong.vTeam.docset
4 | Time: 2014-07-01 03:54:02 +0000
--------------------------------------------------------------------------------
/vTeam/vTeam.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/IVTChart.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTChart.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTChart
14 |
15 | @property(nonatomic,retain) IBOutlet id dataSource;
16 |
17 | -(id) initWithSize:(CGSize) size;
18 |
19 | -(void) reloadData;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/IVTChartAnimation.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTChartAnimation.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IVTChartAnimation
12 |
13 | @property(nonatomic,assign) double animationValue;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/IVTChartComponent.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTChartComponent.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @protocol IVTChartComponent
15 |
16 | @property(nonatomic,assign) CGPoint position;
17 | @property(nonatomic,assign) CGSize size;
18 | @property(nonatomic,assign) CGPoint anchor;
19 |
20 | -(CGRect) frameInRect:(CGRect) rect;
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/IVTChartContainer.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTChartContainer.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTChartContainer
14 |
15 | @property(nonatomic,readonly) NSArray * components;
16 | @property(nonatomic,assign,getter = isClips) BOOL clips;
17 |
18 | -(void) addComponent:(id) component;
19 |
20 | -(void) removeComponent:(id) component;
21 |
22 | -(void) removeAllComponents;
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/IVTChartDraw.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTChartDraw.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IVTChartDraw
12 |
13 | -(void) drawToContext:(CGContextRef) ctx rect:(CGRect) rect;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/IVTChartView.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTChartView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTChartView
14 |
15 | @property(nonatomic,retain) id chart;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChart.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChart.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @interface VTChart : VTChartContainer
15 |
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChart.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTChart.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTChart.h"
10 |
11 | #import
12 |
13 |
14 | @implementation VTChart
15 |
16 | @synthesize dataSource = _dataSource;
17 |
18 | -(void) dealloc{
19 | [_dataSource release];
20 | [super dealloc];
21 | }
22 |
23 | -(void) reloadData{
24 |
25 | }
26 |
27 | -(id) initWithSize:(CGSize) size{
28 | if((self = [super init])){
29 | self.anchor = CGPointZero;
30 | self.position = CGPointZero;
31 | self.size = size;
32 | }
33 | return self;
34 | }
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartArc.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartArc.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTChartArc : VTChartComponent
12 |
13 | @property(nonatomic,assign) CGFloat borderWidth;
14 | @property(nonatomic,retain) UIColor * borderColor;
15 | @property(nonatomic,retain) UIColor * backgroundColor;
16 | @property(nonatomic,assign) CGFloat radius;
17 | @property(nonatomic,assign) CGFloat startAngle;
18 | @property(nonatomic,assign) CGFloat endAngle;
19 |
20 | @property(nonatomic,readonly) CGPoint vertex;
21 |
22 | @property(nonatomic,readonly) CGFloat angle;
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartComponent.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartComponent.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTChartComponent : NSObject
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartComponent.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartComponent.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTChartComponent.h"
10 |
11 | @implementation VTChartComponent
12 |
13 | @synthesize position = _position;
14 | @synthesize size = _size;
15 | @synthesize anchor = _anchor;
16 | @synthesize animationValue = _animationValue;
17 |
18 | -(id) init{
19 | if((self = [super init])){
20 | _anchor = CGPointMake(0.5, 0.5);
21 | _animationValue = 1.0;
22 | }
23 | return self;
24 | }
25 |
26 | -(CGRect) frameInRect:(CGRect)rect{
27 | return CGRectMake(_position.x - _size.width * _anchor.x, _position.y - _size.height * _anchor.y
28 | , _size.width, _size.height);
29 | }
30 |
31 |
32 | -(void) drawToContext:(CGContextRef) ctx rect:(CGRect) rect{
33 |
34 | }
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartContainer.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartContainer.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTChartContainer : VTChartComponent
14 |
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartDataReader.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartDataReader.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTChartDataReader : NSObject
12 |
13 | @property(nonatomic,retain) NSString * dataKeyPath;
14 | @property(nonatomic,retain) id defaultValue;
15 |
16 | -(double) doubleValue:(id) dataItem;
17 |
18 | -(int) intValue:(id) dataItem;
19 |
20 | -(float) floatValue:(id) dataItem;
21 |
22 | -(NSString *) stringValue:(id) dataItem;
23 |
24 | -(NSDictionary *) dictionaryValue:(id) dataItem;
25 |
26 | -(NSArray *) arrayValue:(id) dataItem;
27 |
28 | -(id) objectValue:(id) dataItem;
29 |
30 | -(NSArray *) dataItemsValue:(id) dataSource;
31 |
32 | -(UIColor *) colorValue:(id) dataItem;
33 |
34 | -(id) initWithDataKeyPath:(NSString *) dataKeyPath;
35 |
36 | -(id) initWithDataKeyPath:(NSString *) dataKeyPath defaultValue:(id)defaultValue;
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartLabel.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartLabel.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-9.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTChartLabel : VTChartComponent
12 |
13 | @property(nonatomic,retain) NSString * title;
14 | @property(nonatomic,retain) UIColor * titleColor;
15 | @property(nonatomic,retain) UIFont * font;
16 |
17 | -(void) sizeToFit;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartLabel.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartLabel.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-9.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTChartLabel.h"
10 |
11 | @implementation VTChartLabel
12 |
13 |
14 | -(void) dealloc{
15 | [_font release];
16 | [_title release];
17 | [_titleColor release];
18 | [super dealloc];
19 | }
20 |
21 | -(void) drawToContext:(CGContextRef)ctx rect:(CGRect)rect{
22 | [super drawToContext:ctx rect:rect];
23 |
24 | CGContextSetStrokeColorWithColor(ctx, _titleColor.CGColor);
25 | CGContextSetFillColorWithColor(ctx, _titleColor.CGColor);
26 |
27 | UIGraphicsPushContext(ctx);
28 |
29 | [_title drawInRect:rect withFont:_font lineBreakMode:NSLineBreakByTruncatingTail];
30 |
31 | UIGraphicsPopContext();
32 |
33 | }
34 |
35 | -(void) sizeToFit{
36 | CGSize size = [_title sizeWithFont:_font];
37 | [self setSize:size];
38 | }
39 |
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartRectangle.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartRectangle.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-9.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTChartRectangle : VTChartComponent
12 |
13 | @property(nonatomic,retain) UIColor * borderColor;
14 | @property(nonatomic,retain) UIColor * backgroundColor;
15 | @property(nonatomic,assign) CGFloat borderWidth;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartRectangle.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartRectangle.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-9.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTChartRectangle.h"
10 |
11 | @implementation VTChartRectangle
12 |
13 | -(void) dealloc{
14 | [_backgroundColor release];
15 | [_borderColor release];
16 | [super dealloc];
17 | }
18 |
19 | -(void) drawToContext:(CGContextRef)ctx rect:(CGRect)rect{
20 |
21 | CGContextSetStrokeColorWithColor(ctx, _borderColor.CGColor);
22 | CGContextSetFillColorWithColor(ctx, _backgroundColor.CGColor);
23 | CGContextSetLineWidth(ctx, _borderWidth);
24 |
25 | CGContextAddRect(ctx, rect);
26 |
27 | CGContextDrawPath(ctx, kCGPathFillStroke);
28 |
29 | }
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartTipLabel.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartTipLabel.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-9.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTChartTipLabel : VTChartComponent
12 |
13 | @property(nonatomic,retain) NSString * title;
14 | @property(nonatomic,retain) UIColor * titleColor;
15 | @property(nonatomic,retain) UIFont * font;
16 | @property(nonatomic,retain) UIColor * backgroundColor;
17 | @property(nonatomic,retain) UIColor * lineColor;
18 | @property(nonatomic,assign) CGFloat lineWidth;
19 | @property(nonatomic,assign) UIEdgeInsets padding;
20 | @property(nonatomic,retain) UIColor * borderColor;
21 | @property(nonatomic,assign) CGFloat borderWidth;
22 | @property(nonatomic,assign) CGPoint toLocation;
23 |
24 | -(void) sizeToFit;
25 |
26 | -(void) setToPosition:(CGPoint) position;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTChartView.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTChartView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTChartView : UIView
14 |
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTPieChart.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTPieChart.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-8.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface VTPieChart : VTChart
13 |
14 | @property(nonatomic,assign) CGFloat borderWidth;
15 | @property(nonatomic,retain) IBOutlet VTChartDataReader * dataItemsReader;
16 | @property(nonatomic,retain) IBOutlet VTChartDataReader * titleReader;
17 | @property(nonatomic,retain) IBOutlet VTChartDataReader * valueReader;
18 | @property(nonatomic,retain) IBOutlet VTChartDataReader * colorReader;
19 | @property(nonatomic,retain) IBOutlet VTChartDataReader * borderColorReader;
20 | @property(nonatomic,retain) IBOutlet VTChartDataReader * totalValueReader;
21 |
22 | @property(nonatomic,retain) UIFont * font;
23 | @property(nonatomic,retain) UIColor * titleColor;
24 | @property(nonatomic,retain) UIColor * lineColor;
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Chart/VTPillarChart.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTPillarChart.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-9.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface VTPillarChart : VTChart
13 |
14 | @property(nonatomic,retain) IBOutlet VTChartDataReader * dataItemsReader;
15 | @property(nonatomic,retain) IBOutlet VTChartDataReader * titleReader;
16 | @property(nonatomic,retain) IBOutlet VTChartDataReader * valueReader;
17 | @property(nonatomic,retain) IBOutlet VTChartDataReader * colorReader;
18 | @property(nonatomic,retain) IBOutlet VTChartDataReader * borderColorReader;
19 | @property(nonatomic,retain) UIFont * font;
20 | @property(nonatomic,retain) UIColor * titleColor;
21 |
22 | @property(nonatomic,retain) UIColor * lineColor;
23 | @property(nonatomic,assign) CGFloat lineWidth;
24 | @property(nonatomic,assign) CGFloat borderWidth;
25 | @property(nonatomic,assign) UIEdgeInsets padding;
26 | @property(nonatomic,assign) CGFloat minHeight;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/NSString+VTDOMSource.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSString+VTDOMSource.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSString (VTDOMSource)
12 |
13 | -(NSString *) htmlEncodeString;
14 |
15 | -(NSString *) htmlDecodeString;
16 |
17 | -(NSString *) htmlStringByDOMSource:(id) data;
18 |
19 | -(NSString *) htmlStringByDOMSource:(id) data htmlEncoded:(BOOL) htmlEncoded;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/UIActivityIndicatorView+VTDOMElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIActivityIndicatorView+VTDOMElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-2-19.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIActivityIndicatorView (VTDOMElement)
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/UIActivityIndicatorView+VTDOMElement.m:
--------------------------------------------------------------------------------
1 | //
2 | // UIActivityIndicatorView+VTDOMElement.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-2-19.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "UIActivityIndicatorView+VTDOMElement.h"
10 |
11 |
12 | #import
13 |
14 | @implementation UIActivityIndicatorView (VTDOMElement)
15 |
16 | -(id) initWithFrame:(CGRect)frame{
17 | return [self initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
18 | }
19 |
20 | -(void) setElement:(VTDOMElement *)element{
21 | [super setElement:element];
22 | if([element isHidden]){
23 | [self stopAnimating];
24 | [self setHidden:YES];
25 | }
26 | else{
27 | [self setHidden:NO];
28 | [self startAnimating];
29 | }
30 | }
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/UIButton+VTDOMElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIButton+VTDOMElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-11-29.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIButton (VTDOMElement)
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/UIControl+VTDOMElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIControl+VTDOMElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-2-20.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIControl (VTDOMElement)
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/UILabel+VTDOMElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // UILabel+VTDOMElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-3-28.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UILabel (VTDOMElement)
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/UILabel+VTDOMElement.m:
--------------------------------------------------------------------------------
1 | //
2 | // UILabel+VTDOMElement.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-3-28.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "UILabel+VTDOMElement.h"
10 |
11 | #import "UIView+VTDOMElement.h"
12 |
13 | #import "VTDOMElement+Style.h"
14 |
15 | @implementation UILabel (VTDOMElement)
16 |
17 | -(void) setElement:(VTDOMElement *)element{
18 | [super setElement:element];
19 |
20 | self.font = [element fontValueForKey:@"font"];
21 | self.textColor = [element colorValueForKey:@"color"];
22 |
23 | NSTextAlignment alignment = NSTextAlignmentCenter;
24 |
25 |
26 | NSString * align = [element stringValueForKey:@"align"];
27 |
28 | if([align isEqualToString:@"left"]){
29 | alignment = NSTextAlignmentLeft;
30 | }
31 | else if([align isEqualToString:@"right"]){
32 | alignment = NSTextAlignmentRight;
33 | }
34 |
35 | self.textAlignment = alignment;
36 |
37 | self.text = [element stringValueForKey:@"text"];
38 |
39 | }
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/UIView+VTDOMElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIView+VTDOMElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-11-11.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface UIView (VTDOMElement)
14 |
15 | -(void) setElement:(VTDOMElement *) element;
16 |
17 | -(void) element:(VTDOMElement *) element attributeChangedValue:(NSString *) value forKey:(NSString *) key;
18 |
19 | -(void) element:(VTDOMElement *) element valueChangedValue:(id)value forKey:(NSString *)key;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOM.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOM.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTDOM.h"
10 |
11 | @implementation VTDOM
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMActionElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMActionElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-26.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTDOMActionElement : VTDOMElement
14 |
15 | @property(nonatomic,readonly,getter = isAllowLongTapAction) BOOL allowLongTapAction;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMActionViewElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMActionViewElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-8-3.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMActionViewElement : VTDOMViewElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMBRElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMBRElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-3-6.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMBRElement : VTDOMElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMBRElement.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMBRElement.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-3-6.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTDOMBRElement.h"
10 |
11 | @implementation VTDOMBRElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMContainerElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMContainerElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-2-16.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMContainerElement : VTDOMViewElement
12 |
13 | @property(nonatomic,readonly) UIScrollView * contentView;
14 |
15 | -(void) reloadData;
16 |
17 | -(BOOL) isVisableRect:(CGRect) frame;
18 |
19 | -(CGRect) frameInElement:(VTDOMElement *) element;
20 |
21 | -(void) didVisableItemView:(UIView *) itemView element:(VTDOMElement *) element atIndex:(NSInteger) index;
22 |
23 | -(void) didContainerDidAppera;
24 |
25 | -(void) didContainerDidDispaaer;
26 |
27 | -(void) didViewLoaded;
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMDocument.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMDocument.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-13.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | #define VTDOMDocumentVersion @"1.0.0"
15 |
16 | @interface VTDOMDocument : NSObject
17 |
18 | @property(nonatomic,retain) NSBundle * bundle;
19 | @property(nonatomic,retain) VTDOMElement * rootElement;
20 | @property(nonatomic,retain) VTDOMStyleSheet * styleSheet;
21 | @property(nonatomic,retain) NSIndexPath * indexPath;
22 | @property(nonatomic,retain) NSURL * documentURL;
23 |
24 | -(VTDOMElement *) elementById:(NSString *) eid;
25 |
26 | -(NSArray *) elementsByClass:(Class) clazz inherit:(BOOL)inherit;
27 |
28 | -(void) applyStyleSheet:(VTDOMElement *) element;
29 |
30 | -(void) applyStyleSheet;
31 |
32 | -(void) elementDidAppera:(VTDOMElement *) element;
33 |
34 | -(void) elementWillDisappera:(VTDOMElement *) element;
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMElement+Control.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMElement+Control.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-15.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMElement (Control)
12 |
13 | @property(nonatomic,assign,getter = isEnabled) BOOL enabled;
14 | @property(nonatomic,assign,getter = isHighlighted) BOOL highlighted;
15 | @property(nonatomic,assign,getter = isSelected) BOOL selected;
16 |
17 | - (BOOL)touchesBegan:(CGPoint) location;
18 | - (void)touchesMoved:(CGPoint) location;
19 | - (void)touchesEnded:(CGPoint) location;
20 | - (void)touchesCancelled:(CGPoint) location;
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMElement+Frame.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMElement+Frame.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMElement (Frame)
12 |
13 | @property(nonatomic,assign) CGRect frame;
14 |
15 | - (CGRect)convertRect:(CGRect)rect superElement:(VTDOMElement *) element;
16 |
17 | - (void) elementDidFrameChanged:(VTDOMElement *) element;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMElement+Layout.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMElement+Layout.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMElement (Layout)
12 |
13 | @property(nonatomic,assign) CGSize contentSize;
14 | @property(nonatomic,readonly) UIEdgeInsets padding;
15 | @property(nonatomic,readonly) UIEdgeInsets margin;
16 |
17 | -(CGSize) layoutChildren:(UIEdgeInsets) padding;
18 |
19 | -(CGSize) layout:(CGSize) size;
20 |
21 | -(CGSize) layout;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMElement+Render.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMElement+Render.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMElement (Render)
12 |
13 | @property(nonatomic,readonly,getter = isHidden) BOOL hidden;
14 | @property(nonatomic,readonly) CALayer * layer;
15 | @property(nonatomic,readonly) UIColor * backgroundColor;
16 |
17 | -(void) render:(CGRect) rect context:(CGContextRef) context;
18 |
19 | -(void) draw:(CGRect) rect context:(CGContextRef) context;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMElement+Style.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMElement+Style.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMElement (Style)
12 |
13 | -(NSString *) stringValueForKey:(NSString *) key;
14 |
15 | -(float) floatValueForKey:(NSString *) key;
16 |
17 | -(BOOL) booleanValueForKey:(NSString *) key;
18 |
19 | -(UIImage *) imageValueForKey:(NSString *) key bundle:(NSBundle *) bundle;
20 |
21 | -(UIColor *) colorValueForKey:(NSString *) key;
22 |
23 | -(UIFont *) fontValueForKey:(NSString *) key;
24 |
25 | -(UIEdgeInsets) edgeInsetsValueForKey:(NSString *) key;
26 |
27 | -(float) floatValueForKey:(NSString *) key of:(CGFloat) baseValue defaultValue:(CGFloat) defaultValue;
28 |
29 | -(UIFont *) elementFont:(UIFont *) defaultFont;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMHScrollElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMHScrollElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMHScrollElement : VTDOMContainerElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMImageElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMImageElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTDOMImageElement : VTDOMElement
14 |
15 | @property(nonatomic,retain) UIImage * image;
16 | @property(nonatomic,retain) UIImage * defaultImage;
17 | @property(nonatomic,readonly,getter = isPreload) BOOL preload;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMLabel.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMLabel.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-9-3.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMLabel : UILabel
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMLabelElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMLabelElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMLabelElement : VTDOMElement
12 |
13 | @property(nonatomic,readonly) UIFont * font;
14 | @property(nonatomic,readonly) UIColor * textColor;
15 | @property(nonatomic,readonly) NSLineBreakMode lineBreakMode;
16 | @property(nonatomic,readonly) NSTextAlignment alignment;
17 | @property(nonatomic,readonly) CGFloat minFontSize;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMLinkElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMLinkElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-6.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 |
12 | #import
13 |
14 | @interface VTDOMLinkElement : VTDOMLabelElement
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMPageScrollElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMPageScrollElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMPageScrollElement : VTDOMContainerElement
12 |
13 | @property(nonatomic,readonly) NSInteger pageIndex;
14 | @property(nonatomic,readonly) NSInteger pageSize;
15 |
16 | -(void) setPageIndex:(NSInteger)pageIndex animated:(BOOL) animated;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMParse.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMParse.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-13.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 |
12 | @class VTDOMElement;
13 | @class VTDOMDocument;
14 | @class VTDOMStyleSheet;
15 |
16 | @interface VTDOMParse : NSObject
17 |
18 | -(VTDOMElement *) newElement:(NSString *) name ns:(NSString *) ns;
19 |
20 | -(BOOL) parseHTML:(NSString *) html toElement:(VTDOMElement *) element atIndex:(NSInteger) index;
21 |
22 | -(BOOL) parseHTML:(NSString *) html toElement:(VTDOMElement *) element;
23 |
24 | -(BOOL) parseHTML:(NSString *) html toDocument:(VTDOMDocument *) document;
25 |
26 | -(BOOL) parseCSS:(NSString *) css toStyleSheet:(VTDOMStyleSheet *) styleSheet;
27 |
28 | -(BOOL) parseXML:(NSString *) xml toElement:(VTDOMElement *) element atIndex:(NSInteger) index;
29 |
30 | -(BOOL) parseXML:(NSString *) xml toElement:(VTDOMElement *) element;
31 |
32 | -(BOOL) parseXML:(NSString *) xml toDocument:(VTDOMDocument *) document;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMRichElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMRichElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @interface VTDOMRichElement : VTDOMElement
15 |
16 | @property(nonatomic,readonly) UIFont * font;
17 | @property(nonatomic,readonly) UIColor * textColor;
18 | @property(nonatomic,retain) VTRich * rich;
19 |
20 | -(BOOL) willAppendText:(NSString *)text attributes:(NSDictionary *)attributes rich:(VTRich *) rich;
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMScrollView.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMScrollView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-16.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTDOMScrollView : UIScrollView
14 |
15 | @property(nonatomic,assign) CGFloat pageScale;
16 | @property(nonatomic,retain) VTDOMElement * element;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMStatusElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMStatusElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-2-19.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMStatusElement : VTDOMActionElement
12 |
13 | @property(nonatomic,retain) NSString * status;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMStyle.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMStyle.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-12.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMStyle : NSObject
12 |
13 | @property(nonatomic,retain) NSString * name;
14 | @property(nonatomic,readonly) NSArray * allKeys;
15 |
16 | -(void) setStringValue:(NSString *) value forKey:(NSString *) key;
17 |
18 | -(NSString *) stringValueForKey:(NSString *) key;
19 |
20 | -(float) floatValueForKey:(NSString *) key;
21 |
22 | -(BOOL) booleanValueForKey:(NSString *) key;
23 |
24 | -(UIImage *) imageValueForKey:(NSString *) key bundle:(NSBundle *) bundle;
25 |
26 | -(UIColor *) colorValueForKey:(NSString *) key;
27 |
28 | -(UIFont *) fontValueForKey:(NSString *) key;
29 |
30 | +(float) floatValue:(NSString *) value;
31 |
32 | +(BOOL) booleanValue:(NSString *) value;
33 |
34 | +(UIImage *) imageValue:(NSString *) value bundle:(NSBundle *) bundle;
35 |
36 | +(UIColor *) colorValue:(NSString *) value;
37 |
38 | +(UIFont *) fontValue:(NSString *) value;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMStyleSheet.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMStyleSheet.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTDOMStyleSheet : NSObject
14 |
15 | @property(nonatomic,assign) NSInteger version;
16 |
17 | @property(nonatomic,readonly) NSArray * styles;
18 |
19 | -(void) addStyle:(VTDOMStyle *) style;
20 |
21 | -(void) removeStyle:(VTDOMStyle *) style;
22 |
23 | -(void) removeAllStyles;
24 |
25 | -(VTDOMStyle *) selectorStyleName:(NSString *) styleName;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMTableElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMTableElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-2-23.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMTableElement : VTDOMViewElement
12 |
13 | @property(nonatomic,readonly) UITableView * tableView;
14 |
15 | -(VTDOMElement *) elementByIndexPath:(NSIndexPath *) indexPath;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMTipElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMTipElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-8-13.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMTipElement : VTDOMContainerElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMVScrollElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMVScrollElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMVScrollElement : VTDOMContainerElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMView.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-14.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface VTDOMView : UIView
14 |
15 | @property(nonatomic,assign) IBOutlet id delegate;
16 | @property(nonatomic,retain) VTDOMElement * element;
17 | @property(nonatomic,assign,getter = isAllowAutoLayout) BOOL allowAutoLayout;
18 |
19 | @end
20 |
21 | @protocol VTDOMViewDelegate
22 |
23 | @optional
24 |
25 | -(void) vtDOMView:(VTDOMView *) view doActionElement:(VTDOMElement *) element;
26 |
27 | -(void) vtDOMView:(VTDOMView *)view downloadImagesForElement:(VTDOMElement *) element;
28 |
29 | -(void) vtDOMView:(VTDOMView *)view downloadImagesForView:(UIView *) forView;
30 |
31 | -(UIView *) vtDOMView:(VTDOMView *)view elementView:(VTDOMElement *)element viewClass:(Class) viewClass;
32 |
33 | -(void) vtDOMView:(VTDOMView *)view loadContentForElement:(VTDOMElement *) element;
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMViewElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMViewElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-15.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface VTDOMViewElement : VTDOMElement
13 |
14 | @property(nonatomic,retain) UIView * view;
15 |
16 | @property(nonatomic,readonly,getter = isViewLoaded) BOOL viewLoaded;
17 |
18 | -(Class) viewClass;
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMWebContainerElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMWebContainerElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-8-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMWebContainerElement : VTDOMContainerElement
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/DOM/VTDOMWebViewElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTDOMWebViewElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-8-1.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface VTDOMWebViewElement : VTDOMViewElement
12 |
13 | @property(nonatomic,readonly) UIWebView * webView;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/GIFView.h:
--------------------------------------------------------------------------------
1 | //
2 | // GIFView.h
3 | // SinaFramework
4 | //
5 | // Created by zhang hailong on 12-11-15.
6 | // Copyright (c) 2012年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface GIFView : UIView
12 |
13 | @property(nonatomic,retain) id imageSource;
14 | @property(nonatomic,retain) NSURL * gifURL;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/Grid.h:
--------------------------------------------------------------------------------
1 | //
2 | // Grid.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-9.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface Grid : NSObject
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/GridApposeDataView.h:
--------------------------------------------------------------------------------
1 | //
2 | // GridApposeDataView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-22.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface GridApposeDataView : UIView
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/GridApposeDataView.m:
--------------------------------------------------------------------------------
1 | //
2 | // GridApposeDataView.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-22.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "GridApposeDataView.h"
10 |
11 | @implementation GridApposeDataView
12 |
13 |
14 | @synthesize grid = _grid;
15 |
16 | -(void) dealloc{
17 | [_grid release];
18 | [super dealloc];
19 | }
20 |
21 | - (id)initWithFrame:(CGRect)frame
22 | {
23 | self = [super initWithFrame:frame];
24 | if (self) {
25 | // Initialization code
26 | }
27 | return self;
28 | }
29 |
30 | - (void)drawRect:(CGRect)rect
31 | {
32 | [super drawRect:rect];
33 | [_grid drawApposeDataToContext:UIGraphicsGetCurrentContext() rect:rect];
34 | }
35 |
36 |
37 | -(void) setGrid:(Grid *)grid{
38 | if(_grid != grid){
39 | [_grid release];
40 | _grid = [grid retain];
41 | }
42 | [self setNeedsDisplay];
43 | }
44 |
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/GridApposeHeadView.h:
--------------------------------------------------------------------------------
1 | //
2 | // GridApposeHeadView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-22.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface GridApposeHeadView : UIView
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/GridApposeHeadView.m:
--------------------------------------------------------------------------------
1 | //
2 | // GridApposeHeadView.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-22.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "GridApposeHeadView.h"
10 |
11 | @implementation GridApposeHeadView
12 |
13 | @synthesize grid = _grid;
14 |
15 | -(void) dealloc{
16 | [_grid release];
17 | [super dealloc];
18 | }
19 |
20 | - (id)initWithFrame:(CGRect)frame
21 | {
22 | self = [super initWithFrame:frame];
23 | if (self) {
24 | // Initialization code
25 | }
26 | return self;
27 | }
28 |
29 | - (void)drawRect:(CGRect)rect
30 | {
31 | [super drawRect:rect];
32 | [_grid drawApposeHeadToContext:UIGraphicsGetCurrentContext() rect:rect];
33 | }
34 |
35 |
36 | -(void) setGrid:(Grid *)grid{
37 | if(_grid != grid){
38 | [_grid release];
39 | _grid = [grid retain];
40 | }
41 | [self setNeedsDisplay];
42 | }
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/GridDataView.h:
--------------------------------------------------------------------------------
1 | //
2 | // GridDataView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-9.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @interface GridDataView : UIView
15 |
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/GridHeadView.h:
--------------------------------------------------------------------------------
1 | //
2 | // GridHeadView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-9.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @interface GridHeadView : UIView
15 |
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/GridHeadView.m:
--------------------------------------------------------------------------------
1 | //
2 | // GridHeadView.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-9.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "GridHeadView.h"
10 |
11 | @implementation GridHeadView
12 |
13 | @synthesize grid = _grid;
14 |
15 | - (id)initWithFrame:(CGRect)frame
16 | {
17 | self = [super initWithFrame:frame];
18 | if (self) {
19 | // Initialization code
20 | }
21 | return self;
22 | }
23 |
24 | -(void) dealloc{
25 | [_grid release];
26 | [super dealloc];
27 | }
28 |
29 | // Only override drawRect: if you perform custom drawing.
30 | // An empty implementation adversely affects performance during animation.
31 | - (void)drawRect:(CGRect)rect
32 | {
33 | [super drawRect:rect];
34 | [_grid drawHeadToContext:UIGraphicsGetCurrentContext() rect:rect];
35 | }
36 |
37 |
38 | -(void) setGrid:(Grid *)grid{
39 | if(_grid != grid){
40 | [_grid release];
41 | _grid = [grid retain];
42 | }
43 | [self setNeedsDisplay];
44 | }
45 |
46 | -(void) sizeToFit{
47 | CGRect r = self.frame;
48 | r.size.width = [_grid size].width;
49 | [self setFrame:r];
50 | }
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/GridScrollView.h:
--------------------------------------------------------------------------------
1 | //
2 | // GridScrollView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-22.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface GridScrollView : VTScrollView
13 |
14 | @property(nonatomic,retain) UIView * gridView;
15 | @property(nonatomic,retain) UIView * apposeView;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/IGridCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // IGridCell.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-9.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @protocol IGridCell
15 |
16 | @property(nonatomic,retain) NSString * title;
17 | @property(nonatomic,assign) CGFloat width;
18 | @property(nonatomic,retain) UIColor * titleColor;
19 | @property(nonatomic,retain) UIFont * titleFont;
20 | @property(nonatomic,assign) CGFloat titleMinFontSize;
21 | @property(nonatomic,assign) NSTextAlignment titleAlignment;
22 | @property(nonatomic,retain) UIColor * backgroundColor;
23 | @property(nonatomic,retain) NSString * keyPath;
24 | @property(nonatomic,assign,getter = isClipsLastTitle) BOOL clipsLastTitle;
25 | @property(nonatomic,assign) NSUInteger colSpan;
26 | @property(nonatomic,retain) UIView * view;
27 | @property(nonatomic,assign) UIEdgeInsets padding;
28 | @property(nonatomic,assign) NSLineBreakMode lineBreakMode;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/IGridColumn.h:
--------------------------------------------------------------------------------
1 | //
2 | // IGridColumn.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-9.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @protocol IGridColumn
13 |
14 | @property(nonatomic,assign,getter = isHidden) BOOL hidden;
15 |
16 | @property(nonatomic,assign) UIEdgeInsets dataPadding;
17 | @property(nonatomic,assign) NSLineBreakMode dataLineBreakMode;
18 | @property(nonatomic,assign) NSTextAlignment dataTitleAlignment;
19 | @property(nonatomic,assign) CGFloat dataTitleMinFontSize;
20 |
21 | -(id) newDataCell:(id) data;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/IGridDraw.h:
--------------------------------------------------------------------------------
1 | //
2 | // IGridDraw.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-9.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @protocol IGridDraw
13 |
14 | -(void) drawToContext:(CGContextRef) ctx rect:(CGRect) rect;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/IGridRow.h:
--------------------------------------------------------------------------------
1 | //
2 | // IGridRow.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-9.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @protocol IGridRow
15 |
16 | @property(nonatomic,assign) CGFloat height;
17 | @property(nonatomic,readonly) NSArray * cells;
18 | @property(nonatomic,retain) UIColor * backgroundColor;
19 | @property(nonatomic,retain) UIColor * nextSplitColor;
20 |
21 | -(void) applyCellViewTo:(UIView *) superview rect:(CGRect) rect;
22 |
23 | -(void) heightToFit;
24 |
25 | -(void) updateData:(id) data;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/IGridValue.h:
--------------------------------------------------------------------------------
1 | //
2 | // IGridValue.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 14-1-15.
6 | // Copyright (c) 2014年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IGridValue
12 |
13 | -(id) valueForKey:(NSString *) key;
14 |
15 | -(void) setValue:(id) value forKey:(NSString *) key;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/IGridView.h:
--------------------------------------------------------------------------------
1 | //
2 | // IGridView.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-22.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "Grid.h"
12 |
13 |
14 | @protocol IGridView
15 |
16 | @property(nonatomic,retain) Grid * grid;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Grid/NSString+Grid.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSString+Grid.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-11-11.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSString (Grid)
12 |
13 | -(NSString *) expressionOfKeyPath:(NSString *) keyPath data:(id) data;
14 |
15 | -(NSString *) expressionOfData:(id) data;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTAPICancelTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTAPICancelTask.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-5-2.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTAPICancelTask
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTAPITask.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTAPITask.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-5-2.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTAPITask
14 |
15 | @property(nonatomic,retain) id task;
16 | @property(nonatomic,assign) Protocol * taskType;
17 | @property(nonatomic,retain) id userInfo;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTAction.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTAction.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-5-3.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IVTAction
12 |
13 | @property(nonatomic,retain) NSString * actionName;
14 | @property(nonatomic,retain) id userInfo;
15 | @property(nonatomic,retain) IBOutletCollection(UIView) NSArray * actionViews;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTAuthContext.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTAuthContext.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-12-26.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTAuthContext
14 |
15 | @property(nonatomic,retain) id uid;
16 | @property(nonatomic,retain) NSString * token;
17 | @property(nonatomic,readonly) NSString * domain;
18 |
19 | -(void) setAuthValue:(id) value forKey:(NSString *)key;
20 |
21 | -(id) authValueForKey:(NSString *) key;
22 |
23 | -(NSArray *) authKeys;
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTContext.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTContext.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-24.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IVTContext
12 |
13 | -(NSBundle *) resourceBundle;
14 |
15 | -(NSBundle *) temporaryBundle;
16 |
17 | -(NSBundle *) documentBundle;
18 |
19 | -(NSBundle *) applicationBundle;
20 |
21 | // res:// tmp:// doc:// app://
22 | -(NSString *) filePathWithFileURI:(NSString *) fileURI;
23 |
24 | -(NSString *) fileURIWithFilePath:(NSString *) filePath;
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTController.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTController.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-8-27.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IVTUIContext;
12 |
13 | @protocol IVTController
14 |
15 | @property(nonatomic,assign) id context;
16 | @property(nonatomic,assign) IBOutlet id delegate;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTDownlinkPageTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTDownlinkPageTask.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-5-2.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTDownlinkPageTask
14 |
15 | -(NSInteger) vtDownlinkPageTaskPageSize;
16 |
17 | -(NSInteger) vtDownlinkPageTaskPageIndex;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTDownlinkTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTDownlinkTask.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-5-2.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTDownlinkTask
14 |
15 | @property(nonatomic,assign,getter = isSkipCached) BOOL skipCached;
16 | @property(nonatomic,assign,getter = isDataChanged) BOOL dataChanged;
17 |
18 | @optional
19 |
20 | -(void) vtDownlinkTaskDidLoadedFromCache:(id) data timestamp:(NSDate *) timestamp forTaskType:(Protocol *) taskType;
21 |
22 | -(void) vtDownlinkTaskDidLoaded:(id) data forTaskType:(Protocol *) taskType;
23 |
24 | -(void) vtDownlinkTaskDidFitalError:(NSError *) error forTaskType:(Protocol *) taskType;
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTFormEditor.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTFormEditor.h
3 | // vTeam
4 | //
5 | // Created by Zhang Hailong on 13-5-11.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTFormEditor
14 |
15 | @property(nonatomic,retain) NSString * editorType;
16 | @property(nonatomic,retain) VTFormItem * formItem;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTFormItemView.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTFormItemView.h
3 | // vTeam
4 | //
5 | // Created by Zhang Hailong on 13-5-11.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IVTFormItemView
12 |
13 | @property(nonatomic,retain) id value;
14 | @property(nonatomic,retain) NSString * text;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTImageTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTImageTask.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-26.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTImageTask
14 |
15 | @property(nonatomic,assign,getter = isLoaded) BOOL loaded;
16 | @property(nonatomic,retain) NSString * defaultSrc;
17 | @property(nonatomic,retain) NSString * src;
18 | @property(nonatomic,assign,getter = isLoading) BOOL loading;
19 | @property(nonatomic,retain) NSString * reuseFileURI;
20 | @property(nonatomic,assign,getter = isLocalAsyncLoad) BOOL localAsyncLoad;
21 |
22 | -(void) setImage:(UIImage *) image;
23 |
24 | -(void) setImage:(UIImage *) image isLocal:(BOOL) isLocal;
25 |
26 | -(void) setDefaultImage:(UIImage *) image;
27 |
28 | @end
29 |
30 | @protocol IVTLocalImageTask
31 |
32 |
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTService.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTService.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-24.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 |
14 | @protocol IVTService
15 |
16 | @property(nonatomic,retain) id config;
17 |
18 | @property(nonatomic,assign) id context;
19 |
20 | -(BOOL) handle:(Protocol *)taskType task:(id)task priority:(NSInteger)priority;
21 |
22 | -(BOOL) cancelHandle:(Protocol *)taskType task:(id)task;
23 |
24 | -(BOOL) cancelHandleForSource:(id) source;
25 |
26 | -(void) didReceiveMemoryWarning;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTServiceContainer.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTServiceContainer.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-25.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTServiceContainer
14 |
15 | @property(nonatomic,readonly) id instance;
16 | @property(nonatomic,retain) id config;
17 | @property(nonatomic,assign) id context;
18 | @property(nonatomic,assign,getter=isInherit) BOOL inherit;
19 |
20 | -(BOOL) hasTaskType:(Protocol *) taskType;
21 |
22 | -(void) addTaskType:(Protocol *) taskType;
23 |
24 | -(void) didReceiveMemoryWarning;
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTServiceContext.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTServiceContext.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-24.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | @protocol IVTServiceContext
15 |
16 | -(BOOL) handle:(Protocol *)taskType task:(id)task priority:(NSInteger)priority;
17 |
18 | -(BOOL) cancelHandle:(Protocol *)taskType task:(id)task;
19 |
20 | -(BOOL) cancelHandleForSource:(id) source;
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTTask.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-4-24.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol IVTTask
12 |
13 | @property(nonatomic,assign) id source;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTURLDownlinkTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTURLDownlinkTask.h
3 | // vTeam
4 | //
5 | // Created by Zhang Hailong on 13-6-22.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTURLDownlinkTask
14 |
15 | @property(nonatomic,retain) NSString * url;
16 | @property(nonatomic,retain) NSString * urlKey;
17 |
18 | @property(nonatomic,retain) NSString * errorCodeKeyPath;
19 | @property(nonatomic,retain) NSString * errorKeyPath;
20 | @property(nonatomic,assign) Class httpClass;
21 |
22 | @property(nonatomic,retain) id queryValues;
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/vTeam/vTeam/IVTUplinkTask.h:
--------------------------------------------------------------------------------
1 | //
2 | // IVTUplinkTask.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-5-2.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 |
13 | @protocol IVTUplinkTask
14 |
15 | @property(nonatomic,assign) IBOutlet id delegate;
16 |
17 | @end
18 |
19 | @protocol IVTUplinkTaskDelegate
20 |
21 |
22 | @optional
23 |
24 | -(void) vtUploadTask:(id) uplinkTask didSuccessResults:(id) results forTaskType:(Protocol *) taskType;
25 |
26 | -(void) vtUploadTask:(id) uplinkTask didFailWithError:(NSError *)error forTaskType:(Protocol *)taskType;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Montage/VTMontage.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTMontage.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-9-12.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import
12 | #import
13 | #import
14 | #import
15 | #import
16 | #import
17 |
18 | @interface VTMontage : NSObject
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Montage/VTMontage.m:
--------------------------------------------------------------------------------
1 | //
2 | // VTMontage.m
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-9-12.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import "VTMontage.h"
10 |
11 | @implementation VTMontage
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/vTeam/vTeam/Montage/VTMontageElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // VTMontageElement.h
3 | // vTeam
4 | //
5 | // Created by zhang hailong on 13-9-12.
6 | // Copyright (c) 2013年 hailong.org. All rights reserved.
7 | //
8 |
9 | #import