Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (33 sloc) 0.984 kb
#ifndef __CURRENTTABSPOPUP_H__
#define __CURRENTTABSPOPUP_H__
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <vector>
class wxListCtrlEx;
class wxListEvent;
struct OpenTabInfo {
OpenTabInfo(const wxString& _filename, const wxString& _path): filename(_filename), path(_path) {};
wxString filename;
wxString path;
};
class CurrentTabsPopup: public wxDialog {
public:
CurrentTabsPopup(wxWindow* parent, const std::vector<OpenTabInfo*>& tabInfo, int currrentTab=-1);
~CurrentTabsPopup();
int GetSelectedTabIndex() const;
bool WrapToNextItem(bool full_service=false);
bool WrapToPrevItem(bool full_service=false);
void SelectRow(int row);
private:
int GetSelectedRow() const;
DECLARE_EVENT_TABLE();
void OnShow(wxShowEvent& event);
void OnMouseLeftDown(wxMouseEvent& event);
void OnMouseCaptureLost(wxMouseCaptureLostEvent& event);
void OnItemActivated(wxListEvent& event);
wxListCtrlEx* m_list;
int m_selectedTabIndex;
};
#endif
Jump to Line
Something went wrong with that request. Please try again.