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

refactoring - pass ifce, process mgmt #234

Merged
merged 3 commits into from
Nov 23, 2016
Merged

refactoring - pass ifce, process mgmt #234

merged 3 commits into from
Nov 23, 2016

Conversation

tezeb
Copy link
Contributor

@tezeb tezeb commented Nov 23, 2016

This is a first refactoring step to extract functionalities from MainWindow. It compiles and works(mostly?). I'm sharing to propose direction and gather feedback. It consist of 3 commits.
First one(e15c93f) is an interface "design" for "backend"(pass or (git/gpg...)). This was my main driver for refactoring.
Second commit(1e06efd) moves code from MainWindow to appropriate classes. I've tried keeping changes to minimum to ease reviewing at this stage. Unfortunately, as it showed up, I had to move (probably all) process management code into my interface as well. I think it shall be further separated.
Last commit contains localization updates.

As I've already mentioned next step is extraction of process mgmt into separate class. I also think that there is a huge potential for using signal/slots mechanism for MainWindow<->Pass Interface(process mgmt) communication.

And special thx goes to @YoshiMan for extracting QtPassSettings, which was a huge help!

@annejan
Copy link
Member

annejan commented Nov 23, 2016

This sounds like exactly the kind of refactoring I was thinking about but never got the focus to do :)
Thank you very much, will look into the changes and provide feedback tomorrow.

@jounathaen
Copy link
Member

jounathaen commented Nov 23, 2016

Great, that somebody starts this :-)
👍 👍 👍

@annejan annejan merged commit 2ff206a into IJHack:master Nov 23, 2016
@annejan
Copy link
Member

annejan commented Nov 23, 2016

Moved the #ifdef __APPLE__

In the not so wise words of me 😈
Works on my machine .. merged!

@annejan
Copy link
Member

annejan commented Nov 23, 2016

According to static analysis this change even removes a identical_branches "issue" in a moc_
https://scan.coverity.com/projects/ijhack-qtpass and reduces complexity a lot . . Thanks for the effort @tezeb !!

@YoshiMan
Copy link

@tezeb awesome work. I love it. thumbs up

@tezeb
Copy link
Contributor Author

tezeb commented Nov 24, 2016

wow, that was fast merge :) thx
Glad that you liked the changes.

@annejan regarding "housekeeping" commit, do you have some tool/config for fixing style?

@annejan
Copy link
Member

annejan commented Nov 24, 2016

I have set up clang default standards in vim and QtCreator . .
To fix in commandline I use clang-format -i *.cpp *.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants