31#define PADDINGFRAME 10
32#define VERTICALSCROLLBARWIDTH 15
95 FXVerticalFrame::hide();
117 FXVerticalFrame::show();
126 FXVerticalFrame::hide();
141 for (
auto child =
myContentFrame->getFirst(); child !=
nullptr; child = child->getNext()) {
142 child->setWidth(contentWidth);
185 FXDialogBox* attributesHelpDialog =
new FXDialogBox(
myScrollWindowsContents, (
"Parameters of " + AC->
getTagStr()).c_str(),
GUIDesignDialogBoxResizable, 0, 0, 0, 0, 10, 10, 10, 38, 4, 4);
189 int sizeColumnDescription = 0;
190 int sizeColumnDefinitions = 0;
192 myTable->setVisibleColumns(3);
194 myTable->setBackColor(FXRGB(255, 255, 255));
195 myTable->setColumnText(0,
"Attribute");
196 myTable->setColumnText(1,
"Description");
197 myTable->setColumnText(2,
"Definition");
198 myTable->getRowHeader()->setWidth(0);
203 FXTableItem* attribute =
new FXTableItem(tagProperty.getAttrStr().c_str());
204 attribute->setJustify(FXTableItem::CENTER_X);
205 myTable->setItem(itemIndex, 0, attribute);
207 FXTableItem* type =
new FXTableItem(
"");
208 type->setText(tagProperty.getDescription().c_str());
209 sizeColumnDescription =
MAX2(sizeColumnDescription, (
int)tagProperty.getDescription().size());
210 type->setJustify(FXTableItem::CENTER_X);
211 myTable->setItem(itemIndex, 1, type);
213 FXTableItem* definition =
new FXTableItem(tagProperty.getDefinition().c_str());
214 definition->setJustify(FXTableItem::LEFT);
215 myTable->setItem(itemIndex, 2, definition);
216 sizeColumnDefinitions =
MAX2(sizeColumnDefinitions, (
int)tagProperty.getDefinition().size());
220 FXHeader* header = myTable->getColumnHeader();
221 header->setItemJustify(0, JUSTIFY_CENTER_X);
222 header->setItemSize(0, 120);
223 header->setItemJustify(1, JUSTIFY_CENTER_X);
224 header->setItemSize(1, sizeColumnDescription * 7);
225 header->setItemJustify(2, JUSTIFY_CENTER_X);
226 header->setItemSize(2, sizeColumnDefinitions * 6);
238 attributesHelpDialog->create();
240 attributesHelpDialog->show(PLACEMENT_CURSOR);
244 getApp()->runModalFor(attributesHelpDialog);
309const std::vector<std::string>&
322 FXLabel* colorLabel =
new FXLabel(horizontalFrameColors,
"",
nullptr,
GUIDesignLabelLeft);
#define GUIDesignTableNotEditable
design for table extended over frame that cannot be edited
#define GUIDesignLabelLeft
#define GUIDesignDialogBoxResizable
design for standard dialog box (for example, about dialog)
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignFrameAreaMarging
rigth marging for frame area
#define GUIDesignButtonOK
#define GUIDesignLabelCenterThick
label extended over frame with thick and with text justify to center
#define GUIDesignContentsGNEFrame
design for the GNEFrame
#define GUIDesignHorizontalSeparator
#define GUIDesignContentsScrollWindow
design for the content scroll 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/....
int getScrollBarWidth() const
get scrollBar width (zero if is hidden)
void setFrameWidth(const int newWidth)
set width of GNEFrame
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 GNEAttributesCreator extended dialog
static FXLabel * buildRainbow(FXComposite *parent)
build rainbow in frame modul
virtual void tagSelected()
Tag selected in GNETagSelector.
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
FOX need this.
FXFont * getFrameHeaderFont() const
get font of the header's frame
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
GNEFrame(GNEViewParent *viewParent, GNEViewNet *viewNet, const std::string &frameLabel)
Constructor.
virtual void selectedOverlappedElement(GNEAttributeCarrier *AC)
open GNEAttributesCreator extended dialog
virtual void frameWidthUpdated()
function called after setting new width in current frame (can be reimplemented in frame children)
virtual bool shapeDrawed()
build a shaped element using the drawed shape
virtual bool createPath(const bool useLastRoute)
create path between two elements
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
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
FXVerticalFrame * getContentFrame() const
get vertical frame that holds all widgets of frame
FXHorizontalFrame * myHeaderLeftFrame
fame for left header elements
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
A single child window which contains a view of the simulation area.
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 FXColor getFXColor(const RGBColor &col)
converts FXColor to RGBColor
static StringBijection< int >::Entry attrs[]
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
static const std::vector< RGBColor > & getRainbowScaledColors()
get scaled rainbow colors