MainWindow Class Reference
+ Inheritance diagram for MainWindow:

Public Slots

void runGame (const ServerPtr &)
 

Public Member Functions

 MainWindow (QApplication *application, int argc, char **argv)
 
DockBuddiesListbuddiesList ()
 
void initAutoRefreshTimer ()
 
void notifyFirstRun ()
 
void setDisplayUpdateInstallerError (int errorCode)
 If set then MainWindow will display the reason for updater failure. More...
 
void setDisplayUpdaterProcessFailure (int errorCode)
 This should be set if program was started with "--update-failed" argument. More...
 
void setQueryMasterServerEnabled (MasterClient *pClient, bool bEnabled)
 Sets query for selected MasterClient object to enabled or disabled. More...
 
void stopAutoRefreshTimer ()
 
void updateMasterAddresses ()
 

Protected Slots

void abortAutoUpdater ()
 
void autoRefreshTimer_timeout ()
 
void blockRefreshButtons ()
 
void checkForUpdatesAuto ()
 Auto triggered updates will display install confirmation only if configured to. More...
 
void checkForUpdatesUserTriggered ()
 User triggered updates will always display install confirmation. More...
 
void confirmUpdateInstallation ()
 
void discardUpdates ()
 
void findMissingWADs (const ServerPtr &)
 
void finishedQueryingMaster (MasterClient *master)
 
void getServers ()
 
void masterManagerMessages (MasterClient *pSender, const QString &title, const QString &content, bool isError)
 
void masterManagerMessagesImportant (MasterClient *pSender, const Message &objMessage)
 
void menuBuddies ()
 
void menuCreateServer ()
 
void menuHelpAbout ()
 
void menuHelpHelp ()
 
void menuIRCOptions ()
 
void menuLog ()
 
void menuManageDemos ()
 
void menuOptionsConfigure ()
 
void menuRecordDemo ()
 
void menuUpdateIP2C ()
 
void menuViewIRC ()
 
void menuWadSeeker ()
 
void onAutoUpdaterDownloadAndInstallConfirmationRequest ()
 
void onAutoUpdaterFileProgress (qint64 bytesReceived, qint64 bytesTotal)
 
void onAutoUpdaterFinish ()
 
void onAutoUpdaterOverallProgress (int current, int total, const QString &msg)
 
void postInitAppStartup ()
 
void quitProgram ()
 
void refreshThreadBeginsWork ()
 
void refreshThreadEndsWork ()
 
void restartAndInstallUpdatesNow ()
 
void serverAddedToList (const ServerPtr &)
 
void showServerJoinCommandLine (const ServerPtr &)
 
void showUpdateInstallErrorDialog ()
 
void showUpdaterProcessErrorDialog ()
 
void toggleMasterClientEnabled (MasterClient *pClient)
 Toggles specified MasterClient object enabled or disabled. More...
 
void toolBarAction (QAction *pAction)
 
void trayIcon_activated (QSystemTrayIcon::ActivationReason reason)
 
void updateServerFilter (const ServerListFilterInfo &filterInfo)
 

Protected Member Functions

void changeEvent (QEvent *event)
 
void checkForUpdates (bool bUserTriggered)
 
void closeEvent (QCloseEvent *event)
 
void connectEntities ()
 
void fillQueryMenu (MasterManager *masterManager)
 
void finishConfiguration (DoomseekerConfigurationDialog &, bool)
 
bool hasCustomServers () const
 
void initAutoUpdaterWidgets ()
 
void initIP2CUpdater ()
 
void initIRCDock ()
 
void initLogDock ()
 
void initMainDock ()
 
void initServerDetailsDock ()
 
void initServerFilterDock ()
 
void initTrayIcon ()
 
bool isAnyMasterEnabled () const
 
bool isAnythingToRefresh () const
 Will check if refresh operation has any sense. More...
 
QProgressBar * mkStdProgressBarForStatusBar ()
 
