当前位置: 首页>>代码示例>>C++>>正文


C++ RefreshView函数代码示例

本文整理汇总了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;
}
开发者ID:LiberatorUSA,项目名称:GUCE,代码行数:48,代码来源:guceCEGUIOgre_CFileSystemDialogImp.cpp

示例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();
}
开发者ID:shunms,项目名称:hms,代码行数:27,代码来源:room_resv_edit_ui.cpp

示例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;
}
开发者ID:DRIZO,项目名称:xcsoar,代码行数:35,代码来源:TaskPointDialog.cpp

示例4: OnListClicked

static void OnListClicked(WndButton &Sender)
{
  (void)Sender;
  task_modified |= dlgTaskListShowModal(*parent_window, &ordered_task);
  if (task_modified)
    RefreshView();
}
开发者ID:galippi,项目名称:xcsoar,代码行数:7,代码来源:dlgTaskManager.cpp

示例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();
}
开发者ID:henrik1g,项目名称:XCSoar,代码行数:33,代码来源:TaskListPanel.cpp

示例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();
}
开发者ID:kwtskran,项目名称:XCSoar,代码行数:28,代码来源:TaskListPanel.cpp

示例7: CreateList

void
OptionStartsWidget::Prepare(ContainerWindow &parent, const PixelRect &rc)
{
  CreateList(parent, UIGlobals::GetDialogLook(),
             rc, Layout::GetMaximumControlHeight());

  RefreshView();
}
开发者ID:CnZoom,项目名称:XcSoarPull,代码行数:8,代码来源:OptionalStartsDialog.cpp

示例8: OnOptionalStartsClicked

/**
 * displays dlgTaskOptionalStarts
 * @param Sender
 */
static void
OnOptionalStartsClicked(gcc_unused WndButton &Sender)
{
  if (dlgTaskOptionalStarts(wf->GetMainWindow(), &ordered_task)) {
    task_modified =true;
    RefreshView();
  }
}
开发者ID:joachimwieland,项目名称:xcsoar-jwieland,代码行数:12,代码来源:dlgTaskPoint.cpp

示例9: OnTypeClicked

static void
OnTypeClicked(gcc_unused WndButton &Sender)
{
  if (dlgTaskPointType(wf->GetMainWindow(), &ordered_task, active_index)) {
    task_modified = true;
    RefreshView();
  }
}
开发者ID:joachimwieland,项目名称:xcsoar-jwieland,代码行数:8,代码来源:dlgTaskPoint.cpp

示例10: RefreshView

inline void
TaskPointWidget::OnNextClicked()
{
  if (active_index >= ordered_task.TaskSize() - 1 || !ReadValues())
    return;

  ++active_index;
  RefreshView();
}
开发者ID:kwtskran,项目名称:XCSoar,代码行数:9,代码来源:TaskPointDialog.cpp

示例11: RefreshView

void
TaskEditPanel::OnMakeFinish()
{
  ordered_task->UpdateStatsGeometry();
  if (ordered_task->GetFactory().CheckAddFinish())
    ordered_task->UpdateGeometry();

  RefreshView();
}
开发者ID:Andy-1954,项目名称:XCSoar,代码行数:9,代码来源:TaskEditPanel.cpp

示例12: OnPreviousClicked

static void
OnPreviousClicked()
{
  if (active_index == 0 || !ReadValues())
    return;

  --active_index;
  RefreshView();
}
开发者ID:DRIZO,项目名称:xcsoar,代码行数:9,代码来源:TaskPointDialog.cpp

示例13: OnNextClicked

static void
OnNextClicked()
{
  if (active_index >= ordered_task->TaskSize() - 1 || !ReadValues())
    return;

  ++active_index;
  RefreshView();
}
开发者ID:DRIZO,项目名称:xcsoar,代码行数:9,代码来源:TaskPointDialog.cpp

示例14: OnOptionalStartsClicked

/**
 * displays dlgTaskOptionalStarts
 * @param Sender
 */
static void
OnOptionalStartsClicked()
{
  if (dlgTaskOptionalStarts(&ordered_task)) {
    ordered_task->ClearName();
    task_modified = true;
    RefreshView();
  }
}
开发者ID:DRIZO,项目名称:xcsoar,代码行数:13,代码来源:TaskPointDialog.cpp

示例15: SelectBrushInternal

void GUI::SelectBrush()
{
	if(palettes.empty())
		return;

	SelectBrushInternal(palettes.front()->GetSelectedBrush());

	RefreshView();
}
开发者ID:HeavenIsLost,项目名称:rme,代码行数:9,代码来源:gui.cpp


注:本文中的RefreshView函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。