88 FXVerticalFrame::hide();
110 FXVerticalFrame::show();
119 FXVerticalFrame::hide();
203 FXDialogBox* attributesHelpDialog =
new FXDialogBox(
myScrollWindowsContents, (
"Parameters of " + AC->
getTagStr()).c_str(),
GUIDesignDialogBoxResizable, 0, 0, 0, 0, 10, 10, 10, 38, 4, 4);
207 int sizeColumnDescription = 0;
208 int sizeColumnDefinitions = 0;
210 myTable->setVisibleColumns(3);
212 myTable->setBackColor(FXRGB(255, 255, 255));
213 myTable->setColumnText(0,
"Attribute");
214 myTable->setColumnText(1,
"Description");
215 myTable->setColumnText(2,
"Definition");
216 myTable->getRowHeader()->setWidth(0);
221 FXTableItem* attribute =
new FXTableItem(tagProperty.getAttrStr().c_str());
222 attribute->setJustify(FXTableItem::CENTER_X);
223 myTable->setItem(itemIndex, 0, attribute);
225 FXTableItem* type =
new FXTableItem(
"");
226 type->setText(tagProperty.getDescription().c_str());
227 sizeColumnDescription =
MAX2(sizeColumnDescription, (
int)tagProperty.getDescription().size());
228 type->setJustify(FXTableItem::CENTER_X);
229 myTable->setItem(itemIndex, 1, type);
231 FXTableItem* definition =
new FXTableItem(tagProperty.getDefinition().c_str());
232 definition->setJustify(FXTableItem::LEFT);
233 myTable->setItem(itemIndex, 2, definition);
234 sizeColumnDefinitions =
MAX2(sizeColumnDefinitions, (
int)tagProperty.getDefinition().size());
238 FXHeader* header = myTable->getColumnHeader();
239 header->setItemJustify(0, JUSTIFY_CENTER_X);
240 header->setItemSize(0, 120);
241 header->setItemJustify(1, JUSTIFY_CENTER_X);
242 header->setItemSize(1, sizeColumnDescription * 7);
243 header->setItemJustify(2, JUSTIFY_CENTER_X);
244 header->setItemSize(2, sizeColumnDefinitions * 6);
256 attributesHelpDialog->create();
258 attributesHelpDialog->show(PLACEMENT_CURSOR);
262 getApp()->runModalFor(attributesHelpDialog);
268 const std::vector<std::string>&
#define GUIDesignTableNotEditable
design for table extended over frame that cannot be edited
#define GUIDesignDialogBoxResizable
design for standard dialog box (for example, about dialog)
#define GUIDesignContentsFrame
design for the main content frame of every frame/dialog
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignButtonOK
#define GUIDesignHorizontalSeparator
#define GUIDesignContentsScrollWindow
design for the content frame of every frame
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions
#define GUIDesignLabelFrameInformation
label extended over frame without thick and with text justify to left, used to show information in fr...
@ SUMO_ATTR_NOTHING
invalid attribute
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::string & getTagStr() const
get tag assigned to this object in string format
const GNETagProperties & getTagProperty() const
get tagProperty associated with this Attribute Carrier
FXHorizontalFrame * myHeaderRightFrame
fame for right header elements
virtual void attributeUpdated()
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/....
void focusUpperElement()
focus upper element of frame
virtual void updateFrameAfterUndoRedo()
function called after undo/redo in the current frame (can be reimplemented in frame children)
virtual void attributesEditorExtendedDialogOpened()
open AttributesCreator extended dialog (can be reimplemented in frame children)
virtual void tagSelected()
Tag selected in TagSelector.
GNEViewNet * getViewNet() const
get view net
FXLabel * getFrameHeaderLabel() const
get the label for the frame's header
FXScrollWindow * myScrollWindowsContents
scroll windows that holds the content frame
virtual void demandElementSelected()
selected demand element in DemandElementSelector
GNEViewNet * myViewNet
View Net.
FXFont * getFrameHeaderFont() const
get font of the header's frame
virtual void createPath()
create path (can be reimplemented in frame children)
FXVerticalFrame * myContentFrame
Vertical frame that holds all widgets of frame.
FXHorizontalFrame * myHeaderFrame
fame for header elements
virtual void show()
show Frame
virtual void hide()
hide Frame
virtual void selectedOverlappedElement(GNEAttributeCarrier *AC)
open AttributesCreator extended dialog (can be reimplemented in frame children)
virtual bool shapeDrawed()
build a shaped element using the drawed shape (can be reimplemented in frame children)
void openHelpAttributesDialog(const GNEAttributeCarrier *AC) const
Open help attributes dialog.
std::vector< std::string > myPredefinedTagsMML
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cach...
FXLabel * myFrameHeaderLabel
the label for the frame's header
void setFrameWidth(int newWidth)
set width of GNEFrame
static FXFont * myFrameHeaderFont
static Font for the Header (it's common for all headers, then create only one time)
const std::vector< std::string > & getPredefinedTagsMML() const
get predefinedTagsMML
FXHorizontalFrame * myHeaderLeftFrame
fame for left header elements
GNEFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet, const std::string &frameLabel)
Constructor.
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
int getNumberOfAttributes() const
get number of attributes
GNEViewParent * getViewParent() const
get the net object
void hideFramesArea()
hide frames area if all GNEFrames are hidden
void showFramesArea()
show frames area if at least a GNEFrame is showed
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
static StringBijection< int >::Entry attrs[]
The names of SUMO-XML attributes (for passing to GenericSAXHandler)