QQueryMenuAction * queryMenuActionForMasterClient (MasterClient *pClient)
 
void refreshCustomServers ()
 
void setupIcons ()
 
void setupToolBar ()
 
void updateTrayIconTooltipAndLogTotalRefresh ()
 

Static Protected Attributes

static const QString HELP_SITE_URL = "http://doomseeker.drdteam.org/help"
 

Friends

class DoomseekerConfigurationDialog
 

Detailed Description

Definition at line 43 of file mainwindow.h.

Member Function Documentation

void MainWindow::checkForUpdatesAuto ( )
protectedslot

Auto triggered updates will display install confirmation only if configured to.

Definition at line 453 of file mainwindow.cpp.

void MainWindow::checkForUpdatesUserTriggered ( )
protectedslot

User triggered updates will always display install confirmation.

Definition at line 459 of file mainwindow.cpp.

void MainWindow::connectEntities ( )
protected

Connects signals from objects and controls of the main window to their slots.

Definition at line 510 of file mainwindow.cpp.

void MainWindow::fillQueryMenu ( MasterManager masterManager)
protected

Fills query menu with engines that have master server.

Parameters
masterManager- instantiated MainWindow::masterManager is passed here. Since this method is called from the constructor it's important to pay attention to not call it before masterManager is instantiated. In other words: this argument exists solely to avoid "random" crashes.

Definition at line 547 of file mainwindow.cpp.

void MainWindow::finishConfiguration ( DoomseekerConfigurationDialog configDialog,
bool  lookupHostsChanged 
)
protected

Called by the configuration dialog to sync config changes.

Definition at line 628 of file mainwindow.cpp.

void MainWindow::initAutoRefreshTimer ( )

This will either enable or disable the auto refresh timer depending on the settings. This method also takes care of every checks. It will make sure the delay between the refreshes is inside gives boundaries (30 - 3600 seconds).

Definition at line 734 of file mainwindow.cpp.

void MainWindow::initTrayIcon ( )
protected

Checks whether the program will use the tray icon and deletes or instantiates a QSystemTrayIcon object.

Definition at line 881 of file mainwindow.cpp.

bool MainWindow::isAnythingToRefresh ( ) const
protected

Will check if refresh operation has any sense.

Returns
True if there is anything to refresh (be it master or even a single custom server). False if pressing "Get Servers" button will produce no results whatsoever.

Definition at line 952 of file mainwindow.cpp.

void MainWindow::setDisplayUpdateInstallerError ( int  errorCode)

If set then MainWindow will display the reason for updater failure.

Display is done in a way that allows the full initialization process to complete first before displaying the actual window.

NOTE: This is different than setDisplayUpdaterProcessFailure() and mutually exclusive.

Definition at line 1315 of file mainwindow.cpp.

void MainWindow::setDisplayUpdaterProcessFailure ( int  errorCode)

This should be set if program was started with "--update-failed" argument.

Display is done in a way that allows the full initialization process to complete first before displaying the actual window.

NOTE: This is different than setDisplayUpdateInstallerError() and mutually exclusive.

Definition at line 1307 of file mainwindow.cpp.

void MainWindow::setQueryMasterServerEnabled ( MasterClient pClient,
bool  bEnabled 
)

Sets query for selected MasterClient object to enabled or disabled.

Definition at line 1285 of file mainwindow.cpp.

void MainWindow::toggleMasterClientEnabled ( MasterClient pClient)
protectedslot

Toggles specified MasterClient object enabled or disabled.

This affects the query menu, servers status widgets and the master client itself.

Definition at line 1463 of file mainwindow.cpp.

void MainWindow::updateTrayIconTooltipAndLogTotalRefresh ( )
protected

Functionality and name of this function might not be perfect but it saves some copy&pasting in the end. The end justifies the means.

Definition at line 1516 of file mainwindow.cpp.


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