Esempio n. 1
0
void GameDisplayDlg::ShowItemAttrib(const ItemAttrib* _pItem, int _nOwner /* = -1 */)
{
	//	显示别的玩家装备 需要提前拷入其它玩家别的装备
	int nDestOwner = _nOwner;

	if(-1 == nDestOwner)
	{
		//	(GamePlayer::GetInstance())
	}

	//	判断物品tag, tag相同不更新显示列表
	if(m_stShowItem.tag != 0)
	{
		if(m_stShowItem.tag == _pItem->tag)
		{
			ShowDialog();
			return;
		}
	}

	memcpy(&m_stShowItem, _pItem, sizeof(ItemAttrib));

	GenShowItems();
	ShowDialog();
}
Esempio n. 2
0
static void 
do_kill(Widget w, pid_t pid, signal_t signal_value)
{
  if (base.debugging & DBG_MENU) 
    printf("kill %ld %d\n", (long int) pid, signal_value);
#ifdef RUN_SUID_ROOT
  seteuid(real_uid);
#endif    
  if (kill(pid, signal_value) == -1) {
    /* beep if we can't deliver signal to process */
    XBell(XtDisplay(w),0);  
    {
#ifdef HAVE_STRERROR      
      char buf[300];
      sprintf(buf, "kill signal error:\n%s", strerror(errno));
      ShowDialog(w, XmDIALOG_ERROR, buf);
#else       
      ShowDialog(w, XmDIALOG_ERROR, "kill signal error.");
#endif /*HAVE_STRERROR*/
    }
  }
#ifdef RUN_SUID_ROOT
  seteuid(0);
#endif    
}
Esempio n. 3
0
/***************************************************************************
  Deliver the requested signal to the process, or process group.
  Or change the priority -- not done yet.
  Beep if we fail.         
***************************************************************************/
static void 
do_process_action_callback(Widget w, XtPointer client_data, 
			   XtPointer call_data)
{
  signal_t signal_value;
  int *signal_pos = (int *) client_data;

#ifdef HAVE_SETPRIORITY
  if (do_priority) {
    int priority_type = (do_process_group) ? PRIO_PGRP : PRIO_PROCESS;
    errno = 0;
#ifdef RUN_SUID_ROOT
    seteuid(real_uid);
#endif  /*RUN_SUID_ROOT*/
    if (setpriority(priority_type, base.selected_pid, priority) == -1 
	&& errno !=0 ) {
      /* beep if we can't set the priority. */
      XBell(XtDisplay(w),0);  
      { 
#ifdef HAVE_STRERROR      
	char buf[300];
	sprintf(buf, "Can't set priority:\n%s", strerror(errno));
	ShowDialog(w, XmDIALOG_ERROR, buf);
#else       
	ShowDialog(w, XmDIALOG_ERROR, "Can't set priority.");
#endif /*HAVE_STRERROR*/
      }
    };
#ifdef RUN_SUID_ROOT
    seteuid(0);
#endif    
  }
#endif /*HAVE_SETPRIORITY*/

  signal_value = signal_map[*signal_pos].sig;
  if (do_process_group) {
    signal_value = -signal_value;
  }

  if (base.debugging & DBG_MENU) 
    printf("priority: %d, do_process_group %d, sig %d\n", 
	   priority, do_process_group, signal_value);

  if (signal_value != 0 ) {
    do_kill(w, base.selected_pid, signal_value);
  }
  base.selected_pid = BOGUS_PID; 
  ForceRedisplay();

}
Esempio n. 4
0
/**
 * Shows the "assertion failed" dialog box, and gives the user several options
 * for how to continue. Once chosen, this method will also execute that action
 * for the user (such as saving the dialog window) before continuing
 *
 * \return             True if the user wants to start debugging, or false
 *                     if they selected the option to quit
 */
bool AssertionDialog::Show() const
{
    AssertionDialog::EUserAction userAction;
    bool shouldStartDebugging = false;

    // Keep the dialog window up until the user has successfully saved the report, or chosen another action.
    bool keepGoing = true;

    while (keepGoing)
    {
        userAction = ShowDialog();

        if (userAction == EUSERACTION_SAVE)
        {
            keepGoing = (!SaveCrashDump());
        }
        else if (userAction == EUSERACTION_DEBUG)
        {
            keepGoing = false;
            shouldStartDebugging = true;
        }
        else
        {
            keepGoing = false;
        }
    }

    // Let the caller know if the user wanted to start the debugger
    return shouldStartDebugging;
}
Esempio n. 5
0
/* Создает все необходимые меню и помечает их для дальнейшего перевода */
void MainWindow::CreateMenus()
{
    menuMap = new QMap<QString,QMenu*>;

    QMenu *pMenuFile = ui->menuBar->addMenu(MainWindow::tr("&File"));
    menuMap->insert("File",pMenuFile);
    pMenuFile->addAction(MainWindow::tr("&Open"),this,
                                                SLOT(ShowDialog()),
                                                QKeySequence::Open);
    QAction * m_pActionSeparator = pMenuFile->addSeparator();
    m_pActionSeparator->setVisible(true);
    pMenuFile->addAction(MainWindow::tr("E&xit"),this,SLOT(close()),
                                                   QKeySequence::Quit);
    QMenu *pMenuWindow = ui->menuBar->addMenu(MainWindow::tr("&View"));
    menuMap->insert("View",pMenuWindow);
    pMenuWindow->addAction(MainWindow::tr("&Close all windows"),this,
                                            SLOT(CloseSubWindows()),
                                            QKeySequence::Close);
    m_pActionSeparator = pMenuFile->addSeparator();
    m_pActionSeparator->setVisible(true);
    QMenu *pMenuAbout = ui->menuBar->addMenu(MainWindow::tr("&Help"));
    pMenuAbout->addAction(MainWindow::tr("&About"),this,
                                           SLOT(ShowAbout()),
                                           QKeySequence::HelpContents);
}
Esempio n. 6
0
//---------------------------------------------------------------------------
int CTopDesktop::init()
{
	ShowDialog(loaderDlg);
	logo->load((u8 *)fb4_logo_bin,fb4_logo_bin_size);
	Invalidate();
	return 0;
}
Esempio n. 7
0
	int ShowError ( HWND hParent, OperationMode_e eMode, const Str_c & sFile1, const Str_c & sFile2 )
	{
		m_hWndParent = hParent;

		if ( m_bAuto )
			return m_iAutoResult;

		m_sFile1 = sFile1;
		m_sFile2 = sFile2;
		int iRes = ShowDialog ( hParent, eMode );

		if ( iRes == IDC_SKIP_ALL )
		{
			m_bAuto = true;
			m_iAutoResult = iRes = IDC_SKIP;
		}

		if ( iRes == IDC_OVER_ALL )
		{
			m_bAuto = true;
			m_iAutoResult = iRes = IDC_OVER;
		}

		return iRes;
	}
void 
ConnectionCommunity::OnClose()
{	
	m_isapclose = wyTrue;
	ShowDialog(pGlobals->m_pcmainwin->m_hwndmain);
	return;
}
Esempio n. 9
0
void UIProgressDialog::Show(const char* title)
{
	CloseOnEsc();
	ShowDialog(title, 375, -1);
	BeginModal();

	lastTick = 0;
}
Esempio n. 10
0
void UiDialogs::ErrorDialog(GtkWindow* parent, const char* text)
{
	ACE_TRACE("[UiDialogs::ErrorDialog()]");

	ShowDialog(parent, text, GTK_MESSAGE_ERROR);
	
	return;
}
Esempio n. 11
0
void UiDialogs::WarningDialog(GtkWindow* parent, const char* text)
{
	ACE_TRACE("[UiDialogs::WarningDialog()]");

	ShowDialog(parent, text, GTK_MESSAGE_WARNING);
	
	return;
}
Esempio n. 12
0
void ShowDlgSettings(int section, int page) {
  if (section > 0)
    DlgSettings.SetCurrentSection(static_cast<SettingsSections>(section));
  if (page > 0)
    DlgSettings.SetCurrentPage(static_cast<SettingsPages>(page));

  ShowDialog(kDialogSettings);
}
Esempio n. 13
0
void UiDialogs::InfoDialog(GtkWindow* parent, const char* text)
{
	ACE_TRACE("[UiDialogs::InfoDialog()]");

	ShowDialog(parent, text, GTK_MESSAGE_INFO);
	
	return;
}
Esempio n. 14
0
static int ShowDialog(int* delayMode)
{
    const static TASKDIALOG_BUTTON buttons[] = {
        { 100, L"&Start taking screenshots" },
        { 101, L"E&xit" },
    };

    const static TASKDIALOG_BUTTON radioButtons[] = {
        {   102, L"Wait for &delay\n"
            "Take a screenshot five seconds after this dialog disappears, then exit."
        },
        {   103, L"Wait for &key press\n"
            "Hide this dialog and wait for Ctrl+PrtScr to be pressed."
        },
    };

    const static TASKDIALOGCONFIG dialog = {
        .cbSize = sizeof(TASKDIALOGCONFIG),
        .hInstance = HINST_THISCOMPONENT,
        .dwFlags = TDF_SIZE_TO_CONTENT,
        .pszWindowTitle = L"Clearshot",
        .pszMainIcon = MAKEINTRESOURCE(101),
        .pszContent = L"Choose when the screenshot will be taken:",

        .cButtons = 2,
        .pButtons = buttons,
        .nDefaultButton = 100,

        .cRadioButtons = 2,
        .pRadioButtons = radioButtons,
        .nDefaultRadioButton = 102,
    };

    int result, option;

    TaskDialogIndirect(&dialog, &result, &option, NULL);

    *delayMode = (option == 102);
    return (result == 100);
}

