protected function Form_Create()
 {
     parent::Form_Create();
     // Use the CreateFromPathInfo shortcut (this can also be done manually using the NarroFileProgressMetaControl constructor)
     // MAKE SURE we specify "$this" as the MetaControl's (and thus all subsequent controls') parent
     $this->mctNarroFileProgress = NarroFileProgressMetaControl::CreateFromPathInfo($this);
     // Call MetaControl's methods to create qcontrols based on NarroFileProgress's data fields
     $this->lblFileProgressId = $this->mctNarroFileProgress->lblFileProgressId_Create();
     $this->lstFile = $this->mctNarroFileProgress->lstFile_Create();
     $this->lstLanguage = $this->mctNarroFileProgress->lstLanguage_Create();
     $this->txtFileMd5 = $this->mctNarroFileProgress->txtFileMd5_Create();
     $this->txtHeader = $this->mctNarroFileProgress->txtHeader_Create();
     $this->txtTotalTextCount = $this->mctNarroFileProgress->txtTotalTextCount_Create();
     $this->txtApprovedTextCount = $this->mctNarroFileProgress->txtApprovedTextCount_Create();
     $this->txtFuzzyTextCount = $this->mctNarroFileProgress->txtFuzzyTextCount_Create();
     $this->txtProgressPercent = $this->mctNarroFileProgress->txtProgressPercent_Create();
     $this->chkExport = $this->mctNarroFileProgress->chkExport_Create();
     // Create Buttons and Actions on this Form
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = QApplication::Translate('Save');
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxAction('btnSave_Click'));
     $this->btnSave->CausesValidation = true;
     $this->btnCancel = new QButton($this);
     $this->btnCancel->Text = QApplication::Translate('Cancel');
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxAction('btnCancel_Click'));
     $this->btnDelete = new QButton($this);
     $this->btnDelete->Text = QApplication::Translate('Delete');
     $this->btnDelete->AddAction(new QClickEvent(), new QConfirmAction(sprintf(QApplication::Translate('Are you SURE you want to DELETE this %s?'), QApplication::Translate('NarroFileProgress'))));
     $this->btnDelete->AddAction(new QClickEvent(), new QAjaxAction('btnDelete_Click'));
     $this->btnDelete->Visible = $this->mctNarroFileProgress->EditMode;
 }
 protected function Form_Create()
 {
     parent::Form_Create();
     // Use the CreateFromPathInfo shortcut (this can also be done manually using the NarroContextCommentMetaControl constructor)
     // MAKE SURE we specify "$this" as the MetaControl's (and thus all subsequent controls') parent
     $this->mctNarroContextComment = NarroContextCommentMetaControl::CreateFromPathInfo($this);
     // Call MetaControl's methods to create qcontrols based on NarroContextComment's data fields
     $this->lblCommentId = $this->mctNarroContextComment->lblCommentId_Create();
     $this->lstContext = $this->mctNarroContextComment->lstContext_Create();
     $this->calCreated = $this->mctNarroContextComment->calCreated_Create();
     $this->calModified = $this->mctNarroContextComment->calModified_Create();
     $this->txtCommentText = $this->mctNarroContextComment->txtCommentText_Create();
     $this->txtCommentTextMd5 = $this->mctNarroContextComment->txtCommentTextMd5_Create();
     // Create Buttons and Actions on this Form
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = QApplication::Translate('Save');
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxAction('btnSave_Click'));
     $this->btnSave->CausesValidation = true;
     $this->btnCancel = new QButton($this);
     $this->btnCancel->Text = QApplication::Translate('Cancel');
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxAction('btnCancel_Click'));
     $this->btnDelete = new QButton($this);
     $this->btnDelete->Text = QApplication::Translate('Delete');
     $this->btnDelete->AddAction(new QClickEvent(), new QConfirmAction(sprintf(QApplication::Translate('Are you SURE you want to DELETE this %s?'), QApplication::Translate('NarroContextComment'))));
     $this->btnDelete->AddAction(new QClickEvent(), new QAjaxAction('btnDelete_Click'));
     $this->btnDelete->Visible = $this->mctNarroContextComment->EditMode;
 }
 protected function Form_Create()
 {
     parent::Form_Create();
     // Instantiate the Meta DataGrid
     $this->dtgNarroFileProgresses = new NarroFileProgressDataGrid($this);
     // Style the DataGrid (if desired)
     $this->dtgNarroFileProgresses->CssClass = 'datagrid';
     $this->dtgNarroFileProgresses->AlternateRowStyle->CssClass = 'alternate';
     // Add Pagination (if desired)
     $this->dtgNarroFileProgresses->Paginator = new QPaginator($this->dtgNarroFileProgresses);
     $this->dtgNarroFileProgresses->ItemsPerPage = __FORM_DRAFTS_FORM_LIST_ITEMS_PER_PAGE__;
     // Use the MetaDataGrid functionality to add Columns for this datagrid
     // Create an Edit Column
     $strEditPageUrl = __VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/narro_file_progress_edit.php';
     $this->dtgNarroFileProgresses->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit');
     // Create the Other Columns (note that you can use strings for narro_file_progress's properties, or you
     // can traverse down QQN::narro_file_progress() to display fields that are down the hierarchy)
     $this->dtgNarroFileProgresses->MetaAddColumn('FileProgressId');
     $this->dtgNarroFileProgresses->MetaAddColumn(QQN::NarroFileProgress()->File);
     $this->dtgNarroFileProgresses->MetaAddColumn(QQN::NarroFileProgress()->Language);
     $this->dtgNarroFileProgresses->MetaAddColumn('FileMd5');
     $this->dtgNarroFileProgresses->MetaAddColumn('Header');
     $this->dtgNarroFileProgresses->MetaAddColumn('TotalTextCount');
     $this->dtgNarroFileProgresses->MetaAddColumn('ApprovedTextCount');
     $this->dtgNarroFileProgresses->MetaAddColumn('FuzzyTextCount');
     $this->dtgNarroFileProgresses->MetaAddColumn('ProgressPercent');
     $this->dtgNarroFileProgresses->MetaAddColumn('Export');
 }
