GtkWidget * AP_UnixDialog_ListRevisions::constructWindow () { GtkWidget *ap_UnixDialog_ListRevisions; GtkWidget *vbDialog; GtkWidget *aaDialog; ap_UnixDialog_ListRevisions = abiDialogNew ( "list revisions dialog", TRUE, getTitle()); gtk_window_set_modal (GTK_WINDOW (ap_UnixDialog_ListRevisions), TRUE); gtk_window_set_default_size ( GTK_WINDOW(ap_UnixDialog_ListRevisions), 800, 450 ) ; vbDialog = gtk_dialog_get_content_area(GTK_DIALOG(ap_UnixDialog_ListRevisions)); gtk_widget_show (vbDialog); gtk_container_set_border_width (GTK_CONTAINER (vbDialog), 5); aaDialog = gtk_dialog_get_action_area(GTK_DIALOG(ap_UnixDialog_ListRevisions)); gtk_widget_show (aaDialog); constructWindowContents ( vbDialog ) ; abiAddStockButton ( GTK_DIALOG(ap_UnixDialog_ListRevisions), GTK_STOCK_CANCEL, BUTTON_CANCEL ) ; abiAddStockButton ( GTK_DIALOG(ap_UnixDialog_ListRevisions), GTK_STOCK_OK, BUTTON_OK ) ; return ap_UnixDialog_ListRevisions; }
GtkWidget * AP_UnixDialog_MarkRevisions::constructWindow () { const XAP_StringSet * pSS = XAP_App::getApp()->getStringSet(); GtkWidget* w = 0; GtkWidget *dialog1; GtkWidget *dialog_vbox1; GtkWidget *dialog_action_area1; UT_UTF8String s; pSS->getValueUTF8(AP_STRING_ID_DLG_MarkRevisions_Title,s); dialog1 = abiDialogNew ( "mark revisions", TRUE, s.utf8_str()); gtk_window_set_default_size ( GTK_WINDOW(dialog1), 250, 150 ) ; dialog_vbox1 = gtk_dialog_get_content_area(GTK_DIALOG (dialog1)); gtk_widget_show (dialog_vbox1); dialog_action_area1 = gtk_dialog_get_action_area(GTK_DIALOG (dialog1)); gtk_widget_show (dialog_action_area1); gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area1), 10); constructWindowContents ( dialog_vbox1 ) ; abiAddStockButton ( GTK_DIALOG(dialog1), GTK_STOCK_CANCEL, BUTTON_CANCEL ); w = abiAddStockButton ( GTK_DIALOG(dialog1), GTK_STOCK_OK, BUTTON_OK ); mButtonOK = w; abiSetActivateOnWidgetToActivateButton( mComment, mButtonOK ); return dialog1; }
GtkWidget * XAP_UnixDialog_FontChooser::constructWindow(void) { const XAP_StringSet * pSS = m_pApp->getStringSet(); GtkWidget *windowFontSelection; GtkWidget *vboxMain; GtkWidget *vboxOuter; std::string s; pSS->getValueUTF8(XAP_STRING_ID_DLG_UFS_FontTitle,s); windowFontSelection = abiDialogNew ( "font dialog", TRUE, s.c_str() ) ; gtk_window_set_position(GTK_WINDOW(windowFontSelection), GTK_WIN_POS_CENTER_ON_PARENT); vboxOuter = gtk_dialog_get_content_area(GTK_DIALOG(windowFontSelection)); vboxMain = constructWindowContents(vboxOuter); gtk_box_pack_start (GTK_BOX (vboxOuter), vboxMain, TRUE, TRUE, 0); pSS->getValueUTF8(XAP_STRING_ID_DLG_Cancel, s); abiAddButton ( GTK_DIALOG(windowFontSelection), s, BUTTON_CANCEL ) ; pSS->getValueUTF8(XAP_STRING_ID_DLG_OK, s); abiAddButton ( GTK_DIALOG(windowFontSelection), s, BUTTON_OK ) ; return windowFontSelection; }