void TextSymbolSettings::determineSizeClicked() { DetermineFontSizeDialog modal_dialog(this, symbol); modal_dialog.setWindowModality(Qt::WindowModal); if (modal_dialog.exec() == QDialog::Accepted) { updateSizeEdit(); symbol->updateQFont(); emit propertiesModified(); } }
void about_callb(GtkWidget *wdg, gpointer app) { GtkWidget *content=NULL, *lbl; gchar *fname = NULL,*utf8_msg=NULL; gsize br,bw; GError *ger; static gchar *f1=NULL; static gchar *f2 = "splash.jpg"; static gchar *msg = "\nGEOMORPH 0.6\nhttp://geomorph.sourceforge.net\n\n(c) Patrice St-Gelais 2003-2009 (GPL)\[email protected]\n\nGerman translation by\nSimon Donike (2005-2008) and Tim Schuermann (2004)"; if (!f1) { f1 = x_malloc(2+strlen(PKGDATADIR)+strlen(VERSION)+strlen(f2), "Splash image"); strcpy(f1,PKGDATADIR); strcat(f1,VERSION); strcat(f1,"/"); strcat(f1,f2); } if (!utf8_msg) { utf8_msg = g_locale_to_utf8(msg,-1,&br,&bw,&ger); } if (!utf8_msg) utf8_msg = msg; if (filexists(f1)) fname = f1; else if (filexists(f2)) fname = f2; if (fname) { content = gtk_vbox_new(FALSE,0); gtk_container_add(GTK_CONTAINER(content),gtk_image_new_from_file(fname)); lbl = gtk_label_new(utf8_msg); gtk_label_set_justify(GTK_LABEL(lbl),GTK_JUSTIFY_CENTER); gtk_container_add(GTK_CONTAINER(content),lbl); gtk_widget_show_all(content); } if (content) modal_dialog (content, " ", NULL, NULL, NULL, GTK_WIN_POS_CENTER, TRUE); else my_msg(utf8_msg,INFO); }