예제 #4
0
 protected function Form_Create()
 {
     parent::Form_Create();
     // Instantiate the Meta DataGrid
     $this->dtgNarroFiles = new NarroFileDataGrid($this);
     // Style the DataGrid (if desired)
     $this->dtgNarroFiles->CssClass = 'datagrid';
     $this->dtgNarroFiles->AlternateRowStyle->CssClass = 'alternate';
     // Add Pagination (if desired)
     $this->dtgNarroFiles->Paginator = new QPaginator($this->dtgNarroFiles);
     $this->dtgNarroFiles->ItemsPerPage = __FORM_DRAFTS_FORM_LIST_ITEMS_PER_PAGE__;
     // Use the MetaDataGrid functionality to add Columns for this datagrid
     // Create an Edit Column
     $strEditPageUrl = __VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/narro_file_edit.php';
     $this->dtgNarroFiles->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit');
     // Create the Other Columns (note that you can use strings for narro_file's properties, or you
     // can traverse down QQN::narro_file() to display fields that are down the hierarchy)
     $this->dtgNarroFiles->MetaAddColumn('FileId');
     $this->dtgNarroFiles->MetaAddColumn('FileName');
     $this->dtgNarroFiles->MetaAddColumn('FilePath');
     $this->dtgNarroFiles->MetaAddColumn('FileMd5');
     $this->dtgNarroFiles->MetaAddColumn(QQN::NarroFile()->Parent);
     $this->dtgNarroFiles->MetaAddTypeColumn('TypeId', 'NarroFileType');
     $this->dtgNarroFiles->MetaAddColumn(QQN::NarroFile()->Project);
     $this->dtgNarroFiles->MetaAddColumn('Active');
     $this->dtgNarroFiles->MetaAddColumn('Created');
     $this->dtgNarroFiles->MetaAddColumn('Modified');
     $this->dtgNarroFiles->MetaAddColumn('Header');
 }
 protected function Form_Create()
 {
     parent::Form_Create();
     // Instantiate the Meta DataGrid
     $this->dtgNarroLanguages = new NarroLanguageDataGrid($this);
     // Style the DataGrid (if desired)
     $this->dtgNarroLanguages->CssClass = 'datagrid';
     $this->dtgNarroLanguages->AlternateRowStyle->CssClass = 'alternate';
     // Add Pagination (if desired)
     $this->dtgNarroLanguages->Paginator = new QPaginator($this->dtgNarroLanguages);
     $this->dtgNarroLanguages->ItemsPerPage = __FORM_DRAFTS_FORM_LIST_ITEMS_PER_PAGE__;
     // Use the MetaDataGrid functionality to add Columns for this datagrid
     // Create an Edit Column
     $strEditPageUrl = __VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/narro_language_edit.php';
     $this->dtgNarroLanguages->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit');
     // Create the Other Columns (note that you can use strings for narro_language's properties, or you
     // can traverse down QQN::narro_language() to display fields that are down the hierarchy)
     $this->dtgNarroLanguages->MetaAddColumn('LanguageId');
     $this->dtgNarroLanguages->MetaAddColumn('LanguageName');
     $this->dtgNarroLanguages->MetaAddColumn('LanguageCode');
     $this->dtgNarroLanguages->MetaAddColumn('CountryCode');
     $this->dtgNarroLanguages->MetaAddColumn('DialectCode');
     $this->dtgNarroLanguages->MetaAddColumn('Encoding');
     $this->dtgNarroLanguages->MetaAddColumn('TextDirection');
     $this->dtgNarroLanguages->MetaAddColumn('SpecialCharacters');
     $this->dtgNarroLanguages->MetaAddColumn('PluralForm');
     $this->dtgNarroLanguages->MetaAddColumn('Active');
 }
