MagicSmoke  $VERSION$
MEventsTab Class Reference

Main Overview Window: Event List Tab. More...

#include <eventstab.h>

Inheritance diagram for MEventsTab:

Public Slots

int currentEventId () const
 returns the currently selected event (as ID) or -1 if none is selected More...
 
QString currentEventStart () const
 returns the currently selected event start time as string More...
 
QString currentEventTitle () const
 returns the currently selected event title More...
 
void selectEventId (int &eid, bool &ok) const
 shows an event selection dialog and returns the selected event More...
 
void selectEventIds (QList< int > &eids, bool multi=true) const
 shows an event selection dialog and returns the selected event More...
 
void updateDetails ()
 update details view when selection changes More...
 
void updateEvents ()
 update list of events More...
 

Signals

void eventOrderTicket ()
 order ticket from event tab More...
 
void eventOrderTicket (qint64, qint64)
 order ticket from event tab More...
 

Public Member Functions

 MEventsTab (QString)
 construct the tab with QSettings-key for current profile More...
 
 ~MEventsTab ()
 destruct events list tab More...
 
QList< QMenu * > menu ()
 create menu for this tab More...
 

Detailed Description

Main Overview Window: Event List Tab.

Constructor & Destructor Documentation

MEventsTab::MEventsTab ( QString  pk)

construct the tab with QSettings-key for current profile

References eventOrderTicket(), req, updateDetails(), and updateEvents().

MEventsTab::~MEventsTab ( )

destruct events list tab

Member Function Documentation

int MEventsTab::currentEventId ( ) const
slot

returns the currently selected event (as ID) or -1 if none is selected

QString MEventsTab::currentEventStart ( ) const
slot

returns the currently selected event start time as string

QString MEventsTab::currentEventTitle ( ) const
slot

returns the currently selected event title

void MEventsTab::eventOrderTicket ( )
signal

order ticket from event tab

Referenced by MEventsTab().

void MEventsTab::eventOrderTicket ( qint64  ,
qint64   
)
signal

order ticket from event tab

QList< QMenu * > MEventsTab::menu ( )

create menu for this tab

References req, MInterface::RGetEventSummary, and updateEvents().

Referenced by MOverview::MOverview().

void MEventsTab::selectEventId ( int &  eid,
bool &  ok 
) const
slot

shows an event selection dialog and returns the selected event

Parameters
eidthe ID of the selected event, if the dialog was normally closed
oktrue if the dialog was closed normally, false if the user aborted

References selectEventIds().

void MEventsTab::selectEventIds ( QList< int > &  eids,
bool  multi = true 
) const
slot

shows an event selection dialog and returns the selected event

Parameters
eidsthe list of IDs of the selected events, empty if nothing was selected or the user aborted
multitrue if multiple IDs can be selected, false if only one can be selec ted

Referenced by selectEventId().

void MEventsTab::updateDetails ( )
slot

update details view when selection changes

References MEventView::clearEvent(), and MEventView::setEvent().

Referenced by MEventsTab().

void MEventsTab::updateEvents ( )
slot

update list of events

References MTGetAllEvents::getevents(), and req.

Referenced by menu(), MEventsTab(), and MOverview::refreshData().


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