Finally sanitizificat0red the mess and #ifdef hell with main.cpp, Global:: and friends
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 18 Sep 2008 22:26:04 +0000 (00:26 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 18 Sep 2008 22:39:19 +0000 (00:39 +0200)
commit5c6804f291a63f978e328aeddcc8448e3443b45e
tree1c62989cd6c0781fe223856242937fa3b5831cb9
parent85b55cf023c96f4dbd61ec415a15214f99e281b3
Finally sanitizificat0red the mess and #ifdef hell with main.cpp, Global:: and friends

This replaces #ifdefs mostly by OO stuff, i.e. we now have a class hierarchy in place
for initializing the application. Also, namespace Global:: is gone[1]; most of its functionality
is part of the new Quassel object now which encapsulates common app stuff.

You should clean (rm -rf) your build dir, as these changes are quite invasive.

[1] Some remnants are still there until I get around to redesigning genversion, and actually
    fill Quassel::buildInfo() with data.
35 files changed:
CMakeLists.txt
src/client/buffermodel.cpp
src/client/client.cpp
src/client/clientsettings.cpp
src/client/clientsyncer.cpp
src/client/treemodel.cpp
src/common/CMakeLists.txt
src/common/cliparser.cpp
src/common/cliparser.h
src/common/global.cpp [deleted file]
src/common/logger.cpp
src/common/main.cpp
src/common/quassel.cpp [new file with mode: 0644]
src/common/quassel.h [new file with mode: 0644]
src/common/util.cpp
src/core/CMakeLists.txt
src/core/core.cpp
src/core/core.h
src/core/coreapplication.cpp [new file with mode: 0644]
src/core/coreapplication.h [moved from src/common/global.h with 52% similarity]
src/core/corecoreinfo.cpp
src/core/coresettings.cpp
src/core/coresettings.h
src/core/ctcphandler.cpp
src/qtui/CMakeLists.txt
src/qtui/aboutdlg.cpp
src/qtui/bufferwidget.cpp
src/qtui/mainwin.cpp
src/qtui/monoapplication.cpp [new file with mode: 0644]
src/qtui/monoapplication.h [new file with mode: 0644]
src/qtui/qtuiapplication.cpp
src/qtui/qtuiapplication.h
src/qtui/settingspages/networkssettingspage.cpp
src/uisupport/bufferview.cpp
src/uisupport/uistyle.cpp