GUIDialog_Breakpoints.cpp File Reference


Detailed Description

Author:
Daniel Krajzewicz
Date:
Thu, 17 Jun 2004
Version:
Id
GUIDialog_Breakpoints.cpp 8720 2010-05-04 12:41:50Z dkrajzew

Definition in file GUIDialog_Breakpoints.cpp.

#include <config.h>
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <set>
#include <gui/GUIApplicationWindow.h>
#include <utils/gui/windows/GUIAppEnum.h>
#include <gui/GUIGlobals.h>
#include <utils/gui/globjects/GUIGlObject.h>
#include <utils/foxtools/MFXUtils.h>
#include <utils/common/ToString.h>
#include <utils/common/TplConvert.h>
#include "GUIDialog_Breakpoints.h"
#include <utils/gui/windows/GUISUMOAbstractView.h>
#include <utils/foxtools/MFXAddEditTypedTable.h>
#include <utils/common/FileHelpers.h>
#include <utils/common/MsgHandler.h>
#include <utils/options/OptionsCont.h>
#include <utils/gui/div/GUIIOGlobals.h>
#include <utils/gui/windows/GUIAppGlobals.h>
#include <utils/gui/images/GUIIconSubSys.h>
#include <utils/iodevices/OutputDevice.h>

Go to the source code of this file.

Defines

#define INVALID_VALUE   -1
#define INVALID_VALUE_STR   "-1"

Functions

 FXDEFMAP (GUIDialog_Breakpoints) GUIDialog_BreakpointsMap[]
 FXIMPLEMENT (GUIDialog_Breakpoints, FXMainWindow, GUIDialog_BreakpointsMap, ARRAYNUMBER(GUIDialog_BreakpointsMap)) GUIDialog_Breakpoints


Define Documentation

#define INVALID_VALUE   -1

#define INVALID_VALUE_STR   "-1"

Definition at line 63 of file GUIDialog_Breakpoints.cpp.

Referenced by GUIDialog_Breakpoints::onCmdEditTable().


Function Documentation

FXDEFMAP ( GUIDialog_Breakpoints   ) 

FXIMPLEMENT ( GUIDialog_Breakpoints  ,
FXMainWindow  ,
GUIDialog_BreakpointsMap  ,
ARRAYNUMBER(GUIDialog_BreakpointsMap)   
)

Definition at line 78 of file GUIDialog_Breakpoints.cpp.

References CT_INT, GUIIconSubSys::getIcon(), OptionsCont::getOptions(), ICON_APP_BREAKPOINTS, MID_CANCEL, MID_CHOOSEN_CLEAR, MID_CHOOSEN_LOAD, MID_CHOOSEN_SAVE, MID_TABLE, string2time(), and SUMOTime_MAX.

00085         : FXMainWindow(parent->getApp(), "Breakpoints Editor", NULL, NULL, DECOR_ALL, 20,20,300, 300),
00086         myParent(parent) {
00087     FXHorizontalFrame *hbox = new FXHorizontalFrame(this, LAYOUT_FILL_X|LAYOUT_FILL_Y,0,0,0,0, 0,0,0,0);
00088 
00089     // build the table
00090     myTable = new MFXAddEditTypedTable(hbox, this, MID_TABLE, LAYOUT_FILL_X|LAYOUT_FILL_Y);
00091     myTable->setVisibleRows(20);
00092     myTable->setVisibleColumns(1);
00093     myTable->setTableSize(20,1);
00094     myTable->setBackColor(FXRGB(255,255,255));
00095     myTable->setCellType(0, CT_INT);
00096     SUMOTime begin = string2time(OptionsCont::getOptions().getString("begin"));
00097     SUMOTime end = string2time(OptionsCont::getOptions().getString("end"));
00098     if(end<0) {
00099         end = SUMOTime_MAX;
00100     }
00101     myTable->setNumberCellParams(0, begin, end, 1, 10, 100, "%.0f");
00102     myTable->getRowHeader()->setWidth(0);
00103     rebuildList();
00104     // build the layout
00105     FXVerticalFrame *layout = new FXVerticalFrame(hbox, LAYOUT_TOP,0,0,0,0, 4,4,4,4);
00106     // "Load"
00107     new FXButton(layout, "Load\t\t", 0, this, MID_CHOOSEN_LOAD,
00108                  ICON_BEFORE_TEXT|LAYOUT_FILL_X|FRAME_THICK|FRAME_RAISED,
00109                  0, 0, 0, 0, 4, 4, 3, 3);
00110     // "Save"
00111     new FXButton(layout, "Save\t\t", 0, this, MID_CHOOSEN_SAVE,
00112                  ICON_BEFORE_TEXT|LAYOUT_FILL_X|FRAME_THICK|FRAME_RAISED,
00113                  0, 0, 0, 0, 4, 4, 3, 3);
00114     new FXHorizontalSeparator(layout,SEPARATOR_GROOVE|LAYOUT_FILL_X);
00115     // "Clear List"
00116     new FXButton(layout, "Clear\t\t", 0, this, MID_CHOOSEN_CLEAR,
00117                  ICON_BEFORE_TEXT|LAYOUT_FILL_X|FRAME_THICK|FRAME_RAISED,
00118                  0, 0, 0, 0, 4, 4, 3, 3);
00119     new FXHorizontalSeparator(layout,SEPARATOR_GROOVE|LAYOUT_FILL_X);
00120     // "Close"
00121     new FXButton(layout, "Close\t\t", 0, this, MID_CANCEL,
00122                  ICON_BEFORE_TEXT|LAYOUT_FILL_X|FRAME_THICK|FRAME_RAISED,
00123                  0, 0, 0, 0, 4, 4, 3, 3);
00124     //
00125     setIcon(GUIIconSubSys::getIcon(ICON_APP_BREAKPOINTS));
00126     myParent->addChild(this);
00127 }


Generated on Wed May 5 00:06:37 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6