Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Protected Slots | Private Member Functions | Private Attributes
LOGWINDOW_EXPORT Protocol Reference

#include <LogWindow.h>

Inheritance diagram for LOGWINDOW_EXPORT:
Inheritance graph
[legend]
Collaboration diagram for LOGWINDOW_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  CopyId = 0x01, ClearId = 0x02, SelectAllId = 0x04, SaveToFileId = 0x08,
  All = CopyId | ClearId | SelectAllId | SaveToFileId
}
 Context popup menu actions flags. More...
enum  {
  DisplayNormal = 0x00, DisplayDate = 0x01, DisplayTime = 0x02, DisplaySeparator = 0x04,
  DisplayNoColor = 0x08, DisplayDateTime = DisplayDate | DisplayTime
}
 Display messages flags. More...

Public Member Functions

 LogWindow (QWidget *theParent)
virtual ~LogWindow ()
virtual QString popupClientType () const
virtual void contextMenuPopup (QMenu *)
virtual bool eventFilter (QObject *, QEvent *)
QString banner () const
QString separator () const
void setBanner (const QString &)
void setSeparator (const QString &)
void putMessage (const QString &, const int=DisplayNormal)
virtual void putMessage (const QString &, const QColor &, const int=DisplayNormal)
void clear (const bool=false)
bool saveLog (const QString &)
void setMenuActions (const int)
int menuActions () const

Protected Slots

void onSaveToFile ()
void onSelectAll ()
void onClear ()
void onCopy ()

Private Member Functions

void createActions ()
void updateActions ()

Private Attributes

QTextEdit * myView
 internal view window
QString myBanner
 current banner
QStringList myHistory
 messages history
QString mySeparator
 current separator
int myBannerSize
 current banner's size
QMap< int, QAction * > myActions
 popup menu actions

Detailed Description

Definition at line 53 of file LogWindow.h.


Member Enumeration Documentation

anonymous enum

Display messages flags.

Enumerator:
DisplayNormal 

do not display extra data

DisplayDate 

display message date

DisplayTime 

display message time

DisplaySeparator 

display separator between messages

DisplayNoColor 

display non-colored message

DisplayDateTime 

display date & time

Definition at line 69 of file LogWindow.h.

anonymous enum

Context popup menu actions flags.

Enumerator:
CopyId 

"Copy" menu action

ClearId 

"Clear" menu action

SelectAllId 

"Select All" menu action

SaveToFileId 

"Save To File" menu action

All 

all menu actions

Definition at line 59 of file LogWindow.h.

  {
    CopyId       = 0x01,                                
    ClearId      = 0x02,                                
    SelectAllId  = 0x04,                                
    SaveToFileId = 0x08,                                
    All = CopyId | ClearId | SelectAllId | SaveToFileId 
  };

Constructor & Destructor Documentation

virtual LOGWINDOW_EXPORT::~LogWindow ( ) [virtual]

Member Function Documentation

QString LOGWINDOW_EXPORT::banner ( ) const
void LOGWINDOW_EXPORT::clear ( const bool  = false)
virtual void LOGWINDOW_EXPORT::contextMenuPopup ( QMenu *  ) [virtual]
virtual bool LOGWINDOW_EXPORT::eventFilter ( QObject ,
QEvent *   
) [virtual]
LOGWINDOW_EXPORT::LogWindow ( QWidget *  theParent)
void LOGWINDOW_EXPORT::onClear ( ) [protected, slot]
void LOGWINDOW_EXPORT::onCopy ( ) [protected, slot]
void LOGWINDOW_EXPORT::onSaveToFile ( ) [protected, slot]
void LOGWINDOW_EXPORT::onSelectAll ( ) [protected, slot]
virtual QString LOGWINDOW_EXPORT::popupClientType ( ) const [inline, virtual]

Definition at line 83 of file LogWindow.h.

{ return QString( "LogWindow" ); }
void LOGWINDOW_EXPORT::putMessage ( const QString &  ,
const int  = DisplayNormal 
)
virtual void LOGWINDOW_EXPORT::putMessage ( const QString &  ,
const QColor &  ,
const int  = DisplayNormal 
) [virtual]
bool LOGWINDOW_EXPORT::saveLog ( const QString &  )
QString LOGWINDOW_EXPORT::separator ( ) const
void LOGWINDOW_EXPORT::setBanner ( const QString &  )
void LOGWINDOW_EXPORT::setSeparator ( const QString &  )

Member Data Documentation

QMap<int, QAction*> LOGWINDOW_EXPORT::myActions [private]

popup menu actions

Definition at line 119 of file LogWindow.h.

QString LOGWINDOW_EXPORT::myBanner [private]

current banner

Definition at line 115 of file LogWindow.h.

current banner's size

Definition at line 118 of file LogWindow.h.

QStringList LOGWINDOW_EXPORT::myHistory [private]

messages history

Definition at line 116 of file LogWindow.h.

QString LOGWINDOW_EXPORT::mySeparator [private]

current separator

Definition at line 117 of file LogWindow.h.

QTextEdit* LOGWINDOW_EXPORT::myView [private]

internal view window

Definition at line 114 of file LogWindow.h.


The documentation for this protocol was generated from the following file: