Ejemplo n.º 1
0
	virtual bool TransferDataFromWindow()
    {
		wxFileName fileName = m_filePicker->GetFileName();
		if (fileName.FileExists())
		{
			alertDlg("Project file is already exist.\nSelect other filename.", this);
			m_filePicker->SetFocus();
			return false;
		}

		if (!fileName.IsOk())
		{
			alertDlg("Project file name is empty or invalid.", this);
			m_filePicker->SetFocus();
			return false;
		}

		if (m_textName->GetLabelText().IsEmpty())
		{
			alertDlg("Project name is empty.", this);
			m_textName->SetFocus();
			return false;
		}

		return true;
	}
Ejemplo n.º 2
0
	wxString getProjName() { return m_textName ? m_textName->GetLabelText() : ""; }