Example #1
0
void C4StartupNetDlg::OnSec1Timer()
{
	// no updates if dialog is inactive (e.g., because a join password dlg is shown!)
	if (!IsActive(true))
		return;

	// Execute discovery
	if (!iGameDiscoverInterval--)
	{
		DiscoverClient.StartDiscovery();
		iGameDiscoverInterval = C4NetGameDiscoveryInterval;
	}
	DiscoverClient.Execute(0);

	UpdateList(false);
}
Example #2
0
void CTabPageProgram::OnBnClickedButtonModify()
{
	ADD_LOG();
	if (!m_bUndateList) {
		MessageBox(_T("进程已经运行,请勿修改。或暂停监听"), _T("提示"), MB_OKCANCEL);
		return;
	}
	int n = m_lt_ShowProgram.GetSelectionMark();
	if (n < 0 || n > m_lt_ShowProgram.GetItemCount()) return;
	ConfigData* p_tran = m_pProgress->m_pProcessControl->GetConfigData(n);
	if (p_tran != NULL) {
		CAddExecuteDlg dlg(p_tran, m_pProgress, TRUE);
		dlg.DoModal();
	}
	UpdateList();
}
Example #3
0
BOOL CEntityListDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	UpdateList();

	CRect rct;
	m_lstEntity.GetClientRect(rct);
	m_lstEntity.InsertColumn(0, "Key", LVCFMT_LEFT, rct.Width() / 2);
	m_lstEntity.InsertColumn(1, "Value", LVCFMT_LEFT, rct.Width() / 2);
	m_lstEntity.DeleteColumn(2);
	UpdateData(FALSE);

	return TRUE;  // return TRUE unless you set the focus to a control
				  // EXCEPTION: OCX Property Pages should return FALSE
}
Example #4
0
//---------------------------------------------------------------------------
void __fastcall TFileViewDlg::KDClick(TObject *Sender)
{
	if( (m_CurFile < 0) || (pCurPage->pList == NULL) ) return;

	SetCurrentDirectory(pCurPage->m_Folder.c_str());
	AnsiString as;
	GetCurFileName(as);
	if( YesNoMB( ( Font->Charset != SHIFTJIS_CHARSET )?"Delete '%s'":"'%s'を消去します", as.c_str() ) == IDYES ){
		if( unlink(as.c_str()) ){
			ErrorFWrite(as.c_str());
		}
		else {
			UpdateList();
		}
	}
}
Example #5
0
void ARCodeWidget::OnCodeRemovePressed()
{
  auto items = m_code_list->selectedItems();

  if (items.empty())
    return;

  const auto* selected = items[0];

  m_ar_codes.erase(m_ar_codes.begin() + m_code_list->row(selected));

  SaveCodes();
  UpdateList();

  m_code_remove->setEnabled(false);
}
Example #6
0
void CVICALLBACK clbMenuOpenFile (int menuBar, int menuItem, void *callbackData, int panel)
{
	char		szFilePath[STD_STRING]				=	{0};
	
	SaveFileAs( 1 , 1 ); 
	
	if ( FileSelectPopup ("", "*.icscnf", "*.icscnf", "Load", VAL_LOAD_BUTTON, 0, 1, 1, 1, szFilePath ))
	{
		bSaveChanges = 0;
		
		OpenConfigurationFile( szFilePath );
	
		UpdateList( panel );
		UpdateCurrentItem( panel );
	}
}
Example #7
0
int dlgAirspacePatternsShowModal(void) {

    ItemIndex = -1;

    if (!ScreenLandscape) {
        char filename[MAX_PATH];
        LocalPathS(filename, TEXT("dlgAirspacePatterns_L.xml"));
        wf = dlgLoadFromXML(CallBackTable,

                            filename,
                            hWndMainWindow,
                            TEXT("IDR_XML_AIRSPACEPATTERNS_L"));
    } else {
        char filename[MAX_PATH];
        LocalPathS(filename, TEXT("dlgAirspacePatterns.xml"));
        wf = dlgLoadFromXML(CallBackTable,
                            filename,
                            hWndMainWindow,
                            TEXT("IDR_XML_AIRSPACEPATTERNS"));
    }

    if (!wf) return -1;

    //ASSERT(wf!=NULL);

    wAirspacePatternsList = (WndListFrame*)wf->FindByName(TEXT("frmAirspacePatternsList"));
    //ASSERT(wAirspacePatternsList!=NULL);
    wAirspacePatternsList->SetBorderKind(BORDERLEFT);
    wAirspacePatternsList->SetEnterCallback(OnAirspacePatternsListEnter);

    wAirspacePatternsListEntry = (WndOwnerDrawFrame*)wf->
                                 FindByName(TEXT("frmAirspacePatternsListEntry"));
    //ASSERT(wAirspacePatternsListEntry!=NULL);
    wAirspacePatternsListEntry->SetCanFocus(true);

    UpdateList();

    wf->ShowModal();

    // now retrieve back the properties...

    delete wf;

    wf = NULL;

    return ItemIndex;
}
Example #8
0
static void
OnTimerNotify(gcc_unused WndForm &Sender)
{
    if (direction_filter == 0 && !CommonInterface::Calculated().circling) {
        Angle a = last_heading - CommonInterface::Calculated().heading;
        if (a.AsDelta().AbsoluteDegrees() >= fixed(10)) {
            last_heading = CommonInterface::Calculated().heading;

            UpdateList();

            DataFieldEnum &df = *(DataFieldEnum *)wpDirection->GetDataField();
            TCHAR buffer[64];
            df.replaceEnumText(0, GetHeadingString(buffer));
            wpDirection->RefreshDisplay();
        }
    }
}
Example #9
0
static void OnFilterDistance(DataField *_Sender,
                             DataField::DataAccessMode Mode) {
    DataFieldString *Sender = (DataFieldString *)_Sender;

    switch(Mode) {
    case DataField::daChange:
        distance_filter = (unsigned)Sender->GetAsInteger() != WILDCARD
                          ? fixed(Sender->GetAsInteger())
                          : fixed_minus_one;
        FilterMode(false);
        UpdateList();
        break;

    case DataField::daSpecial:
        return;
    }
}
Example #10
0
inline void
ProfileListWidget::CopyClicked()
{
  assert(GetList().GetCursorIndex() < list.size());

  const auto &item = list[GetList().GetCursorIndex()];
  const TCHAR *old_path = item.path;
  const TCHAR *old_filename = item.name;

  ProfileMap data;
  if (!Profile::LoadFile(data, old_path)) {
    ShowMessageBox(old_filename, _("Failed to load file."),
                   MB_OK|MB_ICONEXCLAMATION);
    return;
  }

  if (!CheckProfilePasswordResult(CheckProfilePassword(data)))
    return;

  StaticString<64> new_name;
  new_name.clear();
  if (!TextEntryDialog(new_name, _("Profile name")))
      return;

  StaticString<80> new_filename;
  new_filename = new_name;
  new_filename += _T(".prf");

  StaticString<MAX_PATH> new_path;
  LocalPath(new_path.buffer(), new_filename);

  if (File::ExistsAny(new_path)) {
    ShowMessageBox(new_name, _("File exists already."),
                   MB_OK|MB_ICONEXCLAMATION);
    return;
  }

  if (!Profile::SaveFile(data, new_path)) {
    ShowMessageBox(new_name, _("Failed to save file."),
                   MB_OK|MB_ICONEXCLAMATION);
    return;
  }

  UpdateList();
  SelectPath(new_path);
}
void CIOCPClientDlg::OnDisconnect()
{
    if(m_iCurrentClientID>0)
    {

        UpdateData(TRUE);
        m_iocp.DisconnectClient(m_iCurrentClientID);
        UpdateList();
        m_iCurrentClientID=0;
        DisableClientPanel();
        // Deselect The selected Item in the other list.
        int SItem=m_CtrlClientList.GetNextItem(-1,LVNI_SELECTED);
        if(SItem!=-1)
            m_CtrlClientList.SetItemState(SItem,LVNI_ALL, LVIF_TEXT | LVIF_IMAGE | LVIF_STATE);
        m_CtrlClientList.SetFocus();
    }
}
Example #12
0
void CFileView::SetMapDoc(CMapEditorDoc* value)
{
	if (_mapDoc != value)
	{
		if (_mapDoc)
		{
			ClearList();
			_mapDoc->UnregObserver(_mapDocEvent);
		}
		_mapDoc = value;
		if (_mapDoc)
		{
			_mapDoc->RegObserver(_mapDocEvent);
			UpdateList();
		}
	}
}
Example #13
0
void
AirspaceFilterListener::OnModified(DataField &df)
{
  if (&df == distance_control->GetDataField())
    dialog_state.distance = (unsigned)df.GetAsInteger() != WILDCARD
      ? Units::ToSysDistance(fixed(df.GetAsInteger()))
      : fixed(-1);

  else if (&df == direction_control->GetDataField())
    dialog_state.direction = df.GetAsInteger();

  else if (&df == type_control->GetDataField())
    dialog_state.type = df.GetAsInteger();

  FilterMode(&df == name_control->GetDataField());
  UpdateList();
}
Example #14
0
void ARCodeWidget::OnCodeAddPressed()
{
  ActionReplay::ARCode ar;
  ar.active = true;

  CheatCodeEditor ed;

  ed.SetARCode(&ar);

  if (ed.exec())
  {
    m_ar_codes.push_back(std::move(ar));

    UpdateList();
    SaveCodes();
  }
}
Example #15
0
GeckoCodeWidget::GeckoCodeWidget(const GameFile& game)
    : m_game(game), m_game_id(game.GetGameID().toStdString()), m_game_revision(game.GetRevision())
{
  CreateWidgets();
  ConnectWidgets();

  IniFile game_ini_local;

  // We don't use LoadLocalGameIni() here because user cheat codes that are installed via the UI
  // will always be stored in GS/${GAMEID}.ini
  game_ini_local.Load(File::GetUserPath(D_GAMESETTINGS_IDX) + m_game_id + ".ini");

  IniFile game_ini_default = SConfig::GetInstance().LoadDefaultGameIni(m_game_id, m_game_revision);
  m_gecko_codes = Gecko::LoadCodes(game_ini_default, game_ini_local);

  UpdateList();
}
Example #16
0
//TODO::Get the enable configuration from ini.
AutoPauseManagerDialog::AutoPauseManagerDialog(wxWindow* parent)
	: wxDialog(parent, wxID_ANY, "Automatic pause settings")
{
	SetMinSize(wxSize(400, 360));

	wxBoxSizer* s_main = new wxBoxSizer(wxVERTICAL);

	wxStaticText* s_description = new wxStaticText(this, wxID_ANY, "To use auto pause: enter the ID(s) of a function or a system call. You must restart your emulated game or application for changed settings to take effect. You can enable/disable this in the settings.", wxDefaultPosition, wxDefaultSize, 0);
	s_description->Wrap(400);
	s_main->Add(s_description, 0, wxALL, 5);

	m_list = new wxListView(this);
	m_list->InsertColumn(0, "Call ID");
	m_list->InsertColumn(1, "Type");

	m_list->Bind(wxEVT_LIST_ITEM_ACTIVATED, &AutoPauseManagerDialog::OnEntryConfig, this);
	m_list->Bind(wxEVT_RIGHT_DOWN, &AutoPauseManagerDialog::OnRightClick, this);

	s_main->Add(m_list, 1, wxALL | wxEXPAND, 5);

	wxBoxSizer* s_action = new wxBoxSizer(wxHORIZONTAL);

	s_action->Add(new wxButton(this, wxID_CLEAR, wxT("Cl&ear"), wxDefaultPosition, wxDefaultSize, 0), 0, wxALL, 5);
	s_action->Add(new wxButton(this, wxID_REFRESH, wxT("&Reload"), wxDefaultPosition, wxDefaultSize, 0), 0, wxALL, 5);
	s_action->Add(new wxButton(this, wxID_SAVE, wxT("&Save"), wxDefaultPosition, wxDefaultSize, 0), 0, wxALL, 5);
	s_action->Add(new wxButton(this, wxID_CANCEL, wxT("&Close"), wxDefaultPosition, wxDefaultSize, 0), 0, wxALL, 5);

	s_main->Add(s_action, 0, wxALL, 5);

	Bind(wxEVT_MENU, &AutoPauseManagerDialog::OnAdd, this, id_add);
	Bind(wxEVT_MENU, &AutoPauseManagerDialog::OnRemove, this, id_remove);
	Bind(wxEVT_MENU, &AutoPauseManagerDialog::OnEntryConfig, this, id_config);

	Bind(wxEVT_BUTTON, &AutoPauseManagerDialog::OnClear, this, wxID_CLEAR);
	Bind(wxEVT_BUTTON, &AutoPauseManagerDialog::OnReload, this, wxID_REFRESH);
	Bind(wxEVT_BUTTON, &AutoPauseManagerDialog::OnSave, this, wxID_SAVE);

	Emu.Stop();

	LoadEntries();
	UpdateList();

	SetSizerAndFit(s_main);
	Layout();
	Centre(wxBOTH);
}
Example #17
0
int dlgTaskSelectListShowModal(void) {

  TaskIndex = -1;

  if (iNO_Tasks == 0) return mrCancel;


  wf = dlgLoadFromXML(TaskCallBackTable, ScreenLandscape ? IDR_XML_MULTISELECTLIST_L : IDR_XML_MULTISELECTLIST_P);

  if (!wf)   return mrCancel;

  wTaskSelectListList = (WndListFrame*) wf->FindByName(TEXT("frmMultiSelectListList"));
  LKASSERT(wTaskSelectListList != NULL);
  wTaskSelectListList->SetBorderKind(BORDERLEFT);
  wTaskSelectListList->SetEnterCallback(OnTaskSelectListListEnter);

  wTaskSelectListListEntry = (WndOwnerDrawFrame*) wf->FindByName(TEXT("frmMultiSelectListListEntry"));
  if(wTaskSelectListListEntry) {
      /*
       * control height must contains 2 text Line
       * Check and update Height if necessary
       */
      LKWindowSurface windowSurface(MainWindow);
      LKBitmapSurface tmpSurface(windowSurface, 1, 1);
      const auto oldFont = tmpSurface.SelectObject(wTaskSelectListListEntry->GetFont());
      const int minHeight = 2 * tmpSurface.GetTextHeight(_T("dp")) + 2 * DLGSCALE(2);
      tmpSurface.SelectObject(oldFont);
      const int wHeight = wTaskSelectListListEntry->GetHeight();
      if(minHeight > wHeight) {
          wTaskSelectListListEntry->SetHeight(minHeight);
      }
      wTaskSelectListListEntry->SetCanFocus(true);
  } else LKASSERT(0);

  UpdateList();

  int result = wf->ShowModal();
  wTaskSelectListList->Redraw();
  delete wf;

  wf = NULL;

  iNO_Tasks = 0;

  return result;
}
Example #18
0
void CUIListWnd::InitListWnd(Fvector2 pos, Fvector2 size, float item_height)
{
	inherited::SetWndPos(pos);
	inherited::SetWndSize(size);

	//добавить полосу прокрутки
	m_ScrollBar = xr_new<CUIScrollBar>(); m_ScrollBar->SetAutoDelete(true);
	AttachChild(m_ScrollBar);

	if (!!m_scrollbar_profile)
		m_ScrollBar->InitScrollBar(Fvector2().set(size.x,0.0f), size.y, false, *m_scrollbar_profile);
	else
		m_ScrollBar->InitScrollBar(Fvector2().set(size.x,0.0f), size.y, false);


	m_ScrollBar->SetWndPos( Fvector2().set(m_ScrollBar->GetWndPos().x - m_ScrollBar->GetWidth(), m_ScrollBar->GetWndPos().y));

	SetItemWidth(size.x - m_ScrollBar->GetWidth());
	
	m_iFirstShownIndex = 0;

	SetItemHeight(item_height);
	m_iRowNum = iFloor(size.y/m_iItemHeight);


	

	

	m_ScrollBar->SetRange(0,0);
	m_ScrollBar->SetPageSize(0);
	m_ScrollBar->SetScrollPos(s16(m_iFirstShownIndex));

	m_ScrollBar->Show(false);
	m_ScrollBar->Enable(false);

/*
	m_StaticActiveBackground.Init(ACTIVE_BACKGROUND,"hud\\default", 0,0,alNone);
	m_StaticActiveBackground.SetTile(iFloor(m_iItemWidth/ACTIVE_BACKGROUND_WIDTH), 
									 iFloor(m_iItemHeight/ACTIVE_BACKGROUND_HEIGHT),
									 fmod(m_iItemWidth,float(ACTIVE_BACKGROUND_WIDTH)), 
									 fmod(m_iItemHeight,float(ACTIVE_BACKGROUND_HEIGHT)));
*/
	UpdateList();
}
Example #19
0
bool ConnectManagerDlg::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
////@begin ConnectManagerDlg creation
    SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create( parent, id, caption, pos, size, style );

    CreateControls();
    if (GetSizer())
    {
        GetSizer()->SetSizeHints(this);
    }
    Centre();
////@end ConnectManagerDlg creation

	UpdateList();

    return true;
}
Example #20
0
static void
OnGPSUpdate(const MoreData &basic)
{
  if (dialog_state.direction == 0 && !CommonInterface::Calculated().circling) {
    const Angle heading = basic.attitude.heading;
    Angle a = last_heading - heading;
    if (a.AsDelta().AbsoluteDegrees() >= fixed(10)) {
      last_heading = heading;

      UpdateList();

      DataFieldEnum &df = *(DataFieldEnum *)direction_control->GetDataField();
      TCHAR buffer[64];
      df.replaceEnumText(0, GetHeadingString(buffer));
      direction_control->RefreshDisplay();
    }
  }
}
Example #21
0
inline void
NOAAListWidget::RemoveClicked()
{
  unsigned index = GetList().GetCursorIndex();
  assert(index < stations.size());

  StaticString<256> tmp;
  tmp.Format(_("Do you want to remove station %s?"),
             stations[index].code.c_str());

  if (ShowMessageBox(tmp, _("Remove"), MB_YESNO) == IDNO)
    return;

  noaa_store->erase(stations[index].iterator);
  noaa_store->SaveToProfile();

  UpdateList();
}
Example #22
0
inline void
WaypointManagerWidget::OnWaypointDeleteClicked(unsigned i)
{
  const Waypoint &wp = *items[i].waypoint;

  if (ShowMessageBox(wp.name.c_str(), _("Delete waypoint?"),
                     MB_YESNO | MB_ICONQUESTION) == IDYES) {
    modified = true;

    {
      ScopeSuspendAllThreads suspend;
      way_points.Erase(wp);
      way_points.Optimise();
    }

    UpdateList();
  }
}
void CDlgFreeTrainList::OnDel() 
{
  if(m_ctlList.GetSelectedCount()!=1)
    return;

  if(::AfxMessageBox("是否删除自由行车?",MB_YESNO)==IDNO)
    return;

  POSITION pos = m_ctlList.GetFirstSelectedItemPosition();
  int item = m_ctlList.GetNextSelectedItem(pos);
  g_FreeTrainManageList.RemoveAt(g_FreeTrainManageList.FindIndex(item));

  g_LastSelected = m_ctlList.GetNextSelectedItem(pos);
	g_LastSelected++;
  UpdateList();
  ::SelectListItem(m_ctlList,g_LastSelected);
	
}
void CFilterSearchDlg::OnBnClickedSetDefaultFilter()
{
	UpdateData( TRUE );

	DWORD sel = m_Filters.GetCurSel();
	if ( m_bDefault )
	{
		if ( sel != CB_ERR )
			m_pResultFilters->m_nDefault = sel;
	}
	else
	{
		m_pResultFilters->m_nDefault = NONE;
	}
	UpdateList();
	m_Filters.SetCurSel( sel );
	m_pResultFilters->Save();
}
Example #25
0
inline void
PlaneListWidget::DeleteClicked()
{
  assert(GetList().GetCursorIndex() < list.size());

  StaticString<256> tmp;
  StaticString<256> tmp_name(list[GetList().GetCursorIndex()].name.c_str());
  if (tmp_name.length() > 4)
    tmp_name.Truncate(tmp_name.length() - 4);

  tmp.Format(_("Delete plane \"%s\"?"),
             tmp_name.c_str());
  if (ShowMessageBox(tmp, _("Delete"), MB_YESNO) != IDYES)
    return;

  File::Delete(list[GetList().GetCursorIndex()].path);
  UpdateList();
}
Example #26
0
/*
 * Constructor
 */
CCommentDialogLst::CCommentDialogLst(wxWindow*parent, CPartFile* file)
:
wxDialog(parent, -1, wxString(_("File Comments")),
	wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER),
m_file(file)
{
	wxSizer* content = commentLstDlg(this, true);
	content->Show(this, true);

	m_list = CastChild(IDC_LST, CMuleListCtrl);
	m_list->InsertColumn(0, _("Username"), wxLIST_FORMAT_LEFT, 130);
	m_list->InsertColumn(1, _("File Name"), wxLIST_FORMAT_LEFT, 130);
	m_list->InsertColumn(2, _("Rating"), wxLIST_FORMAT_LEFT, 80);
	m_list->InsertColumn(3, _("Comment"), wxLIST_FORMAT_LEFT, 340);
	m_list->SetSortFunc(SortProc);

	UpdateList();
}
Example #27
0
void VHDDExplorer::OnDropFiles(wxDropFilesEvent& event)
{
	int count = event.GetNumberOfFiles();
	wxString* dropped = event.GetFiles();

	wxBusyCursor busyCursor;
	wxWindowDisabler disabler;
	wxBusyInfo busyInfo("Adding files, wait please...");


	for(int i=0; i<count; ++i)
	{
		LOG_NOTICE(HLE, "Importing '%s'", dropped[i].wx_str());
		Import(fmt::ToUTF8(dropped[i]), fmt::ToUTF8(wxFileName(dropped[i]).GetFullName()));
	}

	UpdateList();
}
Example #28
0
void
dlgAirspaceSelect(const Airspaces &airspace_database,
                  ProtectedAirspaceWarningManager *_airspace_warnings)
{
    airspace_warnings = _airspace_warnings;

    PrepareAirspaceSelectDialog();

    GeoPoint Location = XCSoarInterface::Basic().location;
    AirspaceSorter g_airspace_sorter(airspace_database, Location,
                                     Units::ToUserDistance(fixed_one));
    airspace_sorter = &g_airspace_sorter;

    UpdateList();

    wf->ShowModal();
    delete wf;
}
Example #29
0
void CUIListWnd::Init(float x, float y, float width, float height, float item_height)
{
	CUIWindow::Init(x, y, width, height);

	//добавить полосу прокрутки
	m_ScrollBar = xr_new<CUIScrollBar>(); m_ScrollBar->SetAutoDelete(true);
	AttachChild(m_ScrollBar);

	if (!!m_scrollbar_profile)
		m_ScrollBar->Init(width,0,height, false, *m_scrollbar_profile);
	else
		m_ScrollBar->Init(width,0,height, false);


	m_ScrollBar->SetWndPos(m_ScrollBar->GetWndPos().x - m_ScrollBar->GetWidth(), m_ScrollBar->GetWndPos().y);

	SetItemWidth(width - m_ScrollBar->GetWidth());
	
	m_iFirstShownIndex = 0;

	SetItemHeight(item_height);
	m_iRowNum = iFloor(height/m_iItemHeight);


	

	

	m_ScrollBar->SetRange(0,0);
	m_ScrollBar->SetPageSize(s16(0));
	m_ScrollBar->SetScrollPos(s16(m_iFirstShownIndex));

	m_ScrollBar->Show(false);
	m_ScrollBar->Enable(false);

/*
	m_StaticActiveBackground.Init(ACTIVE_BACKGROUND,"hud\\default", 0,0,alNone);
	m_StaticActiveBackground.SetTile(iFloor(m_iItemWidth/ACTIVE_BACKGROUND_WIDTH), 
									 iFloor(m_iItemHeight/ACTIVE_BACKGROUND_HEIGHT),
									 fmod(m_iItemWidth,float(ACTIVE_BACKGROUND_WIDTH)), 
									 fmod(m_iItemHeight,float(ACTIVE_BACKGROUND_HEIGHT)));
*/
	UpdateList();
}
void CASW_Hud_Squad_Hotbar::OnThink()
{
	BaseClass::OnThink();

	UpdateList();

	for ( int i = 0; i < m_pEntries.Count(); i++ )
	{
		if ( m_pEntries[ i ]->IsCursorOver() )
		{
			// make sure tooltip is created and parented correctly
			if ( !g_hBriefingTooltip.Get() )
			{
				g_hBriefingTooltip = new BriefingTooltip( GetParent(), "SquadInventoryTooltip" );
				g_hBriefingTooltip->SetScheme( vgui::scheme()->LoadSchemeFromFile("resource/SwarmSchemeNew.res", "SwarmSchemeNew") );
			}
			else if ( g_hBriefingTooltip->GetParent() != GetParent() )
			{
				g_hBriefingTooltip->SetParent( GetParent() );
			}

			m_pEntries[ i ]->ShowTooltip();
			break;
		}
	}

	/*
	// loops through to see if we have effects that are flagged to die after a certain time
	for ( HotbarOrderEffectsList_t::IndexLocalType_t i = m_hHotbarOrderEffects.Head() ;
		m_hHotbarOrderEffects.IsValidIndex(i) ;
		i = m_hHotbarOrderEffects.Next(i) )
	{
		if ( m_hHotbarOrderEffects[i].flRemoveAtTime > 0 && m_hHotbarOrderEffects[i].flRemoveAtTime < gpGlobals->curtime )
		{
			int iMarine = m_hHotbarOrderEffects[i].iEffectID;	
			C_ASW_Marine *pMarine = dynamic_cast<C_ASW_Marine*>(ClientEntityList().GetEnt(iMarine));		// turn iMarine ent index into the marine
			if ( !pMarine )
				return;

			StopItemFX( pMarine, -1 );
		}
	}
	*/
}