예제 #6
0
 protected function Form_Create()
 {
     parent::Form_Create();
     // Instantiate the Meta DataGrid
     $this->dtgNarroLogs = new NarroLogDataGrid($this);
     // Style the DataGrid (if desired)
     $this->dtgNarroLogs->CssClass = 'datagrid';
     $this->dtgNarroLogs->AlternateRowStyle->CssClass = 'alternate';
     // Add Pagination (if desired)
     $this->dtgNarroLogs->Paginator = new QPaginator($this->dtgNarroLogs);
     $this->dtgNarroLogs->ItemsPerPage = __FORM_DRAFTS_FORM_LIST_ITEMS_PER_PAGE__;
     // Use the MetaDataGrid functionality to add Columns for this datagrid
     // Create an Edit Column
     $strEditPageUrl = __VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/narro_log_edit.php';
     $this->dtgNarroLogs->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit');
     // Create the Other Columns (note that you can use strings for narro_log's properties, or you
     // can traverse down QQN::narro_log() to display fields that are down the hierarchy)
     $this->dtgNarroLogs->MetaAddColumn('LogId');
     $this->dtgNarroLogs->MetaAddColumn(QQN::NarroLog()->Language);
     $this->dtgNarroLogs->MetaAddColumn(QQN::NarroLog()->Project);
     $this->dtgNarroLogs->MetaAddColumn(QQN::NarroLog()->User);
     $this->dtgNarroLogs->MetaAddColumn('Message');
     $this->dtgNarroLogs->MetaAddColumn('Priority');
     $this->dtgNarroLogs->MetaAddColumn('Date');
 }
 protected function Form_Create()
 {
     parent::Form_Create();
     // Use the CreateFromPathInfo shortcut (this can also be done manually using the NarroLanguageMetaControl constructor)
     // MAKE SURE we specify "$this" as the MetaControl's (and thus all subsequent controls') parent
     $this->mctNarroLanguage = NarroLanguageMetaControl::CreateFromPathInfo($this);
     // Call MetaControl's methods to create qcontrols based on NarroLanguage's data fields
     $this->lblLanguageId = $this->mctNarroLanguage->lblLanguageId_Create();
     $this->txtLanguageName = $this->mctNarroLanguage->txtLanguageName_Create();
     $this->txtLanguageCode = $this->mctNarroLanguage->txtLanguageCode_Create();
     $this->txtCountryCode = $this->mctNarroLanguage->txtCountryCode_Create();
     $this->txtDialectCode = $this->mctNarroLanguage->txtDialectCode_Create();
     $this->txtEncoding = $this->mctNarroLanguage->txtEncoding_Create();
     $this->txtTextDirection = $this->mctNarroLanguage->txtTextDirection_Create();
     $this->txtSpecialCharacters = $this->mctNarroLanguage->txtSpecialCharacters_Create();
     $this->txtPluralForm = $this->mctNarroLanguage->txtPluralForm_Create();
     $this->chkActive = $this->mctNarroLanguage->chkActive_Create();
     // Create Buttons and Actions on this Form
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = QApplication::Translate('Save');
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxAction('btnSave_Click'));
     $this->btnSave->CausesValidation = true;
     $this->btnCancel = new QButton($this);
     $this->btnCancel->Text = QApplication::Translate('Cancel');
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxAction('btnCancel_Click'));
     $this->btnDelete = new QButton($this);
     $this->btnDelete->Text = QApplication::Translate('Delete');
     $this->btnDelete->AddAction(new QClickEvent(), new QConfirmAction(sprintf(QApplication::Translate('Are you SURE you want to DELETE this %s?'), QApplication::Translate('NarroLanguage'))));
     $this->btnDelete->AddAction(new QClickEvent(), new QAjaxAction('btnDelete_Click'));
     $this->btnDelete->Visible = $this->mctNarroLanguage->EditMode;
 }
 protected function Form_Create()
 {
     parent::Form_Create();
     // Instantiate the Meta DataGrid
     $this->dtgNarroSuggestions = new NarroSuggestionDataGrid($this);
     // Style the DataGrid (if desired)
     $this->dtgNarroSuggestions->CssClass = 'datagrid';
     $this->dtgNarroSuggestions->AlternateRowStyle->CssClass = 'alternate';
     // Add Pagination (if desired)
     $this->dtgNarroSuggestions->Paginator = new QPaginator($this->dtgNarroSuggestions);
     $this->dtgNarroSuggestions->ItemsPerPage = __FORM_DRAFTS_FORM_LIST_ITEMS_PER_PAGE__;
     // Use the MetaDataGrid functionality to add Columns for this datagrid
     // Create an Edit Column
     $strEditPageUrl = __VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/narro_suggestion_edit.php';
     $this->dtgNarroSuggestions->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit');
     // Create the Other Columns (note that you can use strings for narro_suggestion's properties, or you
     // can traverse down QQN::narro_suggestion() to display fields that are down the hierarchy)
     $this->dtgNarroSuggestions->MetaAddColumn('SuggestionId');
     $this->dtgNarroSuggestions->MetaAddColumn(QQN::NarroSuggestion()->User);
     $this->dtgNarroSuggestions->MetaAddColumn(QQN::NarroSuggestion()->Text);
     $this->dtgNarroSuggestions->MetaAddColumn(QQN::NarroSuggestion()->Language);
     $this->dtgNarroSuggestions->MetaAddColumn('SuggestionValue');
     $this->dtgNarroSuggestions->MetaAddColumn('SuggestionValueMd5');
     $this->dtgNarroSuggestions->MetaAddColumn('SuggestionCharCount');
     $this->dtgNarroSuggestions->MetaAddColumn('SuggestionWordCount');
     $this->dtgNarroSuggestions->MetaAddColumn('HasComments');
     $this->dtgNarroSuggestions->MetaAddColumn('IsImported');
     $this->dtgNarroSuggestions->MetaAddColumn('Created');
     $this->dtgNarroSuggestions->MetaAddColumn('Modified');
 }
 protected function Form_Create()
 {
     parent::Form_Create();
     // Instantiate the Meta DataGrid
     $this->dtgNarroContextInfos = new NarroContextInfoDataGrid($this);
     // Style the DataGrid (if desired)
     $this->dtgNarroContextInfos->CssClass = 'datagrid';
     $this->dtgNarroContextInfos->AlternateRowStyle->CssClass = 'alternate';
     // Add Pagination (if desired)
     $this->dtgNarroContextInfos->Paginator = new QPaginator($this->dtgNarroContextInfos);
     $this->dtgNarroContextInfos->ItemsPerPage = __FORM_DRAFTS_FORM_LIST_ITEMS_PER_PAGE__;
     // Use the MetaDataGrid functionality to add Columns for this datagrid
     // Create an Edit Column
     $strEditPageUrl = __VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/narro_context_info_edit.php';
     $this->dtgNarroContextInfos->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit');
     // Create the Other Columns (note that you can use strings for narro_context_info's properties, or you
     // can traverse down QQN::narro_context_info() to display fields that are down the hierarchy)
     $this->dtgNarroContextInfos->MetaAddColumn('ContextInfoId');
     $this->dtgNarroContextInfos->MetaAddColumn(QQN::NarroContextInfo()->Context);
     $this->dtgNarroContextInfos->MetaAddColumn(QQN::NarroContextInfo()->Language);
     $this->dtgNarroContextInfos->MetaAddColumn(QQN::NarroContextInfo()->ValidatorUser);
     $this->dtgNarroContextInfos->MetaAddColumn(QQN::NarroContextInfo()->ValidSuggestion);
     $this->dtgNarroContextInfos->MetaAddColumn('HasSuggestions');
     $this->dtgNarroContextInfos->MetaAddColumn('SuggestionAccessKey');
     $this->dtgNarroContextInfos->MetaAddColumn('SuggestionCommandKey');
     $this->dtgNarroContextInfos->MetaAddColumn('Created');
     $this->dtgNarroContextInfos->MetaAddColumn('Modified');
 }
 protected function Form_Create()
 {
     parent::Form_Create();
     // Instantiate the Meta DataGrid
     $this->dtgNarroContextComments = new NarroContextCommentDataGrid($this);
     // Style the DataGrid (if desired)
     $this->dtgNarroContextComments->CssClass = 'datagrid';
     $this->dtgNarroContextComments->AlternateRowStyle->CssClass = 'alternate';
     // Add Pagination (if desired)
     $this->dtgNarroContextComments->Paginator = new QPaginator($this->dtgNarroContextComments);
     $this->dtgNarroContextComments->ItemsPerPage = 20;
     // Use the MetaDataGrid functionality to add Columns for this datagrid
     // Create an Edit Column
     $strEditPageUrl = __VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/narro_context_comment_edit.php';
     $this->dtgNarroContextComments->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit');
     // Create the Other Columns (note that you can use strings for narro_context_comment's properties, or you
     // can traverse down QQN::narro_context_comment() to display fields that are down the hierarchy)
     $this->dtgNarroContextComments->MetaAddColumn('CommentId');
     $this->dtgNarroContextComments->MetaAddColumn(QQN::NarroContextComment()->Context);
     $this->dtgNarroContextComments->MetaAddColumn('Created');
     $this->dtgNarroContextComments->MetaAddColumn('Modified');
     $this->dtgNarroContextComments->MetaAddColumn('CommentText');
     $this->dtgNarroContextComments->MetaAddColumn('CommentTextMd5');
 }