Renamed the launcher executable and icons, added .desktop file and default config, modified/updated some other files

actorid
Pieter van der Kloet 14 years ago
parent 8b58e53be9
commit 118765a274

@ -45,7 +45,7 @@ QT4_WRAP_CPP(MOC_SRCS ${LAUNCHER_HEADER_MOC})
include(${QT_USE_FILE}) include(${QT_USE_FILE})
# Main executable # Main executable
add_executable(launcher add_executable(omwlauncher
${LAUNCHER} ${LAUNCHER}
${MISC} ${MISC_HEADER} ${MISC} ${MISC_HEADER}
${FILES} ${FILES_HEADER} ${FILES} ${FILES_HEADER}
@ -55,11 +55,14 @@ add_executable(launcher
${MOC_SRCS} ${MOC_SRCS}
) )
target_link_libraries(launcher target_link_libraries(omwlauncher
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${OGRE_LIBRARIES} ${OGRE_LIBRARIES}
${QT_LIBRARIES} ${QT_LIBRARIES}
) )
configure_file(${CMAKE_SOURCE_DIR}/files/launcher.qss configure_file(${CMAKE_SOURCE_DIR}/files/launcher.qss
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/launcher.qss") "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/launcher.qss")
configure_file(${CMAKE_SOURCE_DIR}/files/launcher.cfg
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/launcher.cfg")

@ -1,23 +1,30 @@
###################################################################### ######################################################################
# Automatically generated by qmake (2.01a) Tue Mar 29 22:56:27 2011 # Automatically generated by qmake (2.01a) Fri Jun 24 21:14:15 2011
###################################################################### ######################################################################
TEMPLATE = app TEMPLATE = app
TARGET = TARGET =
DEPENDPATH += . DEPENDPATH += .
INCLUDEPATH += . INCLUDEPATH += .
# Input # Input
HEADERS += datafilespage.hpp \ HEADERS += combobox.hpp \
datafilespage.hpp \
graphicspage.hpp \
lineedit.hpp \ lineedit.hpp \
maindialog.hpp \ maindialog.hpp \
playpage.hpp naturalsort.hpp \
playpage.hpp \
pluginsmodel.hpp \
pluginsview.hpp
SOURCES += datafilespage.cpp \ SOURCES += datafilespage.cpp \
graphicspage.cpp \
lineedit.cpp \ lineedit.cpp \
main.cpp \
maindialog.cpp \ maindialog.cpp \
playpage.cpp naturalsort.cpp \
qrc_resources.cxx playpage.cpp \
pluginsmodel.cpp \
pluginsview.cpp
RESOURCES += resources.qrc RESOURCES += resources.qrc
RC_FILE = launcher.rc win32:RC_FILE = launcher.rc

@ -1 +1 @@
IDI_ICON1 ICON DISCARDABLE "resources/images/openmw-icon.ico" IDI_ICON1 ICON DISCARDABLE "resources/images/openmw.ico"

@ -42,7 +42,7 @@ MainDialog::MainDialog()
setWindowTitle(tr("OpenMW Launcher")); setWindowTitle(tr("OpenMW Launcher"));
setWindowIcon(QIcon(":/images/openmw-icon.png")); setWindowIcon(QIcon(":/images/openmw.png"));
// Remove what's this? button // Remove what's this? button
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
setMinimumSize(QSize(575, 575)); setMinimumSize(QSize(575, 575));
@ -65,7 +65,7 @@ void MainDialog::createIcons()
QIcon graphicsIcon = QIcon(":/icons/tango/video-display.png"); QIcon graphicsIcon = QIcon(":/icons/tango/video-display.png");
QListWidgetItem *playButton = new QListWidgetItem(mIconWidget); QListWidgetItem *playButton = new QListWidgetItem(mIconWidget);
playButton->setIcon(QIcon(":/images/openmw-icon.png")); playButton->setIcon(QIcon(":/images/openmw.png"));
playButton->setText(tr("Play")); playButton->setText(tr("Play"));
playButton->setTextAlignment(Qt::AlignCenter); playButton->setTextAlignment(Qt::AlignCenter);
playButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); playButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
@ -77,7 +77,7 @@ void MainDialog::createIcons()
graphicsButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); graphicsButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
QListWidgetItem *dataFilesButton = new QListWidgetItem(mIconWidget); QListWidgetItem *dataFilesButton = new QListWidgetItem(mIconWidget);
dataFilesButton->setIcon(QIcon(":/images/openmw-plugin-icon.png")); dataFilesButton->setIcon(QIcon(":/images/openmw-plugin.png"));
dataFilesButton->setText(tr("Data Files")); dataFilesButton->setText(tr("Data Files"));
dataFilesButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom); dataFilesButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom);
dataFilesButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); dataFilesButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);

@ -2,8 +2,8 @@
<qresource prefix="/images"> <qresource prefix="/images">
<file alias="clear.png">resources/images/clear.png</file> <file alias="clear.png">resources/images/clear.png</file>
<file alias="down.png">resources/images/down.png</file> <file alias="down.png">resources/images/down.png</file>
<file alias="openmw-icon.png">resources/images/openmw-icon.png</file> <file alias="openmw.png">resources/images/openmw.png</file>
<file alias="openmw-plugin-icon.png">resources/images/openmw-plugin-icon.png</file> <file alias="openmw-plugin.png">resources/images/openmw-plugin.png</file>
<file alias="openmw-header.png">resources/images/openmw-header.png</file> <file alias="openmw-header.png">resources/images/openmw-header.png</file>
<file alias="playpage-background.png">resources/images/playpage-background.png</file> <file alias="playpage-background.png">resources/images/playpage-background.png</file>
</qresource> </qresource>

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

@ -0,0 +1,5 @@
[Profiles]
CurrentProfile=Default
Default\Master0=Morrowind.esm
Default\Master1=Tribunal.esm
Default\Master2=Bloodmoon.esm

@ -0,0 +1,10 @@
[Desktop Entry]
Version=0.11
Type=Application
Name=OpenMW Launcher
GenericName=Role Playing Game
Comment=An engine replacement for The Elder Scrolls III: Morrowind
TryExec=omwlauncher
Exec=omwlauncher
Icon=openmw
Categories=Game;RolePlaying;
Loading…
Cancel
Save