[TD] update balloon dialog
2 weeks ago the properties EndTypeScale and LineVisible were added but not to the dialog. This PR adds them t the balloon dialog- It also took the opportunity to cleanup the code: - add missing tooltips - uniform tooltips in App and Gui - uniform the UI element names
This commit is contained in:
@@ -47,7 +47,6 @@
|
||||
#include <Gui/ViewProviderDocumentObject.h>
|
||||
|
||||
#include <Mod/TechDraw/App/LineGroup.h>
|
||||
//#include <Mod/TechDraw/App/Preferences.h>
|
||||
|
||||
#include "PreferencesGui.h"
|
||||
#include "TaskBalloon.h"
|
||||
@@ -67,18 +66,16 @@ ViewProviderBalloon::ViewProviderBalloon()
|
||||
|
||||
static const char *group = "Balloon Format";
|
||||
|
||||
ADD_PROPERTY_TYPE(Font,(Preferences::labelFont().c_str()),group,App::Prop_None, "The name of the font to use");
|
||||
ADD_PROPERTY_TYPE(Fontsize,(Preferences::dimFontSizeMM()),
|
||||
group,(App::PropertyType)(App::Prop_None),"Balloon text size in units");
|
||||
ADD_PROPERTY_TYPE(Font, (Preferences::labelFont().c_str()), group, App::Prop_None, "The name of the font to use");
|
||||
ADD_PROPERTY_TYPE(Fontsize, (Preferences::dimFontSizeMM()),
|
||||
group, (App::PropertyType)(App::Prop_None), "Balloon text size in units");
|
||||
int lgNumber = Preferences::lineGroup();
|
||||
auto lg = TechDraw::LineGroup::lineGroupFactory(lgNumber);
|
||||
double weight = lg->getWeight("Thin");
|
||||
delete lg; //Coverity CID 174670
|
||||
ADD_PROPERTY_TYPE(LineWidth,(weight),group,(App::PropertyType)(App::Prop_None),"Leader line width");
|
||||
ADD_PROPERTY_TYPE(LineVisible,(true),group,(App::PropertyType)(App::Prop_None),"Balloon line visible or hidden");
|
||||
|
||||
ADD_PROPERTY_TYPE(Color,(PreferencesGui::dimColor()),
|
||||
group,App::Prop_None,"Color of the balloon");
|
||||
ADD_PROPERTY_TYPE(LineWidth, (weight), group, (App::PropertyType)(App::Prop_None), "Leader line width");
|
||||
ADD_PROPERTY_TYPE(LineVisible, (true), group, (App::PropertyType)(App::Prop_None), "Balloon line visible or hidden");
|
||||
ADD_PROPERTY_TYPE(Color, (PreferencesGui::dimColor()), group, App::Prop_None, "Color of the balloon");
|
||||
}
|
||||
|
||||
ViewProviderBalloon::~ViewProviderBalloon()
|
||||
|
||||
Reference in New Issue
Block a user