-
Notifications
You must be signed in to change notification settings - Fork 253
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
[FMX port]Discussions #1134
Comments
For me that would be OK. Ideally, the method would be protected (not public) and a default value for the new parameter is added. |
|
Sorry, I'm not familiar with FMX, but can you please explain why you can't hold it in a member variable and need to create it every time? |
I shortened the answer ;-) |
Wouldn't it be more consistent, to have also two members for the brushes in VCL as well? That should reduce conditional code for this stuff. |
Currently there are two members for VCL too, but as on VCL it is not needed it simple have getter from second.
But still i need parameters in this methods to pass DottedBrushTreeLines or DottedBrushGridLines. |
I was unable to find the appropriate code. Can you tell me the method name where this is done? |
Look at My biggest concern here was not to write final code, but to eliminate most of the ifdefs from it. Still 200 left :/ |
I was able to move a lot of stuff from class How is your progress in the FMX port, @livius2? |
@joachimmarder I do not looked at your current changes, but look at discussion why it was introduced as two classes not one:
To be honest, I stopped due to the workload at work. But it's almost winter, so I'll have more time and I'll come back to the topic. I like to finish it to the beginning of the year. But it also depends on whether we will reach a compromise at certain points when it comes to "ifdef". Because I don't think it's possible to get rid of them 100%, unfortunately. Despite the division into additional classes. But maybe we'll come up with a clever idea. |
Have you had a chance to check my chnages?
I'm still not sure that two platform-specific classes are neeeded and my refactorings were a test to see if we can maybe eliminate one.
I find it important to centralize them, like we did so far. And I'm sure many can be avoided by using some smart ideas. But without a concrete example, this is difficult to discuss. |
I need to incorporate all your changes since the last time I ran this code. And in the meantime, I see a lot has happened. When I'm done, I'll try to compile it for FMX and see if anything bothers me. I'll let you know. |
Finally done "merge" and fixes. Pull request created. Now i am ready to move forward. |
Well, the quesion remains if |
Until we finish full FMX port i cannot decide. And removing it, have also consequences. |
Yes, but that does not tell anything about if both platform specific classes are truly needed.
I don't find it natural to have platform specific classes on two different levels of the class hierarchy.
For the moment, we could simply leave it there, but without any methods. And at the end, remove if not needed. |
In the |
I see a call in |
But this is different (different code) |
… to call them both. Issue #1134
Sorry, you are right, @livius2, I missed that the method was split up. |
I would like to make a release of V8 this weekend. Are there any concerns from your side doing this? |
From my side no. |
Just for information, I uploaded current sources that compile under FMX to my fork. |
Hi
As i do not have good place for discussion about some next steps, so i have created topic here.
The question for next patch. Is it possible to add parameter for already virtual methods? Or this is prohibited?
I am thinking about adding parameter to DrawDottedHLine and DrawDottedVLine. I need to add dottedBrush: TBrush. I do not see a way without new parameter.
The text was updated successfully, but these errors were encountered: