forked from escoz/QuickDialog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New podspec, new code organization, WIP
- Loading branch information
Showing
220 changed files
with
1,455 additions
and
4,028 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# QuickDialog CHANGELOG | ||
|
||
## 0.1.0 | ||
|
||
Initial release. |
25 changes: 12 additions & 13 deletions
25
sample/LoginInfo.m → Classes/Core/NSMutableArray+MoveObject.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
// | ||
// | ||
// Copyright 2011 ESCOZ Inc - http://escoz.com | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under | ||
// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
// ANY KIND, either express or implied. See the License for the specific language governing | ||
// permissions and limitations under the License. | ||
// | ||
// | ||
|
||
#import "LoginInfo.h" | ||
|
||
@implementation LoginInfo | ||
#import <Foundation/Foundation.h> | ||
|
||
@synthesize password = _password; | ||
@synthesize login = _login; | ||
@interface NSMutableArray (MoveObject) | ||
|
||
- (void)qd_moveObjectFromIndex:(NSUInteger)from toIndex:(NSUInteger)to; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Copyright 2011 ESCOZ Inc - http://escoz.com | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under | ||
// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
// ANY KIND, either express or implied. See the License for the specific language governing | ||
// permissions and limitations under the License. | ||
// | ||
|
||
#import "NSMutableArray+MoveObject.h" | ||
|
||
@implementation NSMutableArray (MoveObject) | ||
|
||
- (void)qd_moveObjectFromIndex:(NSUInteger)from toIndex:(NSUInteger)to | ||
{ | ||
if (to == from) | ||
return; | ||
|
||
id objectToMove = [self objectAtIndex:from]; | ||
[self removeObjectAtIndex:from]; | ||
if (to >= [self count]) { | ||
[self addObject:objectToMove]; | ||
} else { | ||
[self insertObject:objectToMove atIndex:to]; | ||
} | ||
} | ||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
sample/SampleDataBuilder.h → Classes/Core/QDynamicDataSection.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
// | ||
// | ||
// Copyright 2011 ESCOZ Inc - http://escoz.com | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under | ||
// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
// ANY KIND, either express or implied. See the License for the specific language governing | ||
// permissions and limitations under the License. | ||
// | ||
|
||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class QRootElement; | ||
#import "QSection.h" | ||
@interface QDynamicDataSection : QSection { | ||
|
||
|
||
@interface SampleDataBuilder : NSObject<QuickDialogEntryElementDelegate> { | ||
|
||
} | ||
@property(nonatomic, strong) NSString *emptyMessage; | ||
|
||
|
||
+ (QRootElement *)create; | ||
@end |
18 changes: 15 additions & 3 deletions
18
quickdialog/QDynamicDataSection.m → Classes/Core/QDynamicDataSection.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
// | ||
// | ||
// Copyright 2011 ESCOZ Inc - http://escoz.com | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under | ||
// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
// ANY KIND, either express or implied. See the License for the specific language governing | ||
// permissions and limitations under the License. | ||
// | ||
|
||
|
||
#import <Foundation/Foundation.h> | ||
#import "QElement.h" | ||
|
||
@class QAppearance; | ||
|
||
@interface QElement (Appearance) | ||
|
||
@interface LoginInfo : NSObject { | ||
@property(nonatomic, retain) QAppearance *appearance; | ||
|
||
@private | ||
NSString *_password; | ||
NSString *_login; | ||
} | ||
+ (QAppearance *)appearance; | ||
+ (void)setAppearance:(QAppearance *)newAppearance; | ||
|
||
@property(strong) NSString *login; | ||
@property(strong) NSString *password; | ||
|
||
@end |
18 changes: 18 additions & 0 deletions
18
quickdialog/QElement+Appearance.m → Classes/Core/QElement+Appearance.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.