17 #ifndef GNEFrameAttributesModuls_h 18 #define GNEFrameAttributesModuls_h 172 void showAttributesCreatorModul(const
GNEAttributeCarrier::TagProperties& myTagProperties);
175 void hideAttributesCreatorModul();
178 std::map<
SumoXMLAttr, std::
string> getAttributesAndValues(
bool includeAll) const;
184 bool areValuesValid() const;
187 void showWarningMessage(std::
string extra = "") const;
192 long onCmdHelp(FXObject*, FXSelector,
void*);
232 void refreshAttributesEditorRow(
const std::string& value,
bool forceRefresh,
bool disjointAttributeEnabled);
235 bool isAttributesEditorRowValid()
const;
250 long onCmdOpenAttributeDialog(FXObject*, FXSelector,
void*);
258 std::string stripWhitespaceAfterComma(
const std::string& stringValue);
314 void showAttributeEditorModul(
const std::vector<GNEAttributeCarrier*>& ACs,
bool includeExtended);
317 void hideAttributesEditorModul();
320 void refreshAttributeEditor(
bool forceRefreshShape,
bool forceRefreshPosition);
326 const std::vector<GNEAttributeCarrier*>& getEditedACs()
const;
334 long onCmdAttributesEditorHelp(FXObject*, FXSelector,
void*);
374 void showAttributesEditorExtendedModul();
377 void hideAttributesEditorExtendedModul();
382 long onCmdOpenDialog(FXObject*, FXSelector,
void*);
413 void showGenericParametersEditor(std::vector<GNEAttributeCarrier*> ACs);
416 void hideGenericParametersEditor();
419 void refreshGenericParametersEditor();
422 std::string getGenericParametersStr()
const;
427 long onCmdEditGenericParameter(FXObject*, FXSelector,
void*);
430 long onCmdSetGenericParameter(FXObject*, FXSelector,
void*);
445 std::vector<GNEAttributeCarrier*>
myACs;
473 void showDrawingShape();
476 void hideDrawingShape();
488 void addNewPoint(
const Position& P);
491 void removeLastPoint();
497 bool isDrawing()
const;
500 void setDeleteLastCreatedPoint(
bool value);
503 bool getDeleteLastCreatedPoint();
508 long onCmdStartDrawing(FXObject*, FXSelector,
void*);
511 long onCmdStopDrawing(FXObject*, FXSelector,
void*);
514 long onCmdAbortDrawing(FXObject*, FXSelector,
void*);
563 void hideNeteditAttributesModul();
566 bool getNeteditAttributesAndValues(std::map<SumoXMLAttr, std::string>& valuesMap,
const GNELane* lane)
const;
571 long onCmdSetNeteditAttribute(FXObject*, FXSelector,
void*);
574 long onCmdHelp(FXObject*, FXSelector,
void*);
587 GNE_ADDITIONALREFERENCEPOINT_INVALID
591 double setStartPosition(
double positionOfTheMouseOverLane,
double lengthOfAdditional)
const;
594 double setEndPosition(
double positionOfTheMouseOverLane,
double lengthOfAdditional)
const;
void destroy()
destroy AttributesCreatorRow (but don't delete)
const bool myMultiple
flag to check if input element contains multiple values
FXRadioButton * myAttributeRadioButton
Radio button for disjoint attributes.
DrawingShape()
FOX needs this.
void enableAttributesCreatorRow()
enable row
FXCheckButton * myBlockShapeCheckButton
checkBox for block shape
long onCmdSelectCheckButton(FXObject *, FXSelector, void *)
called when user press a check button
AttributesCreator * myAttributesCreatorParent
pointer to AttributesCreator
PositionVector myTemporalShapeShape
current drawed shape
const GNEAttributeCarrier::AttributeProperties myACAttr
current AC Attribute
FXCheckButton * myValueCheckButton
pointer to menu check
long onCmdSelectRadioButton(FXObject *, FXSelector, void *)
called when user press a radio button
FXLabel * myBlockShapeLabel
Label for block shape.
std::string checkComplexAttribute(const std::string &value)
check if given complex attribute is valid
void setAttributeRadioButtonCheck(bool value)
enable or disable radio button for disjoint attributes
NeteditAttributes()
FOX needs this.
struct with the attribute Properties
std::vector< AttributesCreatorRow * > myAttributesCreatorRows
vector with the AttributesCreatorRow
FXTextField * myValueTextFieldStrings
textField to modify the default value of string parameters
std::string getValue() const
return value
GNEFrame * myFrameParent
pointer to frame parent
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
AttributesEditor * myAttributesEditorParent
pointer to AttributesEditor parent
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
FXCheckButton * myBlockMovementCheckButton
checkBox for block movement
FXButton * myEditGenericParameterButton
button for add generic parameter
long onCmdSelectColorButton(FXObject *, FXSelector, void *)
called when user press the "Color" button
AdditionalReferencePoint myActualAdditionalReferencePoint
actual additional reference point selected in the match Box
FXButton * myAbortDrawingButton
button for abort drawing
FXButton * myStartDrawingButton
button for start drawing
FXButton * helpReferencePoint
Button for help about the reference point.
FXLabel * myClosePolygonLabel
Label for open/close polygon.
GNEFrame * myFrameParent
pointer to Frame Parent
FXButton * myAttributeColorButton
Button for open color editor.
FXTextField * myValueTextFieldReal
textField to modify the value of real/Time attributes
const GNEAttributeCarrier::AttributeProperties myAttrProperties
attribute properties
GNEFrame * myFrameParent
pointer to GNEFrame parent
std::vector< std::pair< std::string, std::string > > * myGenericParameters
pointer to current vector of generic parameters
FXTextField * myValueTextFieldStrings
textField to modify the value of string attributes
GNEAttributeCarrier * myAC
edited Attribute Carrier
FXLabel * myLengthLabel
Label for length.
long onCmdSetAttribute(FXObject *, FXSelector, void *)
FXTextField * myValueTextFieldInt
textField to modify the default value of int/float/string parameters
A point in 2D or 3D with translation and scaling methods.
FXCheckButton * myCloseShapeCheckButton
checkbox to enable/disable closing polygon
std::vector< GNEAttributeCarrier * > myEditedACs
the multi-selection currently being inspected
bool myCurrentLengthValid
Flag to check if current length is valid.
bool myIncludeExtended
flag used to mark if current edited ACs are bein edited including extended attribute ...
FXCheckButton * myAttributeCheckButton
check button to enable/disable Label attribute
GNEAttributeCarrier::TagProperties myTagProperties
current edited Tag Properties
void disableAttributesCreatorRow()
disable row
AttributesCreator * getAttributesCreatorParent() const
get AttributesCreator parent
AttributesEditor()
FOX needs this.
FXButton * myAttributeButtonCombinableChoices
pointer to buttonCombinableChoices
FXLabel * myInformationLabel
Label with information.
FXRadioButton * myAttributeRadioButton
Radio button for disjoint attributes.
FXLabel * myAttributeLabel
pointer to attribute label
GenericParametersEditor()
FOX needs this.
const std::string & isAttributeValid() const
returns a empty string if current value is valid, a string with information about invalid value in ot...
FXCheckButton * myAttributeCheckButton
pointer to attribute menu check
FXTextField * myTextFieldGenericParameter
text field for write generic parameter
FXCheckButton * myValueCheckButton
check button to enable/disable the value of boolean parameters
FXTextField * myLengthTextField
textField for length
std::vector< GNEAttributeCarrier * > myACs
list of edited ACs
struct with the attribute Properties
GNEFrame * myFrameParent
pointer to frame parent
FXTextField * myValueTextFieldReal
textField to modify the default value of real/times parameters
GNEFrame * myFrameParent
pointer to Frame Parent
bool isAttributesCreatorRowEnabled() const
check if row is enabled
FXLabel * myBlockMovementLabel
Label for block movement.
FXComboBox * myValueComboBoxChoices
pointer to combo box choices
AttributesCreatorRow()
FOX needs this.
const GNEAttributeCarrier::AttributeProperties & getAttrProperties() const
return Attr
FXButton * myStopDrawingButton
button for stop drawing
FXComboBox * myReferencePointMatchBox
match box with the list of reference points
FXButton * myHelpButton
button for help
FXButton * myHelpButton
help button
AdditionalReferencePoint
list of the reference points
bool getAttributeRadioButtonCheck() const
return status of radio button
FXLabel * myAttributeLabel
Label with the name of the attribute.
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
void setAttributeCheckButtonCheck(bool value)
enable or disable label checkbox button for optional attributes
bool getAttributeCheckButtonCheck() const
return status of label checkbox button
std::vector< AttributesEditorRow * > myAttributesEditorRows
list of Attribute editor rows
FXTextField * myValueTextFieldInt
textField to modify the value of int attributes
GNEFrame * myFrameParent
pointer to inspector frame parent
FXButton * myAttributeColorButton
Button for open color editor.
std::string myInvalidValue
string which indicates the reason due current value is invalid