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

Made the buttons usable for modern client #29

Merged
merged 2 commits into from
Nov 24, 2015

Conversation

weskamm
Copy link
Member

@weskamm weskamm commented Nov 23, 2015

This PR changes all current buttons to extend from Ext.Button instead of Ext.button.Button.
This way they are compatible with the classic and modern toolkit.
There are still buttons which cannot be used in the modern toolkit (Permalink, AddWms and CoordinateTransform), because they rely on classic components like windows.

Other changes involved are the usage of the constructor and moving the button handlers to the config object.
The tooltip binding had to be taken special care of because the "modern" buttons dont support the setToolTip method.

@marcjansen
Copy link
Member

Just to get this right: they now work on both modern and classic?

@weskamm
Copy link
Member Author

weskamm commented Nov 23, 2015

Yes. Another PR will follow the next days so that the icons in modern toolkit are also visible, currently they are not because of no support for glyphs in modern toolkit

@marcjansen
Copy link
Member

Pnce I have time to cjeck this in my apps I'll 👍 this. If it is urgent, please ping e.g. @KaiVolland

@weskamm
Copy link
Member Author

weskamm commented Nov 23, 2015

Take your time 👍

@weskamm
Copy link
Member Author

weskamm commented Nov 23, 2015

Display of icons has been fixed. Modern toolkit uses html, classic uses glyph.
Tested in modern and classic app, works as intended.

@marcjansen
Copy link
Member

Very nice work, applied cleanly and works fine in two other apps. Thanks, @weskamm, please merge.

@weskamm
Copy link
Member Author

weskamm commented Nov 24, 2015

thx, will merge

weskamm added a commit that referenced this pull request Nov 24, 2015
Made the buttons usable for modern client
@weskamm weskamm merged commit ed62b05 into terrestris:master Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants