mirror of https://github.com/cutefishos/calamares
[welcomeq] initial work for welcomeview in qml
parent
d7f7c16958
commit
d26fa63ccd
@ -1,44 +1,51 @@
|
|||||||
# This is a re-write of the welcome module using QML view steps
|
# This is a re-write of the welcome module using QML view steps
|
||||||
# instead of widgets.
|
# instead of widgets.
|
||||||
|
|
||||||
#set( _welcome ${CMAKE_CURRENT_SOURCE_DIR}/../welcome )
|
set( _welcome ${CMAKE_CURRENT_SOURCE_DIR}/../welcome )
|
||||||
|
|
||||||
#include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui ${_welcome} )
|
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui ${CMAKE_CURRENT_SOURCE_DIR}/../../libcalamares ${_welcome} )
|
||||||
|
|
||||||
## DUPLICATED WITH WELCOME MODULE
|
# DUPLICATED WITH WELCOME MODULE
|
||||||
#find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED DBus Network )
|
find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED DBus Network )
|
||||||
|
|
||||||
#find_package( LIBPARTED )
|
find_package( LIBPARTED )
|
||||||
#if ( LIBPARTED_FOUND )
|
if ( LIBPARTED_FOUND )
|
||||||
# set( PARTMAN_SRC ${_welcome}/checker/partman_devices.c )
|
set( PARTMAN_SRC ${_welcome}/checker/partman_devices.c )
|
||||||
# set( CHECKER_LINK_LIBRARIES ${LIBPARTED_LIBRARY} )
|
set( CHECKER_LINK_LIBRARIES ${LIBPARTED_LIBRARY} )
|
||||||
#else()
|
else()
|
||||||
# set( PARTMAN_SRC )
|
set( PARTMAN_SRC )
|
||||||
# set( CHECKER_LINK_LIBRARIES )
|
set( CHECKER_LINK_LIBRARIES )
|
||||||
# add_definitions( -DWITHOUT_LIBPARTED )
|
add_definitions( -DWITHOUT_LIBPARTED )
|
||||||
#endif()
|
endif()
|
||||||
|
|
||||||
#set( CHECKER_SOURCES
|
set( CHECKER_SOURCES
|
||||||
# ${_welcome}/checker/CheckerContainer.cpp
|
${_welcome}/checker/GeneralRequirements.cpp
|
||||||
# ${_welcome}/checker/GeneralRequirements.cpp
|
${PARTMAN_SRC}
|
||||||
# ${_welcome}/checker/ResultWidget.cpp
|
)
|
||||||
# ${_welcome}/checker/ResultsListWidget.cpp
|
|
||||||
# ${PARTMAN_SRC}
|
|
||||||
#)
|
|
||||||
|
|
||||||
#calamares_add_plugin( welcomeq
|
calamares_add_plugin( welcomeq
|
||||||
# TYPE viewmodule
|
TYPE viewmodule
|
||||||
# EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
||||||
# SOURCES
|
SOURCES
|
||||||
# ${CHECKER_SOURCES}
|
${CHECKER_SOURCES}
|
||||||
# WelcomeQmlViewStep.cpp
|
WelcomeQmlViewStep.cpp
|
||||||
# Config.cpp
|
${_welcome}/Config.cpp
|
||||||
# RESOURCES
|
RESOURCES
|
||||||
# welcomeq.qrc
|
welcomeq.qrc
|
||||||
# LINK_PRIVATE_LIBRARIES
|
LINK_PRIVATE_LIBRARIES
|
||||||
# calamaresui
|
calamaresui
|
||||||
# ${CHECKER_LINK_LIBRARIES}
|
${CHECKER_LINK_LIBRARIES}
|
||||||
# Qt5::DBus
|
Qt5::DBus
|
||||||
# Qt5::Network
|
Qt5::Network
|
||||||
# SHARED_LIB
|
SHARED_LIB
|
||||||
#)
|
)
|
||||||
|
|
||||||
|
# add_executable( welcomeqmltest qmlmain.cpp Config.cpp WelcomeQmlViewStep.cpp ${CHECKER_SOURCES} )
|
||||||
|
# target_link_libraries( welcomeqmltest PRIVATE calamaresui Qt5::Core Qt5::Network Qt5::DBus ${CHECKER_LINK_LIBRARIES})
|
||||||
|
# set_target_properties( welcomeqmltest
|
||||||
|
# PROPERTIES
|
||||||
|
# ENABLE_EXPORTS TRUE
|
||||||
|
# RUNTIME_OUTPUT_NAME welcomeqmltest
|
||||||
|
# )
|
||||||
|
# calamares_automoc( welcomeqmltest )
|
||||||
|
# calamares_autouic( welcomeqmltest )
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
|
||||||
*
|
|
||||||
* Copyright 2019-2020, Adriaan de Groot <groot@kde.org>
|
|
||||||
*
|
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* Calamares is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "Config.h"
|
|
||||||
|
|
||||||
Config::Config() {}
|
|
||||||
|
|
||||||
Config::~Config() {}
|
|
@ -1,51 +0,0 @@
|
|||||||
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
|
||||||
*
|
|
||||||
* Copyright 2019-2020, Adriaan de Groot <groot@kde.org>
|
|
||||||
*
|
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* Calamares is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef WELCOMEQ_CONFIG_H
|
|
||||||
#define WELCOMEQ_CONFIG_H
|
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QUrl>
|
|
||||||
|
|
||||||
class Config : public QObject
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
Q_PROPERTY( QUrl helpUrl READ helpUrl CONSTANT FINAL )
|
|
||||||
Q_PROPERTY( QUrl issuesUrl READ issuesUrl CONSTANT FINAL )
|
|
||||||
Q_PROPERTY( QUrl notesUrl READ notesUrl CONSTANT FINAL )
|
|
||||||
Q_PROPERTY( QUrl donateUrl READ donateUrl CONSTANT FINAL )
|
|
||||||
public:
|
|
||||||
Config();
|
|
||||||
virtual ~Config();
|
|
||||||
|
|
||||||
void setHelpUrl( const QUrl& url ) { m_helpUrl = url; }
|
|
||||||
void setIssuesUrl( const QUrl& url ) { m_issuesUrl = url; }
|
|
||||||
void setNotesUrl( const QUrl& url ) { m_notesUrl = url; }
|
|
||||||
void setDonateUrl( const QUrl& url ) { m_donateUrl = url; }
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
QUrl helpUrl() const { return m_helpUrl; }
|
|
||||||
QUrl issuesUrl() const { return m_issuesUrl; }
|
|
||||||
QUrl notesUrl() const { return m_notesUrl; }
|
|
||||||
QUrl donateUrl() const { return m_donateUrl; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
QUrl m_helpUrl, m_issuesUrl, m_notesUrl, m_donateUrl;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue