本文整理汇总了C++中RefreshView函数的典型用法代码示例。如果您正苦于以下问题:C++ RefreshView函数的具体用法?C++ RefreshView怎么用?C++ RefreshView使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RefreshView函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetFileSystemGridView
bool
CFileSystemDialogImp::OnItemDblClicked( const CEGUI::EventArgs& e )
{GUCE_TRACE;
// Test if this was a left mouse click
const CEGUI::MouseEventArgs& eData = static_cast< const CEGUI::MouseEventArgs& >( e );
if ( eData.button == CEGUI::LeftButton )
{
// Get some easy access to data
CGridViewImp* fsView = static_cast< CGridViewImp* >( GetFileSystemGridView() );
CEGUI::MultiColumnList* fsViewWidget = fsView->GetImplementationWidget();
UInt32 columnIndex = 0;
UInt32 rowIndex = 0;
if ( fsView->TestForItemHit( eData.position.d_x ,
eData.position.d_y ,
columnIndex ,
rowIndex ) )
{
CEGUI::ListboxItem* listItem = fsViewWidget->getItemAtGridReference( CEGUI::MCLGridRef( rowIndex, columnIndex ) );
if ( NULL != listItem )
{
if ( listItem->getText() == ".." )
{
// ".." means go up one dir
m_currentPath = GUCEF::CORE::StripLastSubDir( m_currentPath );
RefreshView();
}
else
if ( IsItemADirectory( listItem->getText().c_str() ) )
{
GUCEF::CORE::AppendToPath( m_currentPath, listItem->getText().c_str() );
RefreshView();
}
else
if ( IsItemAnArchive( listItem->getText().c_str() ) )
{
CString itemName( listItem->getText().c_str() );
CString realName = itemName.CutChars( 3, true );
GUCEF::CORE::AppendToPath( m_currentPath, realName );
RefreshView();
}
}
}
}
return true;
}
示例2: qDebug
void Room_Resv_Edit_Ui::SetActiveReservation( QPointer<Room_Reservation> resv )
{
currentResv = resv;
qDebug() << "QQQ (" << resv << ")";
if ( currentResv->HasCustomer() )
{
SetActiveCustomer( currentResv->GetCustomer() );
}
else
{
currentCustomer = 0;
}
if ( currentResv->HasGuests() )
{
SetActiveGuest( currentResv->GetGuest() );
}
else
{
currentGuest = 0;
}
RefreshView();
}
示例3: dlgTaskPointShowModal
bool
dlgTaskPointShowModal(OrderedTask **task,
const unsigned index)
{
ordered_task = *task;
task_modified = false;
active_index = index;
wf = LoadDialog(CallBackTable, UIGlobals::GetMainWindow(),
Layout::landscape ? _T("IDR_XML_TASKPOINT_L") :
_T("IDR_XML_TASKPOINT"));
assert(wf != nullptr);
wTaskView = (WndFrame*)wf->FindByName(_T("frmTaskView"));
assert(wTaskView != nullptr);
dock = (DockWindow *)wf->FindByName(_T("properties"));
assert(dock != nullptr);
RefreshView();
if (wf->ShowModal() == mrOK)
ReadValues();
delete wf;
if (*task != ordered_task) {
*task = ordered_task;
task_modified = true;
}
if (task_modified) {
ordered_task->ClearName();
ordered_task->UpdateGeometry();
}
return task_modified;
}
示例4: OnListClicked
static void OnListClicked(WndButton &Sender)
{
(void)Sender;
task_modified |= dlgTaskListShowModal(*parent_window, &ordered_task);
if (task_modified)
RefreshView();
}
示例5: GetList
void
TaskListPanel::RenameTask()
{
const unsigned cursor_index = GetList().GetCursorIndex();
if (cursor_index >= task_store->Size())
return;
const TCHAR *oldname = task_store->GetName(cursor_index);
StaticString<40> newname(oldname);
if (ClearSuffix(newname.buffer(), _T(".cup"))) {
ShowMessageBox(_("Can't rename .CUP files"), _("Rename Error"),
MB_ICONEXCLAMATION);
return;
}
ClearSuffix(newname.buffer(), _T(".tsk"));
if (!TextEntryDialog(newname))
return;
newname.append(_T(".tsk"));
TCHAR newpath[MAX_PATH];
LocalPath(newpath, _T("tasks"));
Directory::Create(newpath);
LocalPath(newpath, _T("tasks"), newname.c_str());
File::Rename(task_store->GetPath(cursor_index), newpath);
task_store->Scan(more);
RefreshView();
}
示例6: get_cursor_task
void
TaskListPanel::LoadTask()
{
const OrderedTask* orig = get_cursor_task();
if (orig == nullptr)
return;
StaticString<1024> text;
text.Format(_T("%s\n(%s)"), _("Load the selected task?"),
get_cursor_name());
if (ShowMessageBox(text.c_str(), _("Task Browser"),
MB_YESNO | MB_ICONQUESTION) != IDYES)
return;
// create new task first to guarantee pointers are different
OrderedTask* temptask = orig->Clone(CommonInterface::GetComputerSettings().task);
delete *active_task;
*active_task = temptask;
const unsigned cursor_index = GetList().GetCursorIndex();
(*active_task)->SetName(StaticString<64>(task_store->GetName(cursor_index)));
RefreshView();
*task_modified = true;
dialog.SwitchToEditTab();
}
示例7: CreateList
void
OptionStartsWidget::Prepare(ContainerWindow &parent, const PixelRect &rc)
{
CreateList(parent, UIGlobals::GetDialogLook(),
rc, Layout::GetMaximumControlHeight());
RefreshView();
}
示例8: OnOptionalStartsClicked
/**
* displays dlgTaskOptionalStarts
* @param Sender
*/
static void
OnOptionalStartsClicked(gcc_unused WndButton &Sender)
{
if (dlgTaskOptionalStarts(wf->GetMainWindow(), &ordered_task)) {
task_modified =true;
RefreshView();
}
}
示例9: OnTypeClicked
static void
OnTypeClicked(gcc_unused WndButton &Sender)
{
if (dlgTaskPointType(wf->GetMainWindow(), &ordered_task, active_index)) {
task_modified = true;
RefreshView();
}
}
示例10: RefreshView
inline void
TaskPointWidget::OnNextClicked()
{
if (active_index >= ordered_task.TaskSize() - 1 || !ReadValues())
return;
++active_index;
RefreshView();
}
示例11: RefreshView
void
TaskEditPanel::OnMakeFinish()
{
ordered_task->UpdateStatsGeometry();
if (ordered_task->GetFactory().CheckAddFinish())
ordered_task->UpdateGeometry();
RefreshView();
}
示例12: OnPreviousClicked
static void
OnPreviousClicked()
{
if (active_index == 0 || !ReadValues())
return;
--active_index;
RefreshView();
}
示例13: OnNextClicked
static void
OnNextClicked()
{
if (active_index >= ordered_task->TaskSize() - 1 || !ReadValues())
return;
++active_index;
RefreshView();
}
示例14: OnOptionalStartsClicked
/**
* displays dlgTaskOptionalStarts
* @param Sender
*/
static void
OnOptionalStartsClicked()
{
if (dlgTaskOptionalStarts(&ordered_task)) {
ordered_task->ClearName();
task_modified = true;
RefreshView();
}
}
示例15: SelectBrushInternal
void GUI::SelectBrush()
{
if(palettes.empty())
return;
SelectBrushInternal(palettes.front()->GetSelectedBrush());
RefreshView();
}