subsurface/desktop-widgets/plugins/facebook
Berthold Stoeger 78e2560296 Cleanup: Turn widget accessor-functions into simple pointers
The keeps track of different sub widgets needed by other parts
of the code, notably:
	MainTab
	PlannerDetails
	PlannerSettingsWidget
	ProfileWidget2
	DivePlannerWidget
	DiveListView
Access to these widgets was provided with accessor functions.
Now these functions were very weird: instead of simply returning
pointers that were stored in the class, they accessed a data
structure which describes the different application states.
But this data structure was "duck-typed", so there was an
implicit agreement at which position the pointers to the
widgets were put inside. The widgets were then down-cast by
the accessor functions. This might make sense if the individual
widgets could for some reason be replaced by other widgets
[dynamic plugins?], but even then it would be strange, as one
would expect to get a pointer to some base class.

Therefore, directly store the properly typed pointers to the
widgets and simply remove the accessor functions. Why bother?

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-10-13 21:42:53 -04:00
..
CMakeLists.txt Fix CMake to not add Facebook on Android 2015-12-17 11:48:15 -08:00
facebook_integration.cpp desktop-widgets/.../facebook: Change Q_UNUSED to no parameter name 2018-05-21 12:48:04 -07:00
facebook_integration.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
facebookconnectwidget.cpp Cleanup: Turn widget accessor-functions into simple pointers 2018-10-13 21:42:53 -04:00
facebookconnectwidget.h Initialize Facebook page only when dialog is shown 2017-11-10 10:04:28 -08:00
facebookconnectwidget.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
socialnetworksdialog.ui [Facebook] Add hability to choose size of profile 2017-09-29 12:57:34 -07:00