-
Notifications
You must be signed in to change notification settings - Fork 98
Rearrange widgets in settings window and refactor code related #46
Comments
I have a question for everyone involved: do you think we should keep everything inside the same window? If not, should we add our menu into IDA? I do like the idea of using only the widget though. :-/ |
Actually, there are not so many differences... Currently, we are using a TabWidget with many pages, and for each page, a QWidget is created to put many controls. When closing the window, settings in the QWidget will be saved. If we use a menu, we can just remove the TabWidget and add a warper function like The latter solution seems to have a much more clean code, but that programming model can still be applied to the |
@SilverBut Thank you for your input. I'm on the "keeping everything as is" side too. @patateqbool? |
Same here, I prefer the current style. Thanks for your input @SilverBut. |
Besides I recommend we split some commits.... such as in comit 7dad355, it says "Save/Reset/Cancel Buttons" are added, but after reviewed the code you might noticed:
They should be pushed as seperate commits, or be described in detail in the commit comments, instead of making maintainers to see the code line-by-line. Besides, maybe we can use a |
Commits generated by |
You're absolutely right about that. I've always found it difficult to fragment my changes into smaller commits. While fixing a bug, I usually end up finding some new bugs, that I fix immediately. I probably shouldn't do that. I'll try to improve on that, and I think I can use PyCharm to select what changes to commit each time.
Sure, I haven't taken the time to do it, but I definitively will!
What do you mean by that? I made a single commit when switching to |
Yeah I know. I just mean that in case of new contributors break the code style, they should use one single commit for fixing it (like this) instead of add a code style commit everytime they added a real commit to the PR. By the way, PR #52 is added to fix #51 and #46. You can review and merge them if you need. |
If we're going to separate tabs into multiple files, shouldn't we make the reset button reset only the current tab (as opposed to resetting all tabs as we currently do)? |
That is a good idea. We may implement getter & setter methods for each widget so they can be easily resetted by providing a |
I believe only splitting the code into smaller files (#38) is still missing. Closing this issue. |
Currently, some files under
idarling/interface
are kind of too complex and should be refactored.Also, the settings window don't have a common save/cancel/reset button, which is kind of awkward for users.
I would refactor those code and make a change to the widgets.
The text was updated successfully, but these errors were encountered: