Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-8838: <BlackBerry: Implement UI.TableView> #62

Merged
merged 7 commits into from Jun 5, 2012

Conversation

Harutyun
Copy link

Reviewers: Alex, Davic C.

Change Log:

  • implemented BB support of tableView controller
  • implemented dictionary JV type parser
  • fixed issues which came from some merge for textField

TestCases

  • build tibb
  • build tibtest
  • instance java script tableView object with certain properties
    implemented here
  • make run tibbtest project make sure properties/events are working
  • run docgen.py script
  • make sure documentation includes updates

Reviewers: Alex, Davic C.

Change Log:
- implemented BB support of tableView controller
- implemented dictionary JV type parser
- fixed issues which came from some merge for textField

TestCases
- build tibb
- build tibtest
- instance java script tableView object with certain properties
  implemented here
- make run tibbtest project make sure properties/events are working
- run docgen.py script
- make sure documentation includes updates
@jpl-mac
Copy link

jpl-mac commented May 23, 2012

Please add the URL to this PR in the jira issue comments.

@Harutyun
Copy link
Author

Done:

@@ -190,7 +190,7 @@ methods:
events:
- name: click
summary: Fired when a table row is clicked by the user.
platforms: [android, iphone, ipad, mobileweb]
platforms: [android, iphone, ipad, mobileweb, backberry]
properties:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be blackberry, instead of 'backberry'.
Also say for method appendRow, since we don't implement it mark platforms as [android, iphone, ipad, mobileweb], and so on for others.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@alexandergalstyan
Copy link

reviewed

@alexandergalstyan
Copy link

Approved

@alexandergalstyan
Copy link

You need to merge code.

@@ -337,3 +362,42 @@ int NativeControlObject::getStringArray(TiObject* obj, QVector<QString>& value)
}
return NATIVE_ERROR_OK;
}

int NativeControlObject::getDictionaryData(TiObject* obj, multimap<QString, QString>& dictionary)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use a QMultiMap?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to QVector, because it needs to keep the order of elements

@jpl-mac
Copy link

jpl-mac commented May 25, 2012

When is TableViewRow going to be implemented? Is there a jira task for it?

events:
- name: click
summary: Fired when a table row is clicked by the user.
platforms: [android, iphone, ipad, mobileweb]
platforms: [android, iphone, ipad, mobileweb, blackberry]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are all the click event properties currently supported? If not the yml needs updating

@jpl-mac
Copy link

jpl-mac commented May 25, 2012

What about TableViewIndexEntry?

@Harutyun
Copy link
Author

This jira task was created for TableViewRow https://jira.appcelerator.org/browse/TIMOB-8839

@Harutyun
Copy link
Author

for TableViewIndexEntry created jira task and assigned to me: https://jira.appcelerator.org/browse/TIMOB-9290

HandleScope handleScope;
TiUITableView* obj = (TiUITableView*) userContext;
NativeObject* no = obj->getNativeObject();
Local<Integer> index = args[0]->ToInteger();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should verify that arg[0] is indeed an int before converting to integer. If it is not ToInteger will always return 0. This should at least be logged.

Just add a qDebug() <<
with the class name::function and something like "received arg is not an integer"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@jpl-mac
Copy link

jpl-mac commented May 31, 2012

Thanks Harut, please change the toStd for toUtf8 at merge time

Harut added 2 commits June 5, 2012 13:08
Conflicts:
	blackberry/tibb/NativeContainerObject.cpp
	blackberry/tibb/NativeObjectFactory.cpp
	blackberry/tibb/TiCascadesEventHandler.cpp
	blackberry/tibb/TiCascadesEventHandler.h
	blackberry/tibb/TiUIObject.cpp
	blackberry/tibb/TiUIObject.h
	blackberry/tibb/moc_TiCascadesEventHandler.cpp
Harutyun pushed a commit that referenced this pull request Jun 5, 2012
TIMOB-8838: <BlackBerry: Implement UI.TableView>
@Harutyun Harutyun merged commit 6be8018 into Macadamian:blackberry Jun 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants