Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Filezilla/src/interface/     Datei vom 7.0.2015 mit Größe 1 kB image not shown  

Quelle  StatusView.h   Sprache: C

 

#ifndef __STATUSVIEW_H__
#define __STATUSVIEW_H__

#ifdef __WXMSW__
#include "richedit.h"
#endif

class CFastTextCtrl;
class CStatusView : public wxNavigationEnabled<wxWindow>
{
public:
 CStatusView(wxWindow* parent, wxWindowID id);
 virtual ~CStatusView();

 void AddToLog(CLogmsgNotification const& pNotification);
 void AddToLog(MessageType messagetype, const wxString& message, const wxDateTime&&nbsp;time);

 void InitDefAttr();

 virtual void SetFocus();

 virtual bool Show(bool show = true);

protected:

 int m_nLineCount{};
 wxString m_Content;
 CFastTextCtrl *m_pTextCtrl{};

 DECLARE_EVENT_TABLE()
 void OnSize(wxSizeEvent &);
 void OnContextMenu(wxContextMenuEvent&);
 void OnClear(wxCommandEvent& );
 void OnCopy(wxCommandEvent& );
 void OnTimer(wxTimerEvent&);

 std::list<int> m_lineLengths;
 std::list<int> m_unusedLineLengths;

 struct t_attributeCache
 {
  wxString prefix;
  int len;
  wxTextAttr attr;
#ifdef __WXMSW__
  CHARFORMAT2 cf;
#endif
 } m_attributeCache[static_cast<int>(MessageType::count)];

 bool m_rtl{};

 bool m_shown{};

 // Don't update actual log window if not shown,
 // do it later when showing the window.
 struct t_line
 {
  MessageType messagetype;
  wxString message;
  wxDateTime time;
 };
 std::list<t_line> m_hiddenLines;

 bool m_showTimestamps{};
 wxDateTime m_lastTime;
 wxString m_lastTimeString;
};

#endif


Messung
CHZG
829810093

¤ Dauer der Verarbeitung: 0.7 Sekunden  ¤

*© Formatika GbR, Deutschland