-
Notifications
You must be signed in to change notification settings - Fork 762
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
stock transaction assistant refactor to MVC #1442
stock transaction assistant refactor to MVC #1442
Conversation
bdc4908
to
c0e97b9
Compare
f79dbdf
to
c185756
Compare
MVC separation complete... Some conclusions:
|
acca3fe
to
1333813
Compare
728bb79
to
35bbca3
Compare
acce0d1
to
8a27bfb
Compare
560cf4e
to
67bdc7c
Compare
Step 1, switch to master branch and create classes for different Infos and assistant pages. |
f44750f
to
7cf0ccb
Compare
${CMAKE_SOURCE_DIR}/libgnucash/engine | ||
${GNOME_UTILS_GUI_TEST_INCLUDE_DIRS} | ||
${GNOME_UTILS_GUI_TEST_LIBS} | ||
${GLIB2_INCLUDE_DIRS} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${GLIB2_INCLUDE_DIRS}
is not needed nowadays... bddb446
Is this branch ready to merge? PS It's now unrecognisable to me and I'll struggle to make further modifications to this file! |
No, I've had to set it aside for bug-fixing. I'll be at a genealogy conference next week and hope to take it back up after that. Sounds like I need to add some comments. |
input_new_balance merged into stock_amount FieldMask
Should start with m_. Also designating them with this-> isn't idiomatic or necessary, and long functions shouldn't be defined in the class/struct body.
For better readability. Removes gratuitous parameterized test suite because the StockAssistantModel is stateful and can't use easyTestCases when it and the book are re-created for each instance, as is the case when the easyTestCases is passed as a parameter set to a test suite. Also replaced the shared_ptr<QofBook> with a unique_ptr.
Because it is one.
Moving the ctor and dtor to immediately after the variables and moving the longer function defs out of the class decl.
Rename member variables with m_ prefix, remove this-> from in-class references to those variables.
bd5cb5c
to
46fba00
Compare
@christopherlam I added some comments explaining the classes. Does that help? |
Slightly. We'll see the challenge when bugs need fixing. Now gcc/clang linux aren't compiling. |
PS when this branch is ready please go ahead and merge; I'll fix ifrs report and tests in due course. |
Unless they're valid. Otherwise the invalid value will log an error that will prevent later valid input from working.
46fba00
to
c4e0ddb
Compare
No description provided.