//! [0] formatwizard::formatwizard(QWidget *parent) : QWizard(parent) { addPage(new InfilePage); addPage(new StructurePage); addPage(new OutfilePage); addPage(new MessagePage); setWindowTitle(tr("Rcount-format")); last_id = 0; connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(do_sth())); // set connection to the treeviewpage connect(this, SIGNAL(enableTreeView(QString)), this->page(1), SLOT(create_tree(QString))); // set connection to the treeviewpage - react on an updated structure connect(this, SIGNAL(enableOutfile()), this->page(1), SLOT(update_structure())); connect(this->page(1), SIGNAL(structure_modified(QString)), this, SLOT(check_updated_priorities(QString))); }
static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp) { /* native uses prop name "Structure", but we're not compatible with that so we'll prepend "Wine_". */ static const WCHAR prop_name[] = {'W','i','n','e','_','S','t','r','u','c','t','u','r','e',0}; ps_struct_t *ps_struct; TRACE("(%p, %04x, %08lx, %08lx)\n", hdlg, msg, wp, lp); ps_struct = GetPropW(hdlg, prop_name); if(msg != WM_INITDIALOG) { if(!ps_struct) return 0; if(ps_struct->ps->lpfnHook) { INT_PTR ret = ps_struct->ps->lpfnHook(hdlg, msg, wp, lp); if(ret) return ret; } } switch(msg) { case WM_INITDIALOG: { ps_struct = HeapAlloc(GetProcessHeap(), 0, sizeof(*ps_struct)); ps_struct->ps = (OLEUIPASTESPECIALW*)lp; ps_struct->type_name = NULL; ps_struct->source_name = NULL; ps_struct->link_type_name = NULL; ps_struct->link_source_name = NULL; ps_struct->app_name = NULL; ps_struct->flags = ps_struct->ps->dwFlags; SetPropW(hdlg, prop_name, ps_struct); if(!(ps_struct->ps->dwFlags & PSF_SHOWHELP)) { ShowWindow(GetDlgItem(hdlg, IDC_OLEUIHELP), SW_HIDE); EnableWindow(GetDlgItem(hdlg, IDC_OLEUIHELP), 0); } if(ps_struct->ps->lpszCaption) SetWindowTextW(hdlg, ps_struct->ps->lpszCaption); get_descriptors(hdlg, ps_struct); init_lists(hdlg, ps_struct); update_src_text(hdlg, ps_struct); selection_change(hdlg, ps_struct); SetFocus(GetDlgItem(hdlg, IDC_PS_DISPLAYLIST)); if(ps_struct->ps->lpfnHook) ps_struct->ps->lpfnHook(hdlg, msg, 0, 0); return FALSE; /* use new focus */ } case WM_COMMAND: switch(LOWORD(wp)) { case IDC_PS_DISPLAYLIST: switch(HIWORD(wp)) { case LBN_SELCHANGE: selection_change(hdlg, ps_struct); return FALSE; default: return FALSE; } case IDC_PS_PASTE: case IDC_PS_PASTELINK: switch(HIWORD(wp)) { case BN_CLICKED: mode_change(hdlg, ps_struct, LOWORD(wp)); return FALSE; default: return FALSE; } case IDC_OLEUIHELP: switch(HIWORD(wp)) { case BN_CLICKED: post_help_msg(hdlg, ps_struct); return FALSE; default: return FALSE; } case IDOK: case IDCANCEL: switch(HIWORD(wp)) { case BN_CLICKED: send_end_dialog_msg(hdlg, ps_struct, LOWORD(wp)); return FALSE; default: return FALSE; } } return FALSE; default: if(msg == oleui_msg_enddialog) { if(wp == IDOK) update_structure(hdlg, ps_struct); EndDialog(hdlg, wp); /* native does its cleanup in WM_DESTROY */ RemovePropW(hdlg, prop_name); free_structure(ps_struct); return TRUE; } return FALSE; } }