Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡ introduce patch selection #3

Merged
merged 1 commit into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ add_executable(${PROJECT_NAME}
src/km-window.hpp src/km-window.cpp
"${CMAKE_BINARY_DIR}/compile_options.hpp"
src/conf-window.hpp src/conf-window.cpp
src/conf-patches-page.hpp src/conf-patches-page.ui
src/conf-options-page.hpp src/conf-options-page.ui
src/km-window.ui src/conf-window.ui
src/main.cpp
)
Expand Down
62 changes: 62 additions & 0 deletions src/conf-options-page.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// Copyright (C) 2022-2023 Vladislav Nepogodin
//
// This file is part of CachyOS kernel manager.
//
// This program 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 2 of the License, or
// (at your option) any later version.
//
// This program 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 this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

#ifndef CONFOPTIONSPAGE_HPP_
#define CONFOPTIONSPAGE_HPP_

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wfloat-conversion"
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuseless-cast"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
#endif

#include <ui_conf-options-page.h>

#include <memory>

#include <QObject>

#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

class ConfOptionsPage final : public QWidget {
Q_OBJECT
Q_DISABLE_COPY_MOVE(ConfOptionsPage)
public:
explicit ConfOptionsPage(QWidget* parent = nullptr)
: QWidget(parent) { m_ui->setupUi(this); }
virtual ~ConfOptionsPage() = default;

Ui::ConfOptionsPage* get_ui_obj() noexcept { return m_ui.get(); }

private:
std::unique_ptr<Ui::ConfOptionsPage> m_ui = std::make_unique<Ui::ConfOptionsPage>();
};

#endif // CONFOPTIONSPAGE_HPP_
Loading