Skip to content

Commit

Permalink
Merge pull request escoz#528 from charlesbedrosian/master
Browse files Browse the repository at this point in the history
fixes to method not found errors on QuickReportController in sample code
  • Loading branch information
escoz committed Jul 17, 2013
2 parents 16f0cd2 + c6be681 commit 7f00560
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion sample/SampleDataBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ + (QRootElement *)createWithInitDefault {
QRootElement *subForm = [[QRootElement alloc] init];
subForm.grouped = YES;
subForm.title = @"Default Initialization";
QSection *subsection = [[QSection alloc] initWithTitle:@"SubSection"];
subForm.controllerName = @"ExampleViewController";
QSection *subsection = [[QSection alloc] initWithTitle:@"SubSection"];
[subForm addSection:subsection];

[subsection addElement:[[QLabelElement alloc] init]];
Expand All @@ -49,6 +50,7 @@ + (QRootElement *)createWithInitAndKey {
QRootElement *subForm = [[QRootElement alloc] init];
subForm.grouped = YES;
subForm.title = @"Initialization With Key";
subForm.controllerName = @"ExampleViewController";
QSection *subsection = [[QSection alloc] initWithTitle:@"SubSection"];
[subForm addSection:subsection];

Expand All @@ -71,6 +73,7 @@ + (QRootElement *)createWithInitAndKey {
+ (QElement *)reallyLongList {
QRootElement *subForm = [[QRootElement alloc] init];
subForm.title = @"Really long list";
subForm.controllerName = @"ExampleViewController";
QSection *subsection = [[QSection alloc] initWithTitle:@"Long title for the long list of elements"];
for (int i = 0; i<1000; i++){
QBooleanElement *bool1 = [[QBooleanElement alloc] initWithTitle:[NSString stringWithFormat:@"Option %d", i] BoolValue:(i % 3 == 0)];
Expand All @@ -90,6 +93,7 @@ + (QRootElement *)createSampleFormRoot {
QSection *subsection = [[QSection alloc] initWithTitle:@"SubSection"];
subForm.grouped = YES;
subForm.title = @"Subform";
subForm.controllerName = @"ExampleViewController";

[subsection addElement:[[QLabelElement alloc] initWithTitle:@"Some title" Value:@"Some value"]];
QEntryElement *elementEntry = [[QEntryElement alloc] initWithTitle:@"Entry" Value:nil Placeholder:@"type here"];
Expand Down Expand Up @@ -130,6 +134,7 @@ + (QRootElement *)createSlidersRoot {
QRootElement *sliders = [[QRootElement alloc] init];
sliders.grouped = YES;
sliders.title = @"Sliders";
sliders.controllerName = @"ExampleViewController";
QSection *detailsSection = [[QSection alloc] initWithTitle:@"Slide left and right"];

[sliders addSection:detailsSection];
Expand All @@ -145,6 +150,7 @@ + (QElement *)createSampleControls {
QRootElement *root = [[QRootElement alloc] init];
root.grouped = YES;
root.title = @"Sample Controls";
root.controllerName = @"ExampleViewController";
QSection *controls = [[QSection alloc] initWithTitle:@"Change something"];

QLabelElement *element1 = [[QLabelElement alloc] initWithTitle:@"Label" Value:@"element"];
Expand Down Expand Up @@ -269,6 +275,7 @@ + (void)QEntryEditingChangedForElement:(QEntryElement *)element andCell:(QEntryT

+ (QElement *)createRadioRoot {
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Radio";
root.grouped = YES;

Expand All @@ -293,6 +300,7 @@ + (QElement *)createRadioRoot {
+ (QElement *)createPickerRoot
{
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Picker";
root.grouped = YES;

Expand Down Expand Up @@ -332,6 +340,7 @@ + (QElement *)createPickerRoot
+ (QElement *)createSelectRoot
{
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Select";
root.grouped = YES;

Expand All @@ -355,6 +364,7 @@ + (QElement *)createSelectRoot

+ (QRootElement *)createWebAndMapRoot {
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Web and map";

QWebElement *element1 = [[QWebElement alloc] initWithTitle:@"ESCOZ Inc" url:@"http://escoz.com"];
Expand All @@ -373,6 +383,7 @@ + (QRootElement *)createWebAndMapRoot {

+ (QRootElement *)createTextRoot {
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Text";

QTextElement *element1 = [[QTextElement alloc] initWithText:
Expand Down Expand Up @@ -400,6 +411,7 @@ + (QRootElement *)createTextRoot {

+ (QRootElement *)createLabelsRoot {
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Labels";
root.grouped = YES;
QSection *s1 = [[QSection alloc] initWithTitle:@"LabelElement"];
Expand Down Expand Up @@ -467,6 +479,7 @@ + (QRootElement *)createLabelsRoot {

+ (QRootElement *)createEntryRoot {
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Entry";
root.grouped = YES;

Expand Down Expand Up @@ -545,6 +558,7 @@ + (QRootElement *)createEntryRoot {
+ (QRootElement *)createSortingRoot {

QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Sorting";
root.grouped = YES;

Expand Down Expand Up @@ -584,6 +598,7 @@ + (QRootElement *)createSortingRoot {

+ (QRootElement *)createDateTimeRoot {
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
root.title = @"Date Time";
root.grouped = YES;

Expand Down Expand Up @@ -631,6 +646,7 @@ + (QRootElement *)createDateTimeRoot {

+ (QElement *)createDynamicSectionRoot {
QRootElement *const root = [[QRootElement alloc] init ];
root.controllerName = @"ExampleViewController";
root.title = @"Dynamic Data Sections";
root.grouped = YES;

Expand Down Expand Up @@ -674,6 +690,7 @@ + (QRootElement *)create {
QRootElement *root = [[QRootElement alloc] init];
root.grouped = YES;
root.title = @"QuickDialog!";
root.controllerName = @"ExampleViewController";
QSection *sectionSamples = [[QSection alloc] init];
sectionSamples.headerView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"quickdialog"]];
[sectionSamples addElement:[[QRootElement alloc] initWithJSONFile:@"loginform"]];
Expand Down

0 comments on commit 7f00560

Please sign in to comment.