MNE-CPP  beta 1.0
Public Member Functions | Protected Slots | List of all members
MNEBrowseRawQt::EventWindow Class Reference

The EventWindow class provides the event dock window. More...

#include <eventwindow.h>

Inheritance diagram for MNEBrowseRawQt::EventWindow:

Public Member Functions

 EventWindow (QWidget *parent=0)
 
 ~EventWindow ()
 
void init ()
 
QTableView * getEventTableView ()
 
EventModelgetEventModel ()
 
EventDelegategetEventDelegate ()
 

Protected Slots

void jumpToEvent (const QModelIndex &current, const QModelIndex &previous)
 
void removeEventfromEventModel ()
 
void addEventToEventModel ()
 
void addNewEventType ()
 

Detailed Description

The EventWindow class provides the event dock window.

DECLARE CLASS EventWindow

Definition at line 80 of file eventwindow.h.

Constructor & Destructor Documentation

EventWindow::EventWindow ( QWidget *  parent = 0)

Constructs a EventWindow dialog which is a child of parent.

Parameters
[in]parentpointer to parent widget; If parent is 0, the new EventWindow becomes a window. If parent is another widget, EventWindow becomes a child window inside parent. EventWindow is deleted when its parent is deleted.

Definition at line 58 of file eventwindow.cpp.

EventWindow::~EventWindow ( )

Destroys the EventWindow. All EventWindow's children are deleted first. The application exits if EventWindow is the main widget.

Definition at line 81 of file eventwindow.cpp.

Member Function Documentation

void EventWindow::addEventToEventModel ( )
protectedslot

Adds an event to the event model and its QTableView

Definition at line 301 of file eventwindow.cpp.

void EventWindow::addNewEventType ( )
protectedslot

call this function whenever a new event type is to be added

Definition at line 309 of file eventwindow.cpp.

EventDelegate * EventWindow::getEventDelegate ( )

Returns the EventModel of this window

Definition at line 117 of file eventwindow.cpp.

EventModel * EventWindow::getEventModel ( )

Returns the EventModel of this window

Definition at line 109 of file eventwindow.cpp.

QTableView * EventWindow::getEventTableView ( )

Returns the QTableView of this window.

Definition at line 101 of file eventwindow.cpp.

void EventWindow::init ( )

Initialises this window.

Definition at line 89 of file eventwindow.cpp.

void EventWindow::jumpToEvent ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedslot

jumpToEvent jumps to a event specified in the event table view

Parameters
[in]currentmodel item focused in the view
[in]previousmodel item focused in the view

Definition at line 260 of file eventwindow.cpp.

void EventWindow::removeEventfromEventModel ( )
protectedslot

jumpToEvent jumps to a event specified in the event table view

Definition at line 290 of file eventwindow.cpp.


The documentation for this class was generated from the following files: