Пример #1
0
void CGridIcon::updateByContent()
{
    if(m_GridsType == emGrids_BagBook)
    {
        ShowQuality();
        ShowIcon();
        ShowMask();
        ShowNum();
        ShowPrecent();
        ShowPrecentBar();
        ShowLevel();
    }
    else
    {
        ShowQuality();
        ShowIcon();
        ShowMask();
        ShowNum();
        ShowCd();
    }
    setTouchEnabled(true);
    if (m_bCanMove&&m_pItem)
    {
        CDragCtrol* pDrag = CDragCtrol::create(this,m_pItem->getId(),DragSlotType_Item,this,toucheventselector(CGridIcon::clickGridIcon),NULL);
        addChild(pDrag);
    }
    else
    {
        addTouchEventListener(this,toucheventselector(CGridIcon::clickGridIcon));
    }
}
Пример #2
0
void CCreatePatch::OnBnClickedShowunversioned()
{
    UpdateData();
    m_regAddBeforeCommit = m_bShowUnversioned;
    if (!m_bThreadRunning)
        m_PatchList.Show(ShowMask(), CTSVNPathList(), 0, true, true);
}
Пример #3
0
void COXMaskedEdit::Update(int nSelectionStart/*=0*/)
{
	// Update the edit control if it exists. 
	if(::IsWindow(m_hWnd))
	{
		m_nSetTextSemaphor++;
		CString sText=ShowMask();
		SetWindowText(sText);
		m_nSetTextSemaphor--;
		SetModify(TRUE);
		// We usually need to update the insertion point. 
		if(nSelectionStart>=0)
			UpdateInsertionPointForward(nSelectionStart);
	}
}
Пример #4
0
UINT CCreatePatch::PatchThread()
{
    // get the status of all selected file/folders recursively
    // and show the ones which can be included in a patch (i.e. the versioned and not-normal ones)
    DialogEnableWindow(IDOK, false);
    DialogEnableWindow(IDC_SHOWUNVERSIONED, false);
    m_bCancelled = false;

    if (!m_PatchList.GetStatus(m_pathList))
    {
        m_PatchList.SetEmptyString(m_PatchList.GetLastErrorMessage());
    }

    m_PatchList.Show(
        ShowMask(), CTSVNPathList(), SVNSLC_SHOWDIRECTFILES | SVNSLC_SHOWVERSIONEDBUTNORMALANDEXTERNALSFROMDIFFERENTREPOS, true, true);

    DialogEnableWindow(IDC_SHOWUNVERSIONED, true);
    InterlockedExchange(&m_bThreadRunning, FALSE);
    return 0;
}
Пример #5
0
 void MdiEditor::createMenuBar()
 {
	pro_menu=menuBar()->addMenu("Project");
	new_pro=new QAction("&New Project", this);
	save_pro=new QAction("&Save Project", this);
	pro_menu->addAction(new_pro);
	pro_menu->addAction(save_pro);

	setting_menu=menuBar()->addMenu("Settings");
	mod_para=new QAction("&Parameters", this);
	setting_menu->addAction(mod_para);
	mod_mask=new QAction("&Masks", this);
	setting_menu->addAction(mod_mask);
	mod_layer=new QAction("&Layers", this);
	setting_menu->addAction(mod_layer);


	view_menu=menuBar()->addMenu("View");
	mask_view=view_menu->addMenu("Mask");
	show_mask=new QAction("&Show", this);
	mask_view->addAction(show_mask);
	hide_mask=new QAction("&Hide", this);
	mask_view->addAction(hide_mask);

	result_view=view_menu->addMenu("Results");
	show_halfway=new QAction("&Halfway Image", this);
	result_view->addAction(show_halfway);
	show_error=new QAction("&Error Image", this);
	result_view->addAction(show_error);

	color_view=view_menu->addMenu("Color from");
	show_image1=new QAction("&Image1", this);
	color_view->addAction(show_image1);
	show_image12=new QAction("&Both image1 & image2", this);
	color_view->addAction(show_image12);
	show_image2=new QAction("&Image2", this);
	color_view->addAction(show_image2);

	layer_view=view_menu->addMenu("Layer");
	show_multilayer=new QAction("&Multilayer", this);
	layer_view->addAction(show_multilayer);

	alg_menu=menuBar()->addMenu("Algorithm");
	cpu_alg=new QAction("&CPU", this);
	gpu_alg=new QAction("&GPU", this);
	alg_menu->addAction(cpu_alg);
	alg_menu->addAction(gpu_alg);


	show_mask->setCheckable(true);
	hide_mask->setCheckable(true);
	show_halfway->setCheckable(true);
	show_error->setCheckable(true);
	show_image1->setCheckable(true);
	show_image12->setCheckable(true);
	show_image2->setCheckable(true);
	show_multilayer->setCheckable(true);
	cpu_alg->setCheckable(true);
	gpu_alg->setCheckable(true);

	//right menu
	confirm=new QAction("&confirm",this);
	cancel=new QAction("&cancel",this);

	//signal
	connect(new_pro,SIGNAL(triggered()),this,SLOT(NewProject()));
	connect(save_pro,SIGNAL(triggered()),this,SLOT(SaveProject()));
	connect(mod_para,SIGNAL(triggered()),this,SLOT(ModifyPara()));
	connect(mod_mask,SIGNAL(triggered()),this,SLOT(ModifyMask()));
	connect(show_mask,SIGNAL(triggered()),this,SLOT(ShowMask()));
	connect(hide_mask,SIGNAL(triggered()),this,SLOT(HideMask()));
	connect(show_halfway,SIGNAL(triggered()),this,SLOT(ShowHalfway()));
	connect(show_error,SIGNAL(triggered()),this,SLOT(ShowError()));
	connect(show_image1,SIGNAL(triggered()),this,SLOT(ColorFromImage1()));
	connect(show_image12,SIGNAL(triggered()),this,SLOT(ColorFromImage12()));
	connect(show_image2,SIGNAL(triggered()),this,SLOT(ColorFromImage2()));
	connect(confirm,SIGNAL(triggered()),this,SLOT(Confirm()));
	connect(cancel,SIGNAL(triggered()),this,SLOT(Cancel()));
	connect(mod_layer,SIGNAL(triggered()),this,SLOT(ModifyLayer()));
	connect(show_multilayer,SIGNAL(triggered()),this,SLOT(MultyLayer()));
	connect(cpu_alg,SIGNAL(triggered()),this,SLOT(CPU_Alg()));
	connect(gpu_alg,SIGNAL(triggered()),this,SLOT(GPU_Alg()));


 }
Пример #6
0
void wxMaskController::Update(int WXUNUSED(nSelectionStart))
{
	// Update the edit control if it exists. 
	wxString sText = ShowMask();
	SetTextValue(sText);
}