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.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -369,6 +369,21 @@ + (QElement *)createSelectRoot | |
return root; | ||
} | ||
|
||
+ (QRootElement *)createMailRoot { | ||
QRootElement *root = [[QRootElement alloc] init]; | ||
root.title = @"Mail"; | ||
|
||
QMailElement *element1 = [[QMailElement alloc] initWithTitle:@"Contact escoz" subject:@"Hello Escoz" messageBody:@"Dear Escoz" toRecipients:@[@"[email protected]"] ccRecipients:nil bccRecipients:nil]; | ||
QMailElement *element2 = [[QMailElement alloc] initWithTitle:@"Contact flyerhzm" subject:@"Hello Richard" messageBody:@"Dear Richard" toRecipients:@[@"[email protected]"] ccRecipients:nil bccRecipients:nil]; | ||
|
||
QSection *section = [[QSection alloc] init]; | ||
[section addElement:element1]; | ||
[section addElement:element2]; | ||
|
||
[root addSection:section]; | ||
return root; | ||
} | ||
|
||
+ (QRootElement *)createWebAndMapRoot { | ||
QRootElement *root = [[QRootElement alloc] init]; | ||
root.controllerName = @"ExampleViewController"; | ||
|
@@ -720,6 +735,7 @@ + (QRootElement *)create { | |
[sectionElements addElement:[[QRootElement alloc] initWithJSONFile:@"navigation"]]; | ||
[sectionElements addElement:[self createPickerRoot]]; | ||
[sectionElements addElement:[self createSelectRoot]]; | ||
[sectionElements addElement:[self createMailRoot]]; | ||
[sectionElements addElement:[self createWebAndMapRoot]]; | ||
[sectionElements addElement:[self createTextRoot]]; | ||
[sectionElements addElement:[self createDateTimeRoot]]; | ||
|