int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdLine, int cmdShow)
{
    SetProcessDPIAware();

    int delay,
        left = GetSystemMetrics(SM_XVIRTUALSCREEN),
        top = GetSystemMetrics(SM_YVIRTUALSCREEN),
        width = GetSystemMetrics(SM_CXVIRTUALSCREEN),
        height = GetSystemMetrics(SM_CYVIRTUALSCREEN);

    if (!ShowDialog(&delay))
        return 0;

    ShootAndSave(left, top, width, height);

    return 0;
}
Esempio n. 15
0
ToolDialogSelection WrapperDLL::Tool_ShowDialog(void* self,const char16_t* message,const char16_t* title,ToolDialogStyle style,ToolDialogButtons buttons){
	auto self_ = (Tool*)self;
	auto arg0 = message;
	auto arg1 = title;
	auto arg2 = style;
	auto arg3 = buttons;
	auto ret = self_->ShowDialog(arg0,arg1,arg2,arg3);
	return ret;
};
Esempio n. 16
0
int ShowMediaSizeIllegalDialog(UIMediaSizeDialog* dialog, gchar* applied)
{
	GtkWidget* current_size_label;
	GtkWidget* current_media_label;
	GtkWidget* recommend_size_label;
	GtkWidget* recommend_media_label;
	char* media;
	char* size;

	// Current paper size.
	current_size_label = LookupWidget(UI_DIALOG(dialog)->window,
				"mediasize_illegal_current_size_label");
	size = ValueToName(CNCL_PAPERSIZE,
				KeyToValue(CNCL_PAPERSIZE, dialog->size));
	gtk_label_set_text(GTK_LABEL(current_size_label), size);

	// Current media type.
	current_media_label = LookupWidget(UI_DIALOG(dialog)->window,
				"mediasize_illegal_current_media_label");
	media = ValueToName(CNCL_MEDIATYPE,
				KeyToValue(CNCL_MEDIATYPE, dialog->media));
	gtk_label_set_text(GTK_LABEL(current_media_label), media);

	recommend_size_label = LookupWidget(UI_DIALOG(dialog)->window,
				"mediasize_illegal_recommend_size_label");
	recommend_media_label = LookupWidget(UI_DIALOG(dialog)->window,
				"mediasize_illegal_recommend_media_label");

	if( dialog->change == UI_MEDIASIZE_CHANGE_SIZE )
	{
		// Display recommended paper size.
		dialog->current_change_to_id = KeyToValue(CNCL_PAPERSIZE, applied);		/* Ver.3.20:default current...set top item */
		
		dialog->item_count = 1;

		size = ValueToName(CNCL_PAPERSIZE, dialog->current_change_to_id);	/* Ver.3.20 */
	}
	else if( dialog->change == UI_MEDIASIZE_CHANGE_MEDIA )
	{
		dialog->current_change_to_id = KeyToValue(CNCL_MEDIATYPE, applied);		/* Ver.3.20:default current...set top item */

		dialog->item_count = 1;

		media = ValueToName(CNCL_MEDIATYPE, dialog->current_change_to_id);		/* Ver.3.20 */
	}

	gtk_label_set_text(GTK_LABEL(recommend_size_label), size);
	gtk_label_set_text(GTK_LABEL(recommend_media_label), media);

	gtk_window_set_title(
		GTK_WINDOW(UI_DIALOG(dialog)->window), g_window_title);	
	gtk_window_set_position(
		GTK_WINDOW(UI_DIALOG(dialog)->window), GTK_WIN_POS_CENTER);	

	ShowDialog((UIDialog*)dialog, "mediasize_illegal_apply_button");
	return dialog->exec;
}
Esempio n. 17
0
void CTestScaling::DecreaseSize()
{
    // Display large message
    HANDLE hThreadShow = ShowDialog(STANDARD_DLG, sLongMsg);
    HWND hDialog = FindDialog(L"Workshare");
    assertEquals(hDialog!=NULL, true, __LINE__, L"Dialog NOT displayed when it should of been");
    if(hDialog == NULL)
    {
        return;
    }

    // How tall is it?
    RECT r;
    GetWindowRect(hDialog, &r);
    int iTallDlgHeight = r.bottom - r.top;
    assertEquals(iTallDlgHeight != 0, true, __LINE__, L"Tall dialog height is zero");

    // Kill the dialog
    TerminateThread(hThreadShow, 0);
    CloseHandle(hThreadShow);

    // Give the OS time to close the window.
    Sleep(100);

    HWND hDialog1 = FindDialogOnce(sProfessionalDialogTitle);
    assertEquals(hDialog1 == NULL, true, __LINE__, L"Dialog 1 NOT destroyed when it should of been");

    // Display a much smaller message, to force it to scale the message
    hThreadShow = ShowDialog(STANDARD_DLG, sShortMsg);
    HWND hDialog2 = FindDialog(sProfessionalDialogTitle);
    assertEquals(hDialog2 != NULL, true, __LINE__, L"Dialog 2 NOT displayed when it should of been");

    // How tall is it?
    RECT r2;
    GetWindowRect(hDialog2, &r2);
    int iSmallDlgHeight = r2.bottom - r2.top;
    assertEquals(iSmallDlgHeight != 0, true, __LINE__, L"Small dialog height is zero");

    // Kill the dialog
    TerminateThread(hThreadShow, 0);
    CloseHandle(hThreadShow);

    assertEquals(iTallDlgHeight > iSmallDlgHeight, true, __LINE__, L"Dialog did not shrink to accomdate text");
}
Esempio n. 18
0
void ShowQualityDialog(UIQualityDialog* dialog)
{
	UpdateQualityDialogWidgets(UI_DIALOG(dialog)->window, NULL);

	/*	
	dialog->print_quality = GetCurrentnValue(CNCL_PRINTQUALITY);
	dialog->bin_method = GetCurrentnValue(CNCL_DITHER_PAT);
	*/
	ShowDialog((UIDialog*)dialog, "quality_dialog_ok_button");
}
Esempio n. 19
0
MRESULT _System DrvMountDrivesDlg( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
 
{
    if (msg == WM_TIMER && mp1 == (MP)CAM_LVMTMR) {
        HEV  hev = WinQueryWindowULong( hwnd, QWL_USER);

        if (!WinWaitEventSem( hev, 0))
            WinSendMsg( hwnd, WM_COMMAND, (MP)CAM_LVMTMR, 0);
        return (0);
    }

    if (msg == WM_COMMAND || msg == WM_SYSCOMMAND) {
        ULONG   ulChk;

        if (!WinStopTimer( 0, hwnd, CAM_LVMTMR))
            printf( "DrvMountDrivesDlg - WinStopTimer\n");

        ulChk = (ULONG)WinSendDlgItemMsg( hwnd, IDC_AUTOMOUNT,
                                          BM_QUERYCHECK, 0, 0);
        DrvSetUseLvm( WinQueryWindow( hwnd, QW_OWNER), ulChk);

        WindowClosed( WinQueryWindowUShort( hwnd, QWS_ID));
        WinDismissDlg( hwnd, (mp1 == (MP)CAM_LVMTMR));
        return (0);
    }

    if (msg == WM_INITDLG) {
        HEV  hev = (HEV)mp2;

        WinSetWindowULong( hwnd, QWL_USER, hev);
        LoadDlgStrings( hwnd, nlsMountDlg);
        WinSendDlgItemMsg( hwnd, IDC_AUTOMOUNT, BM_SETCHECK,
                           (MP)(CAMDRV_IS_NOLVM ? 0 : 1), 0);
        ShowDialog( hwnd, 0);

        if (!WinWaitEventSem( hev, 0)) {
            WindowClosed( WinQueryWindowUShort( hwnd, QWS_ID));
            WinDismissDlg( hwnd, TRUE);
        }
        else
            if (!WinStartTimer( 0, hwnd, CAM_LVMTMR, 250))
                printf( "DrvMountDrivesDlg - WinStartTimer\n");
        return (0);
    }

    if (msg == WM_FOCUSCHANGE) {
        if (SHORT1FROMMP(mp2) && !WinIsWindowEnabled( hwnd)) {
            WinPostMsg( WinQueryWindow( hwnd, QW_OWNER),
                        CAMMSG_FOCUSCHANGE, 0, 0);
            return (0);
        }
    }

    return (WinDefDlgProc( hwnd, msg, mp1, mp2));
}
Esempio n. 20
0
void ShowColorDialog(UIColorDialog* dialog)
{
	// Set cyan scale adjustment value.
	gtk_adjustment_set_value(dialog->cyan_adjust,
							(gfloat)dialog->cyan_balance);

	// Set magenta scale adjustment value.
	gtk_adjustment_set_value(dialog->magenta_adjust,
							(gfloat)dialog->magenta_balance);

	// Set yellow scale adjustment value.
	gtk_adjustment_set_value(dialog->yellow_adjust,
							(float)dialog->yellow_balance);

	// Set black scale adjustment value.
	gtk_adjustment_set_value(dialog->black_adjust,
							(float)dialog->black_balance);

	// Set density scale adjustment value.
	gtk_adjustment_set_value(dialog->density_adjust,
							(float)dialog->density_balance);

	// Vivid button.
	gtk_toggle_button_set_active(
		GTK_TOGGLE_BUTTON(LookupWidget(UI_DIALOG(dialog)->window,
		"color_dialog_vivid_button")), dialog->vivid);

	// Color correct combo.
	dialog->color_correct = SetColorCorrectCombo(dialog, dialog->color_correct);
	SensitiveColorCorrectCombo(dialog, !dialog->vivid); 

	// Gamma combo.
	dialog->gamma = SetGammaCombo(dialog, dialog->gamma);

	{
		short print_bw = IsGrayPrint(g_main_window);
		int i;

		for( i = 0 ; bw_sensitive_name[i] != NULL ; i++ )
		{
			gboolean sensitive;

			if( !strcmp(bw_sensitive_name[i], "color_dialog_correct_combo") )
				sensitive = !(print_bw | dialog->vivid);
			else
				sensitive = !print_bw;

			gtk_widget_set_sensitive(
				LookupWidget(UI_DIALOG(dialog)->window,
				 			bw_sensitive_name[i]), sensitive);
		}
	}

	ShowDialog((UIDialog*)dialog, "color_dialog_ok_button"); 
}
Esempio n. 21
0
LRESULT CH3CDlg::OnTray(WPARAM wParam,LPARAM lParam)
{
	UINT uID=(UINT) wParam; 
	UINT uMouseMsg=(UINT) lParam; 
	CMenu menu;
	CMenu *pMenu;
	POINT pt;

	if(uMouseMsg==WM_LBUTTONDBLCLK)//如果是左键双击 
	{ 
		switch(uID) 
		{ 
		case IDR_MAINFRAME: 
		case IDI_DISCON:
			if(isShown==false) 
			{
				//显示主窗口 
				//ModifyStyle(WS_POPUP,WS_OVERLAPPEDWINDOW);  
				//ModifyStyleEx(WS_EX_TOOLWINDOW,WS_EX_TOPMOST); 
				ShowDialog();
			} 
			else 
			{
				HideDialog();
			}
			return 0;
			break; 
		default: 
			break; 
		} 
	} 

	if(uMouseMsg==WM_RBUTTONDOWN || uMouseMsg==WM_LBUTTONDOWN)//如果是单击左右键 
	{ 
		switch(uID) 
		{ 
		case IDR_MAINFRAME://如果是我们的图标 
		case IDI_DISCON:
			GetCursorPos(&pt);//取得鼠标位置 
			//执行相应操作 
			menu.LoadMenu(IDR_MENU1); 
			pMenu=menu.GetSubMenu(0); 
			ASSERT(pMenu!=0);
			::SetForegroundWindow(this->m_hWnd);
			pMenu->TrackPopupMenu (0,pt.x,pt.y,this); 
			break; 
		default: 
			break; 
		} 
	}

	return 0;

}
void ShowCalibrationSettingsDlg(UIStatusWnd *wnd)
{
	if(wnd != NULL){
		if(GetDefaultCalibrationSettings(wnd) == 0){
			SigDisable();
			InitCalibrationSettingsDlgWidgets(wnd);
			SigEnable();

			ShowDialog((UIDialog *)wnd->calibration_Settings_dlg, NULL);
		}
	}
}
Esempio n. 23
0
File: MSGBXS.C Progetto: FDOS/defrag
void ShowModalMessage(char* msg)
{
     int dialog_len, dialog_x;

     dialog_len = strlen(msg) + 4;
     dialog_x   = (MAX_X / 2) - (dialog_len / 2);

     ShowDialog(dialog_x, MODAL_Y, dialog_len, MODAL_HEIGHT,
                " Message ", DIALOGFORCOLOR, DIALOGBACKCOLOR);

     StaticLabel(dialog_x + 2, MODAL_Y + 2, msg);
}
Esempio n. 24
0
void
on_button_clicked		(GtkButton	*button,
					gpointer	user_data)
{
	const ButtonData *data = (ButtonData *)user_data;
	if(data != NULL){
		ConditionInfo *condition = data->condition;
		if(data->showdialog != NULL){
			ShowDialog(data->showdialog, 0);
		}else{
			while(condition != NULL){
				char *method;
				method = GetCurrOpt(g_cngplp_data, data->id, NULL);
				if((method != NULL) && (strcmp(method, condition->name) == 0)){
					ShowDialog(condition->widget, 0);
					free(method);
					break;
				}
				condition = condition->next;
			}
		}
	}
}
Esempio n. 25
0
void    pfGameGUIMgr::IShowDialog( const char *name )
{
    int     i;


    for( i = 0; i < fDialogs.GetCount(); i++ )
    {
        if( stricmp( fDialogs[ i ]->GetName(), name ) == 0 )
        {
            ShowDialog( fDialogs[ i ] );
            fDialogs[i]->RefreshAllControls();
            break;
        }
    }
}
Esempio n. 26
0
void e2ProgressDialog::UpdateDialog(int val, char *msg)
{
	pbr_value = val;
	SetValue(pbrProgress,val,Value);    // The horizontal bar
	if (msg)
	{
		UserDebug(UserApp2,"e2ProgressDialog::UpdateDialog() closing...\n")

		CloseDialog();

		UserDebug1(UserApp2,"e2ProgressDialog::UpdateDialog() showing... (%s)\n", msg)

		ShowDialog(msg);
	}
}
Esempio n. 27
0
BOOL MainDialog::OnCommand(WPARAM wParam, LPARAM lParam) {
  // Toolbar
  switch (LOWORD(wParam)) {
    // Synchronize
    case kToolbarButtonSync:
      sync::Synchronize();
      return TRUE;
    // Settings
    case kToolbarButtonSettings:
      ShowDialog(ui::Dialog::Settings);
      return TRUE;
    // Debug
    case kToolbarButtonDebug:
      debug::Test();
      return TRUE;
  }

  // Search text
  if (HIWORD(wParam) == EN_CHANGE) {
    if (LOWORD(wParam) == IDC_EDIT_SEARCH) {
      int current_page = navigation.GetCurrentPage();
      auto& text = search_bar.text[current_page];
      edit.GetText(text);
      cancel_button.Show(text.empty() ? SW_HIDE : SW_SHOWNORMAL);
      switch (current_page) {
        case kSidebarItemAnimeList:
          if (search_bar.filters.text[current_page] != text) {
            if (text.empty() || text.size() > 1) {
              search_bar.filters.text[current_page] = text;
              DlgAnimeList.RefreshList();
              DlgAnimeList.RefreshTabs();
              return TRUE;
            }
          }
          break;
        case kSidebarItemSeasons:
          if (search_bar.filters.text[current_page] != text) {
            search_bar.filters.text[current_page] = text;
            DlgSeason.RefreshList();
            return TRUE;
          }
          break;
      }
    }
  }

  return FALSE;
}
Esempio n. 28
0
VOID NTAPI MenuItemCallback(
	__in_opt PVOID Parameter,
	__in_opt PVOID Context
	)
{
	PPH_PLUGIN_MENU_ITEM menuItem = (PPH_PLUGIN_MENU_ITEM)Parameter;

	switch (menuItem->Id)
	{
	case GFXINFO_MENUITEM:
		{
			ShowDialog();
		}
		break;
	}
}
Esempio n. 29
0
wxStandardID wxExVCS::Request(wxWindow* parent)
{
  if (ShowDialog(parent) == wxID_CANCEL)
  {
    return wxID_CANCEL;
  }  
  
  if (!Execute())
  {
    return wxID_CANCEL;
  }
    
  m_Entry.ShowOutput(m_Caption);

  return wxID_OK;
}
Esempio n. 30
0
// --------------------------------------------------------------------------
void WINAPI DoUnpack(HWND hMainDlg, char *szFname, DWORD lpOptionsArray, DWORD lpReserved, DWORD lpParam)
{
  // Guard against errors
  try{
    DataOfFUU = new TExternalData();
    DataOfFUU->hFUU=hMainDlg;
    DataOfFUU->Target_Filename=szFname;
    DataOfFUU->lpOptionsArray=lpOptionsArray;
    DataOfFUU->lpReserved=lpReserved;
    DataOfFUU->lpParam=lpParam;

    ShowDialog();
  }
  __finally // in case of error...
  {
  };
};