46 myColorbox =
new FXColorSelector(
getContentFrame(),
this, FXColorDialog::ID_COLORSELECTOR, LAYOUT_FILL_X | LAYOUT_FILL_Y);
94 return target->tryHandle(
this, FXSEL(SEL_CHANGED, message), ptr);
104 return target->tryHandle(
this, FXSEL(SEL_COMMAND, message), ptr);
FXDEFMAP(GNEColorDialog) GNEColorDialogMap[]
GUIIcon
An enumeration of icons used by the gui applications.
The main window of Netedit.
static T parse(const std::string &string)
parses a value of type T from string (used for basic types: int, double, bool, etc....
static bool canParse(const std::string &string)
true if a value of type T can be parsed from string
RGBColor getColor() const
Get the color.
GNEColorDialog(GNEApplicationWindow *applicationWindow, const RGBColor color)
Construct color dialog.
long onCmdReset(FXObject *, FXSelector, void *)
called when reset button is pressed
virtual ~GNEColorDialog()
Destructor.
long onChgColor(FXObject *, FXSelector, void *)
Called when color is changed.
long onCmdColor(FXObject *, FXSelector, void *)
Called when color is selected.
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
const RGBColor myOriginalColor
Original color to restore pressing reset button.
FXColorSelector * myColorbox
Default constructor.
FXVerticalFrame * getContentFrame() const
get content frame
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
OpenType
Open dialog type.
GNEDialog(GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode)
basic constructor
dialog arguments, used for certain modal dialogs that can not be edited using tab
const std::string & getCustomAction() const
get custom action
static FXColor getFXColor(const RGBColor &col)
converts FXColor to RGBColor
static RGBColor getRGBColor(FXColor col)
converts FXColor to RGBColor