Exemplo n.º 1
0
BitmapComboxWrapper::BitmapComboxWrapper()
    : wxcWidget(ID_WXBITMAPCOMBOBOX)
{
    SetPropertyString(_("Common Settings"), "wxBitmapComboBox");
    AddProperty(new BitmapTextArrayProperty(PROP_CB_CHOICES, "", wxT("Combobox drop down choices")));
    AddProperty(new StringProperty(
        PROP_SELECTION, wxT("-1"),
        wxT("The zero-based position of any initially selected string, or -1 if none are to be selected")));
    AddProperty(new StringProperty(PROP_VALUE, "", wxT("The combobox initial value")));

    RegisterEventCommand(wxT("wxEVT_COMMAND_COMBOBOX_SELECTED"),
                         wxT("Process a wxEVT_COMMAND_COMBOBOX_SELECTED event, when an item on the list is selected. "
                             "Note that calling GetValue returns the new value of selection."));
    RegisterEventCommand(wxT("wxEVT_COMMAND_TEXT_UPDATED"),
                         wxT("Process a wxEVT_COMMAND_TEXT_UPDATED event, when the combobox text changes."));
    RegisterEventCommand(wxT("wxEVT_COMMAND_TEXT_ENTER"),
                         wxT("Process a wxEVT_COMMAND_TEXT_ENTER event, when <RETURN> is pressed in the combobox."));

    PREPEND_STYLE(wxCB_READONLY, false);
    PREPEND_STYLE(wxCB_SORT, false);
    PREPEND_STYLE(wxTE_PROCESS_ENTER, false);

    m_namePattern = "m_bmpComboBox";
    SetName(GenerateName());
}
Exemplo n.º 2
0
TaskBarIconWrapper::TaskBarIconWrapper()
    : wxcWidget(ID_WXTASKBARICON)
{
    m_styles.Clear();
    AddText(PROP_TOOLTIP, _("Set the wxTaskBarIcon tooltip"));
    wxArrayString types;
    types.Add("wxTBI_DEFAULT_TYPE");
    types.Add("wxTBI_DOCK");
    types.Add("wxTBI_CUSTOM_STATUSITEM");

    SetPropertyString(_("Common Settings"), "wxTaskBarIcon");
    AddProperty(
        new ChoiceProperty(PROP_TASKBAR_ICONTYPE, types, 0, _("The iconType is only applicable on wxOSX_Cocoa")));
    AddProperty(new BitmapPickerProperty(PROP_BITMAP_PATH, "", _("Set the wxTaskBarIcon icon")));

    RegisterEvent("wxEVT_TASKBAR_MOVE", "wxTaskBarIconEvent", _("Process a wxEVT_TASKBAR_MOVE event"));
    RegisterEvent("wxEVT_TASKBAR_LEFT_DOWN", "wxTaskBarIconEvent", _("Process a wxEVT_TASKBAR_LEFT_DOWN event"));
    RegisterEvent("wxEVT_TASKBAR_LEFT_UP", "wxTaskBarIconEvent", _("Process a wxEVT_TASKBAR_LEFT_UP event"));
    RegisterEvent("wxEVT_TASKBAR_RIGHT_DOWN", "wxTaskBarIconEvent", _("Process a wxEVT_TASKBAR_RIGHT_DOWN event"));
    RegisterEvent("wxEVT_TASKBAR_RIGHT_UP", "wxTaskBarIconEvent", _("Process a wxEVT_TASKBAR_RIGHT_UP event"));
    RegisterEvent("wxEVT_TASKBAR_LEFT_DCLICK", "wxTaskBarIconEvent", _("Process a wxEVT_TASKBAR_LEFT_DCLICK event"));
    RegisterEvent("wxEVT_TASKBAR_RIGHT_DCLICK", "wxTaskBarIconEvent", _("Process a wxEVT_TASKBAR_RIGHT_DCLICK event"));

    m_namePattern = "m_taskBarIcon";
    SetName(GenerateName());
}
Exemplo n.º 3
0
RibbonButtonBarWrapper::RibbonButtonBarWrapper()
    : wxcWidget(ID_WXRIBBONBUTTONBAR)
{
    SetPropertyString(_("Common Settings"), "wxRibbonButtonBar");
    m_namePattern = "m_ribbonButtonBar";
    SetName(GenerateName());
}
Exemplo n.º 4
0
HyperLinkCtrlWrapper::HyperLinkCtrlWrapper()
    : wxcWidget(ID_WXHYPERLINK)
{
    PREPEND_STYLE_FALSE(wxHL_ALIGN_LEFT);
    PREPEND_STYLE_FALSE(wxHL_ALIGN_RIGHT);
    PREPEND_STYLE_FALSE(wxHL_ALIGN_CENTRE);
    PREPEND_STYLE_FALSE(wxHL_CONTEXTMENU);
    PREPEND_STYLE_TRUE(wxHL_DEFAULT_STYLE);

    RegisterEvent(wxT("wxEVT_COMMAND_HYPERLINK"), wxT("wxHyperlinkEvent"),
                  _("The hyperlink was (left) clicked. If this event is not handled in user's code (or it's skipped; "
                    "see wxEvent::Skip)\nthen a call to wxLaunchDefaultBrowser is done with the hyperlink's URL."));

    SetPropertyString(_("Common Settings"), "wxHyperLinkCtrl");
    AddProperty(new StringProperty(PROP_LABEL, wxT("codelite IDE"), _("The label of the hyperlink")));
    AddProperty(
        new StringProperty(PROP_URL, wxT("http://www.codelite.org"), _("The URL associated with the given label")));
    AddProperty(
        new ColorProperty(PROP_NORMAL_COLOR, wxT("#0000FF"),
                          _("Sets the colour used to print the label when the link has never been clicked "
                            "before\n(i.e. the link has not been visited) and the mouse is not over the control.")));
    AddProperty(new ColorProperty(PROP_VISITED_COLOR, wxT("#FF0000"),
                                  _("Sets the colour used to print the label when the mouse is not over the control "
                                    "and the link has already been clicked before\n(i.e. the link has been visited)")));
    AddProperty(new ColorProperty(
        PROP_HOVER_COLOR, wxT("#0000FF"),
        _("Sets the colour used to print the label of the hyperlink when the mouse is over the control")));

    m_namePattern = wxT("m_hyperLink");
    SetName(GenerateName());
}
Exemplo n.º 5
0
ListCtrlWrapper::ListCtrlWrapper()
    : wxcWidget(ID_WXLISTCTRL)
{
    SetPropertyString(_("Common Settings"), "wxListCtrl");

    PREPEND_STYLE(wxLC_LIST, false);
    PREPEND_STYLE(wxLC_REPORT, true);
    PREPEND_STYLE(wxLC_VIRTUAL, false);
    PREPEND_STYLE(wxLC_ICON, false);
    PREPEND_STYLE(wxLC_SMALL_ICON, false);
    PREPEND_STYLE(wxLC_ALIGN_TOP, false);
    PREPEND_STYLE(wxLC_ALIGN_LEFT, false);
    PREPEND_STYLE(wxLC_EDIT_LABELS, false);
    PREPEND_STYLE(wxLC_NO_HEADER, false);
    PREPEND_STYLE(wxLC_SINGLE_SEL, false);
    PREPEND_STYLE(wxLC_SORT_ASCENDING, false);
    PREPEND_STYLE(wxLC_SORT_DESCENDING, false);
    PREPEND_STYLE(wxLC_HRULES, false);
    PREPEND_STYLE(wxLC_VRULES, false);

    RegisterEvent(wxT("wxEVT_COMMAND_LIST_ITEM_SELECTED"), wxT("wxListEvent"), wxT("The item has been selected"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_ITEM_DESELECTED"), wxT("wxListEvent"), wxT("The item has been deselected"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK"), wxT("wxListEvent"),
                  wxT("The right mouse button has been clicked on an item"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK"), wxT("wxListEvent"),
                  wxT("The middle mouse button has been clicked on an item"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_ITEM_ACTIVATED"), wxT("wxListEvent"),
                  wxT("The item has been activated (ENTER or double click)"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_ITEM_FOCUSED"), wxT("wxListEvent"),
                  wxT("The currently focused item has changed"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_KEY_DOWN"), wxT("wxListEvent"), wxT("A key has been pressed"));

    RegisterEvent(wxT("wxEVT_COMMAND_LIST_COL_CLICK"), wxT("wxListEvent"),
                  wxT("A column (m_col) has been left-clicked"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_COL_RIGHT_CLICK"), wxT("wxListEvent"),
                  wxT("A column (m_col) has been right-clicked"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_COL_BEGIN_DRAG"), wxT("wxListEvent"),
                  wxT("The user started resizing a column - can be vetoed"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_COL_DRAGGING"), wxT("wxListEvent"),
                  wxT("The divider between columns is being dragged"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_COL_END_DRAG"), wxT("wxListEvent"),
                  wxT("A column has been resized by the user"));

    RegisterEvent(wxT("wxEVT_COMMAND_LIST_BEGIN_DRAG"), wxT("wxListEvent"),
                  wxT("Begin dragging with the left mouse button"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_BEGIN_RDRAG"), wxT("wxListEvent"),
                  wxT("Begin dragging with the right mouse button."));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT"), wxT("wxListEvent"),
                  wxT("Begin editing a label. This can be prevented by calling Veto()"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_END_LABEL_EDIT"), wxT("wxListEvent"),
                  wxT("Finish editing a label. This can be prevented by calling Veto()"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_DELETE_ITEM"), wxT("wxListEvent"), wxT("Delete an item"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS"), wxT("wxListEvent"), wxT("Delete all items"));
    RegisterEvent(wxT("wxEVT_COMMAND_LIST_INSERT_ITEM"), wxT("wxListEvent"), wxT("An item has been inserted"));

    m_namePattern = wxT("m_listCtrl");
    SetName(GenerateName());
}
Exemplo n.º 6
0
GenericDirCtrlWrapper::GenericDirCtrlWrapper()
    : wxcWidget(ID_WXGENERICDIRCTRL)
{
    SetPropertyString(_("Common Settings"), "wxGenericDirCtrl");
    AddProperty(new StringProperty(PROP_DEFAULT_FOLDER, wxT(""), _("Sets the default path")));
    AddProperty(new StringProperty(PROP_FILTER, wxT(""),
                                   _("Sets the filter string. The syntax is similar to the one used in wxFileDialog")));
    AddProperty(new StringProperty(PROP_DEFAULT_FILTER, wxT(""), _("Sets the current filter index (zero-based).")));
    AddProperty(new BoolProperty(PROP_SHOW_HIDDEN, false, _("Show hidden files")));

    PREPEND_STYLE_FALSE(wxDIRCTRL_DIR_ONLY);
    PREPEND_STYLE_TRUE(wxDIRCTRL_3D_INTERNAL);
    PREPEND_STYLE_FALSE(wxDIRCTRL_SELECT_FIRST);
    PREPEND_STYLE_FALSE(wxDIRCTRL_SHOW_FILTERS);
    PREPEND_STYLE_FALSE(wxDIRCTRL_EDIT_LABELS);

    RegisterEvent(wxT("wxEVT_COMMAND_TREE_BEGIN_DRAG"), wxT("wxTreeEvent"),
                  wxT("The user has started dragging an item with the left mouse button.\nThe event handler must call "
                      "wxTreeEvent::Allow() for the drag operation to continue."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_BEGIN_RDRAG"), wxT("wxTreeEvent"),
                  wxT("The user has started dragging an item with the right mouse button.\nThe event handler must call "
                      "wxTreeEvent::Allow() for the drag operation to continue."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_END_DRAG"), wxT("wxTreeEvent"),
                  wxT("The user has released the mouse after dragging an item."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT"), wxT("wxTreeEvent"),
                  wxT("Begin editing a label. This can be prevented by calling Veto()."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_END_LABEL_EDIT"), wxT("wxTreeEvent"),
                  wxT("The user has finished editing a label. This can be prevented by calling Veto()."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_DELETE_ITEM"), wxT("wxTreeEvent"), wxT("A tree item has been deleted."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_EXPANDED"), wxT("wxTreeEvent"), wxT("The item has been expanded."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_EXPANDING"), wxT("wxTreeEvent"),
                  wxT("The item is being expanded. This can be prevented by calling Veto()."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_COLLAPSED"), wxT("wxTreeEvent"), wxT("The item has been collapsed."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_COLLAPSING"), wxT("wxTreeEvent"),
                  wxT("The item is being collapsed. This can be prevented by calling Veto()."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_SEL_CHANGED"), wxT("wxTreeEvent"), wxT("Selection has changed."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_SEL_CHANGING"), wxT("wxTreeEvent"),
                  wxT("Selection is changing. This can be prevented by calling Veto()."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_KEY_DOWN"), wxT("wxTreeEvent"), wxT("A key has been pressed."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_ACTIVATED"), wxT("wxTreeEvent"),
                  wxT("An item has been activated (e.g. double clicked)."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK"), wxT("wxTreeEvent"),
                  wxT("The user has clicked the item with the right mouse button."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK"), wxT("wxTreeEvent"),
                  wxT("The user has clicked the item with the middle mouse button."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK"), wxT("wxTreeEvent"),
                  wxT("The state image has been clicked. Windows only."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP"), wxT("wxTreeEvent"),
                  wxT("The opportunity to set the item tooltip is being given to the application\n (call "
                      "wxTreeEvent::SetToolTip). Windows only."));
    RegisterEvent(wxT("wxEVT_COMMAND_TREE_ITEM_MENU"), wxT("wxTreeEvent"),
                  wxT("The context menu for the selected item has been requested,\neither by a right click or by using "
                      "the menu key."));

    m_namePattern = wxT("m_genericDirCtrl");
    SetName(GenerateName());
}
DataViewListCtrlWrapper::DataViewListCtrlWrapper()
    : wxcWidget(ID_WXDATAVIEWLISTCTRL)
{
    PREPEND_STYLE(wxDV_SINGLE, true);
    PREPEND_STYLE(wxDV_MULTIPLE, false);
    PREPEND_STYLE(wxDV_ROW_LINES, true);
    PREPEND_STYLE(wxDV_HORIZ_RULES, false);
    PREPEND_STYLE(wxDV_VERT_RULES, false);
    PREPEND_STYLE(wxDV_VARIABLE_LINE_HEIGHT, false);
    PREPEND_STYLE(wxDV_NO_HEADER, false);

    RegisterEvent("wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED event.\nThis event is triggered by double "
                    "clicking an item or pressing some special key (usually \"Enter\") when it is focused"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_START_EDITING", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_START_EDITING event.\nThis event can be vetoed in order to "
                    "prevent editing on an item by item basis"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_STARTED", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_STARTED event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSING", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSING event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSED", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSED event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDING", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDING event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDED", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDED event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU event generated when the user right clicks "
                    "inside the control.\nNotice that this menu is generated even if the click didn't occur on any "
                    "valid item, in this case wxDataViewEvent::GetItem() simply returns an invalid item."));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE event"));
    RegisterEvent("wxEVT_COMMAND_DATAVIEW_ITEM_DROP", "wxDataViewEvent",
                  _("Process a wxEVT_COMMAND_DATAVIEW_ITEM_DROP event"));

    SetPropertyString(_("Common Settings"), "wxDataViewListCtrl");
    m_namePattern = "m_dvListCtrl";
    DelProperty(_("Control Specific Settings"));
    SetName(GenerateName());
}
Exemplo n.º 8
0
PanelWrapper::PanelWrapper()
    : wxcWidget(ID_WXPANEL)
{
    SetPropertyString(_("Common Settings"), "wxPanel");
    // Enable the 'wxTAB_TRAVERSAL' style
    EnableStyle(wxT("wxTAB_TRAVERSAL"), true);
    m_namePattern = wxT("m_panel");
    SetName(GenerateName());
}
Exemplo n.º 9
0
ActivityrIndicatorWrapper::ActivityrIndicatorWrapper()
    : wxcWidget(ID_WXACTIVITYINDICATOR)
{
    RegisterEvent(wxT("wxEVT_COMMAND_BUTTON_CLICKED"), wxT("wxCommandEvent"),
                  _("Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked."),
                  wxT("wxCommandEventHandler"));
    m_namePattern = wxT("m_activityCtrl");
    SetPropertyString(_("Common Settings"), "wxActivityIndicator");
    SetName(GenerateName());
}
Exemplo n.º 10
0
Enemy::Enemy() :
    m_name(""),
    m_alive(true),
    m_health(30),
    m_dex(5),
    m_str(5),
    m_level(1)
{
    GenerateName();

    GenerateLevel();
}
Exemplo n.º 11
0
ChoiceBookWrapper::ChoiceBookWrapper()
    : NotebookBaseWrapper(ID_WXCHOICEBOOK)
{
    RegisterEvent(wxT("wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED"), wxT("wxChoicebookEvent"),
                  _("The page selection was changed"));
    RegisterEvent(wxT("wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING"), wxT("wxChoicebookEvent"),
                  _("The page selection is about to be changed. This event can be vetoed"));

    SetPropertyString(_("Common Settings"), "wxChoicebook");
    m_namePattern = wxT("m_choicebook");
    SetName(GenerateName());
}
Exemplo n.º 12
0
ChoiceWrapper::ChoiceWrapper()
    : wxcWidget(ID_WXCHOICE)
{
    SetPropertyString(_("Common Settings"), "wxChoice");
    AddProperty(
        new MultiStringsProperty(PROP_OPTIONS, wxT("The Choice drop down options. A semi-colon list of strings")));
    AddProperty(new StringProperty(PROP_SELECTION, wxT(""), wxT("Selected string index")));

    RegisterEventCommand(wxT("wxEVT_COMMAND_CHOICE_SELECTED"),
                         wxT("Process a wxEVT_COMMAND_CHOICE_SELECTED event, when an item on the list is selected."));

    m_namePattern = wxT("m_choice");
    SetName(GenerateName());
}
Exemplo n.º 13
0
	//==========================================================================
	// присваивает неименнованным объектам имена
	//--------------------------------------------------------------------------
	// objects - [in, out] список обрабатываемых объектов
	//==========================================================================
	void AssignNames(ObjTable &objects)
	{
		for(unsigned int i = 0; i < objects.objList.size(); ++i)
		{
			ProgObj *obj = objects.objList[i];
			if(obj->Name == "")
			{
				switch(obj->WhatIsIt())
				{
					case ItIsLabel:
						obj->Name = GenerateName("L");
						break;
					case ItIsTypeRecord:
					case ItIsTypeScalar:
					case ItIsTypePtr:
					case ItIsTypeRef:
					case ItIsTypeProc:
					case ItIsTypeArray:
						obj->Name = GenerateName("T");
						break;
					case ItIsVariable:
						obj->Name = GenerateName("V");
						break;
					case ItIsConstBool:
					case ItIsConstChar:
					case ItIsConstInt:
					case ItIsConstNil:
					case ItIsConstReal:
					case ItIsConstStr:
					case ItIsConstUnsigned:
						obj->Name = GenerateName("C");
						break;
				}
			}
		}
	}
Exemplo n.º 14
0
ToolBookWrapper::ToolBookWrapper()
    : NotebookBaseWrapper(ID_WXTOOLBOOK)
{
    SetPropertyString(_("Common Settings"), "wxToolbook");
#if wxVERSION_NUMBER > 2900
    PREPEND_STYLE_TRUE(wxTBK_BUTTONBAR);
    PREPEND_STYLE_FALSE(wxTBK_HORZ_LAYOUT);
#endif

    RegisterEvent(wxT("wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED"), wxT("wxToolbookEvent"),
                  _("The page selection was changed"));
    RegisterEvent(wxT("wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING"), wxT("wxToolbookEvent"),
                  _("The page selection is about to be changed. This event can be vetoed"));
    m_namePattern = wxT("m_toolbook");
    SetName(GenerateName());
}
Exemplo n.º 15
0
RadioButtonWrapper::RadioButtonWrapper()
    : wxcWidget(ID_WXRADIOBUTTON)
{
    PREPEND_STYLE(wxRB_GROUP, false);
    PREPEND_STYLE(wxRB_SINGLE, false);

    SetPropertyString(_("Common Settings"), "wxRadioButton");
    AddProperty(new StringProperty(PROP_LABEL, wxT("My RadioButton"), wxT("Label")));
    AddProperty(new BoolProperty(PROP_VALUE, true, wxT("Initial value")));

    RegisterEventCommand(wxT("wxEVT_COMMAND_RADIOBUTTON_SELECTED"),
                         wxT("Process a wxEVT_COMMAND_RADIOBUTTON_SELECTED event, when the radiobutton is clicked."));

    m_namePattern = wxT("m_radioButton");
    SetName(GenerateName());
}
Exemplo n.º 16
0
StatusBarWrapper::StatusBarWrapper()
    : wxcWidget(ID_WXSTATUSBAR)
{
    PREPEND_STYLE_FALSE(wxSTB_SIZEGRIP);
    PREPEND_STYLE_FALSE(wxSTB_SHOW_TIPS);
    PREPEND_STYLE_FALSE(wxSTB_ELLIPSIZE_START);
    PREPEND_STYLE_FALSE(wxSTB_ELLIPSIZE_MIDDLE);
    PREPEND_STYLE_FALSE(wxSTB_ELLIPSIZE_END);
    PREPEND_STYLE_TRUE(wxSTB_DEFAULT_STYLE);

    SetPropertyString(_("Common Settings"), "wxStatusBar");
    AddProperty(new StringProperty(PROP_FIELD_COUNT, wxT("1"), _("Sets the number of fields")));

    m_namePattern = wxT("m_statusBar");
    SetName(GenerateName());
}
Exemplo n.º 17
0
AnimationCtrlWrapper::AnimationCtrlWrapper()
    : wxcWidget(ID_WXANIMATIONCTRL)
{
    PREPEND_STYLE(wxAC_DEFAULT_STYLE, true);
    PREPEND_STYLE(wxAC_NO_AUTORESIZE, false);

    SetPropertyString(_("Common Settings"), "wxAnimationCtrl");

    AddBool(PROP_ANIM_AUTO_PLAY, _("Load and play animation on creation"), false);
    AddProperty(new BitmapPickerProperty(PROP_BITMAP_PATH, wxT(""), _("Select the animation file")));
    AddProperty(
        new BitmapPickerProperty(PROP_DISABLED_BITMAP_PATH, wxT(""),
                                 _("Sets the bitmap to show on the control when it's not playing an animation")));

    m_namePattern = "m_animationCtrl";
    SetName(GenerateName());
}
Exemplo n.º 18
0
NAMESPACE_BEGIN

Camera::Camera(SceneManager* sceneMgr)
    : Entity(sceneMgr),
      mCamera(nullptr),
      mSceneNode(nullptr)
{
    mCamera = sceneMgr->mSceneMgr->createCamera(GenerateName());

    // Create the camera and attach it to the viewport
    mSceneNode = sceneMgr->mSceneMgr->getRootSceneNode()->createChildSceneNode();
    mSceneNode->attachObject(mCamera);

    // Set up the camera
    mCamera->setNearClipDistance(1.0f);
    mCamera->setFarClipDistance(1000000000.0f);
}
Exemplo n.º 19
0
ColourPickerWrapper::ColourPickerWrapper()
    : wxcWidget(ID_WXCOLORPICKER)
{

    PREPEND_STYLE(wxCLRP_DEFAULT_STYLE, true);
    PREPEND_STYLE(wxCLRP_USE_TEXTCTRL, false);
    PREPEND_STYLE(wxCLRP_SHOW_LABEL, false);

    SetPropertyString(_("Common Settings"), "wxColourPickerCtrl");
    AddProperty(new ColorProperty(PROP_VALUE, wxT("<Default>"), _("Colour")));
    RegisterEvent(wxT("wxEVT_COMMAND_COLOURPICKER_CHANGED"), wxT("wxColourPickerEvent"),
                  _("The user changed the colour selected in the control either using the button or using text "
                    "control\n(see wxCLRP_USE_TEXTCTRL; note that in this case the event is fired only if the user's "
                    "input is valid, i.e. recognizable)."));

    m_namePattern = wxT("m_colourPicker");
    SetName(GenerateName());
}
Exemplo n.º 20
0
BoxSizerWrapper::BoxSizerWrapper()
{
    m_type = ID_WXBOXSIZER;
    m_styles.Clear(); // Sizer has no styles

    wxArrayString arr;
    arr.Add(wxT("wxVERTICAL"));
    arr.Add(wxT("wxHORIZONTAL"));

    SetPropertyString(_("Common Settings"), "wxBoxSizer");
    AddProperty(new ChoiceProperty(PROP_ORIENTATION, arr, 0, wxT("Sizer orientation")));

    EnableSizerFlag("wxEXPAND", true);
    m_sizerItem.SetProportion(1);

    m_namePattern = wxT("boxSizer");
    SetName(GenerateName());
}
Exemplo n.º 21
0
RibbonPanelWrapper::RibbonPanelWrapper()
    : wxcWidget(ID_WXRIBBONPANEL)
{
    PREPEND_STYLE_TRUE(wxRIBBON_PANEL_DEFAULT_STYLE);
    PREPEND_STYLE_FALSE(wxRIBBON_PANEL_NO_AUTO_MINIMISE);
    PREPEND_STYLE_FALSE(wxRIBBON_PANEL_EXT_BUTTON);
    PREPEND_STYLE_FALSE(wxRIBBON_PANEL_MINIMISE_BUTTON);
    PREPEND_STYLE_FALSE(wxRIBBON_PANEL_STRETCH);
    PREPEND_STYLE_FALSE(wxRIBBON_PANEL_FLEXIBLE);

    SetPropertyString(_("Common Settings"), "wxRibbonPanel");
    AddProperty(new StringProperty(PROP_LABEL, _("My Label"), _("The Label")));
    AddProperty(new BitmapPickerProperty(
        PROP_BITMAP_PATH, "", _("Icon to be used in place of the panel's children when the panel is minimised")));

    RegisterEvent("wxEVT_COMMAND_RIBBONPANEL_EXTBUTTON_ACTIVATED", "wxRibbonPanelEvent",
                  _("Triggered when the user activate the panel extension button"));
    m_namePattern = "m_ribbonPanel";

    SetName(GenerateName());
}
Exemplo n.º 22
0
AuiManagerWrapper::AuiManagerWrapper()
    : wxcWidget(ID_WXAUIMANAGER)
{
    m_sizerFlags.Clear();
    m_properties.DeleteValues();

    // wxAUI_DOCKART_PANE_BORDER_SIZE
    // wxAUI_DOCKART_BACKGROUND_COLOUR
    // wxAUI_DOCKART_SASH_COLOUR
    // wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR
    // wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR
    // wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR
    // wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR
    // wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR
    // wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR
    // wxAUI_DOCKART_BORDER_COLOUR
    // wxAUI_DOCKART_GRIPPER_COLOUR
    // wxAUI_DOCKART_GRADIENT_TYPE

    SetPropertyString(_("Common Settings"), "wxAuiManager");
    AddProperty(new CategoryProperty("General"));
    AddProperty(new StringProperty(PROP_NAME, "", _("wxAuiManager member name")));
    AddProperty(new ColorProperty(PROP_BG, "<Default>", _("Background Colour")));
    AddProperty(new IntProperty(PROP_AUI_PANE_BORDER_SIZE, -1, _("Pane border size")));

    AddProperty(new CategoryProperty("Sash"));
    AddProperty(new ColorProperty(PROP_AUI_SASH_COLOUR, "<Default>", _("Sash colour")));
    AddProperty(new IntProperty(PROP_AUI_SASH_SIZE, -1, _("Set the wxAUI sash size")));

    AddProperty(new CategoryProperty("Caption"));
    wxArrayString gradientTypes;
    gradientTypes.Add("wxAUI_GRADIENT_NONE");
    gradientTypes.Add("wxAUI_GRADIENT_VERTICAL");
    gradientTypes.Add("wxAUI_GRADIENT_HORIZONTAL");
    AddProperty(new ChoiceProperty(PROP_AUI_GRADIENT_TYPE, gradientTypes, 0, _("Gradient type")));

    AddProperty(new ColorProperty(PROP_AUI_CAPTION_COLOUR, "<Default>", _("Active caption colour")));
    AddProperty(new ColorProperty(PROP_AUI_CAPTION_COLOUR_GRADIENT, "<Default>", _("Active caption gradient colour")));
    AddProperty(new ColorProperty(PROP_AUI_INACTIVE_CAPTION_COLOUR, "<Default>", _("Inactive caption colour")));
    AddProperty(new ColorProperty(PROP_AUI_INACTIVE_CAPTION_COLOUR_GRADIENT, "<Default>",
                                  _("Inactive caption gradient colour")));
    AddProperty(new ColorProperty(PROP_AUI_ACTIVE_CAPTION_TEXT_COLOUR, "<Default>", _("Active caption text colour")));
    AddProperty(
        new ColorProperty(PROP_AUI_INACTIVE_CAPTION_TEXT_COLOUR, "<Default>", _("Inactive caption text colour")));

    m_styles.Clear();

    PREPEND_STYLE(wxAUI_MGR_ALLOW_FLOATING, true);
    PREPEND_STYLE(wxAUI_MGR_ALLOW_ACTIVE_PANE, true);
    PREPEND_STYLE(wxAUI_MGR_TRANSPARENT_DRAG, true);
    PREPEND_STYLE(wxAUI_MGR_TRANSPARENT_DRAG, true);
    PREPEND_STYLE(wxAUI_MGR_TRANSPARENT_HINT, true);
    PREPEND_STYLE(wxAUI_MGR_VENETIAN_BLINDS_HINT, false);
    PREPEND_STYLE(wxAUI_MGR_RECTANGLE_HINT, false);
    PREPEND_STYLE(wxAUI_MGR_HINT_FADE, false);
    PREPEND_STYLE(wxAUI_MGR_NO_VENETIAN_BLINDS_FADE, false);
    PREPEND_STYLE(wxAUI_MGR_LIVE_RESIZE, true);

    RegisterEvent("wxEVT_AUI_PANE_BUTTON", "wxAuiManagerEvent",
                  _("Triggered when any button is pressed for any docked panes"));
    RegisterEvent("wxEVT_AUI_PANE_CLOSE", "wxAuiManagerEvent",
                  _("Triggered when a docked or floating pane is closed."));
    RegisterEvent("wxEVT_AUI_PANE_MAXIMIZE", "wxAuiManagerEvent", _("Triggered when a pane is maximized."));
    RegisterEvent("wxEVT_AUI_PANE_RESTORE", "wxAuiManagerEvent", _("Triggered when a pane is restored."));
    RegisterEvent("wxEVT_AUI_PANE_ACTIVATED", "wxAuiManagerEvent",
                  _("Triggered when a pane is made 'active'. This event is new since wxWidgets 2.9.4."));
    RegisterEvent("wxEVT_AUI_RENDER", "wxAuiManagerEvent",
                  _("This event can be caught to override the default renderer in order "
                    "to custom draw your wxAuiManager window (not recommended)."));

    m_namePattern = "m_auimgr";
    SetName(GenerateName());
}
Exemplo n.º 23
0
int main( int argc, char * argv[] ) {
	
	IDCounter = 0;
	unsigned char consoleWidth = 60;
	for (Uint8 k = 0; k < 10; k++) {
		const char * newName = GenerateName();
		if ( strlen (newName) > consoleWidth ) {
			consoleWidth = 80;
			printf("\n");
		}
		consoleWidth -= strlen (newName);
		printf( "%s ", newName );
	}
	printf( "\n" );

	printf( "Initializing SDL system... " );
			if(SDL_Init(SDL_INIT_EVERYTHING) == -1)	{printf("\nSDL_Init: %s\n", SDL_GetError());exit(1);	}
			if(SDLNet_Init() == -1 )				{printf("\nSDLNet_Init: %s\n", SDLNet_GetError());exit(2);}	
	printf( "ok.\n" );
	
	printf( "Starting server...\n" );
			//
			//
			if( SDLNet_ResolveHost(&ip, NULL, 3879) < 0 ) {
				printf( "\nSDLNet_ResolveHost: %s\n", SDLNet_GetError());
				exit(1);
			} else {
				//ip.host = convFromIP(127,0,0,1);
				ip.port = 3879;
				printf( "Resolved address: %s\n", getStringAddress(ip));
			}
			socket = SDLNet_TCP_Open( &ip );
			if(!socket ) {
				printf( "\nSDLNet_TCP_Open: %s\n", SDLNet_GetError());
				exit(2);
			}

	printf( "ok.\n");
	
	SDLNet_TCP_AddSocket( socketSet, socket );

	printf("Waiting for clients...\n");

	acceptClientThread = SDL_CreateThread(clientNetLoop, NULL);
	
	updateLoopThread = SDL_CreateThread(updateLoop, NULL);

	char instr = 0;
	for(;;) {
		scanf("%c", &instr);
		if (instr == 'q')
			break;
		if (instr == 'a') {
			send(&lastSocket, 'm', "yopt", 4);
		}
		if (instr == 'b') {
			char * broadcastMsg = (char*)malloc(255);
			broadcastMsg[0] = 1;
			broadcastMsg[1] = 0;
			scanf("%[' 'A-z'\'''!'-'+']s", broadcastMsg);
			broadcast('m', broadcastMsg, strlen(broadcastMsg));
		}
		if (instr == 'w') {
			printf("startPos: %i; recvSize: %i\n", clients[0]->startPos, clients[0]->recvSize);
			for (unsigned char i = 0; i < clients[i]->recvSize; i++) {
				if (	clients[0]->msg[i] != '\n' 
					&&	clients[0]->msg[i] != 10)
					printf("%3i\'%c\'; ", (unsigned char)clients[0]->msg[i], (unsigned char)clients[0]->msg[i]);
				else
					printf("%3i\' \'; ", (unsigned char)clients[0]->msg[i]);
			}
			printf("\n");
		}
		instr = 0;
	}
	terminated = true;
	printf("Terminated.\n");
	int status = 0;
	printf("Wait for accepting thread end. ");
	SDL_WaitThread(acceptClientThread,&status);
	printf("Ended.\nClosing socket. ");
	SDLNet_TCP_Close(socket);
	printf("Closed.\n");
	SDL_Quit();
	return 0x127;
}
Exemplo n.º 24
0
creature::creature(int UniqueID) : ID(UniqueID) {
    //enum creature_type      Type;
    Type  = CREATURE_BUM;
    //signed char             Align;
    Align = ALIGN_LIBERAL;
    //enum species            Species;
    Species = SPECIES_HUMAN;

    //enum gender             Gender;
    if(LCSrandom(2))
        Gender = GENDER_FEMALE;
    else
        Gender = GENDER_MALE;

    //enum gender             BirthGender;
    BirthGender = Gender;

    //string                  Name;
    Name = "Transient";
    //const string            ProperName;
    GenerateName(ProperName, Gender);


    //const int               ID;
    //int                     SquadID;
    SquadID = -1;
    //int                     HireID;
    HireID = -1;
    //class date*             JoinDate;
    JoinDate = NULL;
    //class criminal_record*  CriminalRecord;
    CriminalRecord = NULL;



    //class date*             BirthDate;
    BirthDate = NULL;
    //class date*             DeathDate;
    DeathDate = NULL;

    //class weapon*           Weapon;
    Weapon = NULL;
    //class armor*            Armor;
    Armor  = NULL;
    //class clothing*         Clothing;
    Clothing = NULL;
    //class special*          Special;
    Special = NULL;
    //class creature*         Hostage;
    Hostage = NULL;

    //int                     Clip[CLIPNUM];
    std::memset(Clip, 0, sizeof(int)*CLIPNUM);

    //int                     Cash;
    Cash = 0;

    //enum unarmed_style      UnarmedAttack;
    UnarmedAttack = UNARMED_PUGILISM;

    //enum creature_status    Status;
    Status = STATUS_FREE;

    //int                     Blood;
    Blood = 100;
    //bool                    Incapacitated;
    Incapacitated = 0;

    //class bodypart          Wound[BODYPARTNUM];
    for(int i = 0; i < BODYPARTNUM; i++)
        Wound[i].SetType(i);

    //char                    SpecialWound[SPECIALWOUNDNUM];
    SpecialWound[SPECIALWOUND_TEETH] = TOOTHNUM;
    SpecialWound[SPECIALWOUND_RIGHTEYE] = 1;
    SpecialWound[SPECIALWOUND_LEFTEYE] = 1;
    SpecialWound[SPECIALWOUND_NOSE] = 1;
    SpecialWound[SPECIALWOUND_TONGUE] = 1;
    SpecialWound[SPECIALWOUND_RIGHTLUNG] = 1;
    SpecialWound[SPECIALWOUND_LEFTLUNG] = 1;
    SpecialWound[SPECIALWOUND_HEART] = 1;
    SpecialWound[SPECIALWOUND_LIVER] = 1;
    SpecialWound[SPECIALWOUND_STOMACH] = 1;
    SpecialWound[SPECIALWOUND_RIGHTKIDNEY] = 1;
    SpecialWound[SPECIALWOUND_LEFTKIDNEY] = 1;
    SpecialWound[SPECIALWOUND_SPLEEN] = 1;
    SpecialWound[SPECIALWOUND_RIBS] = RIBNUM;
    SpecialWound[SPECIALWOUND_NECK] = 1;
    SpecialWound[SPECIALWOUND_UPPERSPINE] = 1;
    SpecialWound[SPECIALWOUND_LOWERSPINE] = 1;

    //long                    Attributes[ATTNUM];
    for(int i = 0; i < ATTNUM; i++)
        Attributes[i] = 0;

    //int                     Skills[SKILLNUM];
    for(int i = 0; i < SKILLNUM; i++)
        Skills[i] = 0;

    //int                     SkillExp[SKILLNUM];
    for(int i = 0; i < SKILLNUM; i++)
        SkillExp[i] = 0;

    //int                     Juice;
    Juice = 0;

    //int                     Location;
    Location = -1;
    //int                     WorkLocation;
    WorkLocation = -1;
    //int                     Safehouse;
    Safehouse = -1;

    //bool                    CantBeBluffed;
    CantBeBluffed = false;

    //class activity*         Activity;
    Activity = NULL;

    //int                     CarID;
    CarID = -1;
    //bool                    IsDriver;
    IsDriver = false;
    //int                     Prefer_CarID;
    Prefer_CarID = -1;
    //bool                    Prefer_IsDriver;
    Prefer_IsDriver = false;

    //unsigned short          Flags;
    Flags = 0;
}
Exemplo n.º 25
0
GLCanvasWrapper::GLCanvasWrapper()
    : wxcWidget(ID_WXGLCANVAS)
{
    m_namePattern = "m_glCanvas";

    SetPropertyString(_("Common Settings"), "wxGLCanvas");
    DelProperty(PROP_CONTROL_SPECIFIC_SETTINGS);
    AddCategory("wxGLCanvas Attribute List");

    AddProperty(new StringProperty("WX_GL_RGBA", _("Use true color palette (on if no attrs specified)")));
    m_attrs.Add("WX_GL_RGBA");

    AddProperty(new StringProperty("WX_GL_BUFFER_SIZE", _("bits for buffer if not WX_GL_RGBA")));
    m_attrs.Add("WX_GL_BUFFER_SIZE");

    AddProperty(new StringProperty("WX_GL_LEVEL", _("0 for main buffer, >0 for overlay, <0 for underlay")));
    m_attrs.Add("WX_GL_LEVEL");

    AddProperty(new StringProperty("WX_GL_DOUBLEBUFFER", _("use double buffering (on if no attrs specified)")));
    m_attrs.Add("WX_GL_DOUBLEBUFFER");

    AddProperty(new StringProperty("WX_GL_STEREO", _("use stereoscopic display")));
    m_attrs.Add("WX_GL_STEREO");

    AddProperty(new StringProperty("WX_GL_AUX_BUFFERS", _("number of auxiliary buffers")));
    m_attrs.Add("WX_GL_AUX_BUFFERS");

    AddProperty(new StringProperty("WX_GL_MIN_RED", _("use red buffer with most bits (> MIN_RED bits)")));
    m_attrs.Add("WX_GL_MIN_RED");

    AddProperty(new StringProperty("WX_GL_MIN_GREEN", _("use green buffer with most bits (> MIN_GREEN bits)")));
    m_attrs.Add("WX_GL_MIN_GREEN");

    AddProperty(new StringProperty("WX_GL_MIN_BLUE", _("use blue buffer with most bits (> MIN_BLUE bits)")));
    m_attrs.Add("WX_GL_MIN_BLUE");

    AddProperty(new StringProperty("WX_GL_MIN_ALPHA", _("use alpha buffer with most bits (> MIN_ALPHA bits)")));
    m_attrs.Add("WX_GL_MIN_ALPHA");

    AddProperty(new StringProperty("WX_GL_DEPTH_SIZE", _("bits for Z-buffer (0,16,32)")));
    m_attrs.Add("WX_GL_DEPTH_SIZE");

    AddProperty(new StringProperty("WX_GL_STENCIL_SIZE", _("bits for stencil buffer")));
    m_attrs.Add("WX_GL_STENCIL_SIZE");

    AddProperty(
        new StringProperty("WX_GL_MIN_ACCUM_RED", _("use red accum buffer with most bits (> MIN_ACCUM_RED bits)")));
    m_attrs.Add("WX_GL_MIN_ACCUM_RED");

    AddProperty(
        new StringProperty("WX_GL_MIN_ACCUM_GREEN", _("use green buffer with most bits (> MIN_ACCUM_GREEN bits)")));
    m_attrs.Add("WX_GL_MIN_ACCUM_GREEN");

    AddProperty(
        new StringProperty("WX_GL_MIN_ACCUM_BLUE", _("use blue buffer with most bits (> MIN_ACCUM_BLUE bits)")));
    m_attrs.Add("WX_GL_MIN_ACCUM_BLUE");

    AddProperty(
        new StringProperty("WX_GL_MIN_ACCUM_ALPHA", _("use alpha buffer with most bits (> MIN_ACCUM_ALPHA bits)")));
    m_attrs.Add("WX_GL_MIN_ACCUM_ALPHA");

    AddProperty(new StringProperty("WX_GL_SAMPLE_BUFFERS", _("1 for multisampling support (antialiasing)")));
    m_attrs.Add("WX_GL_SAMPLE_BUFFERS");

    AddProperty(new StringProperty("WX_GL_SAMPLES", _("4 for 2x2 antialiasing supersampling on most graphics cards")));
    m_attrs.Add("WX_GL_SAMPLES");

    SetName(GenerateName());
}