Last active
July 16, 2019 03:46
-
-
Save petrstepanov/7cb67ec3876e2f44c455b59f27e97f31 to your computer and use it in GitHub Desktop.
CERN ROOT MVP Presenter source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "__Presenter.h" | |
#include "__View.h" | |
#include "../AbstractPresenter.h" | |
#include "../../model/Model.h" | |
#include <TGFileDialog.h> | |
__Presenter::__Presenter(__View* view) : AbstractPresenter<Model, __View>(view) { | |
model = instantinateModel(); | |
onInitModel(); | |
} | |
__Presenter::~__Presenter(){} | |
Model* __Presenter::instantinateModel() { | |
return Model::getInstance(); | |
} | |
// Slots from Model | |
void __Presenter::onInitModel() { | |
} | |
// Slots from View |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment