Last active
July 22, 2019 22:53
-
-
Save petrstepanov/2ee1502963f744100e49662c9d533430 to your computer and use it in GitHub Desktop.
CERN ROOT MVP View souce
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 "__View.h" | |
#include "__Presenter.h" | |
__View::__View(const TGWindow *w) : AbstractView<__Presenter>(w){ | |
// Build UI | |
initUI(); | |
// Instantinate presenter and connect slots | |
presenter = instantinatePresenter(); | |
connectSignalsToPresenter(); | |
} | |
__View::~__View(){}; | |
__Presenter* __View::instantinatePresenter(){ | |
return new __Presenter(this); | |
} | |
void __View::initUI(){ | |
SetLayoutManager(new TGHorizontalLayout(this)); | |
// Layout UI elements | |
} | |
void __View::connectSignalsToPresenter(){ | |
// button->Connect("Clicked()", "__Presenter", presenter, "onViewButtonClicked()"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment