Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  context_control.h   Sprache: C

 

#ifndef __CONTEXT_CONTROL_H__
#define __CONTEXT_CONTROL_H__

#include <wx/aui/auibook.h>
#include "state.h"

#include <memory>

class wxAuiNotebookEx;
class CLocalListView;
class CLocalTreeView;
class CMainFrame;
class CRemoteListView;
class CRemoteTreeView;
class CView;
class CViewHeader;
class CSplitterWindowEx;
class CState;

class CContextControl : public wxSplitterWindow, public CStateEventHandler
{
public:
 struct _context_controls
 {
  // List of all windows and controls assorted with a context
  CView* pLocalTreeViewPanel;
  CView* pLocalListViewPanel;
  CLocalTreeView* pLocalTreeView;
  CLocalListView* pLocalListView;
  CView* pRemoteTreeViewPanel;
  CView* pRemoteListViewPanel;
  CRemoteTreeView* pRemoteTreeView;
  CRemoteListView* pRemoteListView;
  CViewHeader* pLocalViewHeader;
  CViewHeader* pRemoteViewHeader;

  CSplitterWindowEx* pViewSplitter; // Contains local and remote splitters
  CSplitterWindowEx* pLocalSplitter;
  CSplitterWindowEx* pRemoteSplitter;

  CState* pState;

  int tab_index;

  struct _site_bookmarks
  {
   wxString path;
   std::list<wxString> bookmarks;
  };
  std::shared_ptr<_site_bookmarks> site_bookmarks;
 };

 CContextControl(CMainFrame* pMainFrame);
 virtual ~CContextControl();

 void Create(wxWindow* parent);

 void CreateTab();
 bool CloseTab(int tab);

 struct _context_controls* GetCurrentControls();
 struct _context_controls* GetControlsFromState(CState* pState);

 int GetCurrentTab() const;
 int GetTabCount() const;
 struct _context_controls* GetControlsFromTabIndex(int i);

 bool SelectTab(int i);
 void AdvanceTab(bool forward);

protected:

 void CreateContextControls(CState* pState);

 std::vector<struct _context_controls> m_context_controls;
 int m_current_context_controls;

 wxAuiNotebookEx* m_tabs;
 int m_right_clicked_tab;
 CMainFrame* m_pMainFrame;

protected:
 DECLARE_EVENT_TABLE()
 void OnTabRefresh(wxCommandEvent&);
 void OnTabChanged(wxAuiNotebookEvent& event);
 void OnTabClosing(wxAuiNotebookEvent& event);
 void OnTabClosing_Deferred(wxCommandEvent& event);
 void OnTabBgDoubleclick(wxAuiNotebookEvent&);
 void OnTabRightclick(wxAuiNotebookEvent& event);
 void OnTabContextClose(wxCommandEvent& event);
 void OnTabContextCloseOthers(wxCommandEvent& event);
 void OnTabContextNew(wxCommandEvent&);

 virtual void OnStateChange(CState* pState, enum t_statechange_notifications notification, const wxString&, const void*);
};

#endif //__CONTEX_CONTROL_H__

Messung
CHZG
839810093

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,068
#Domains=861,803