### Interactive Mode Notice for Free Software Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/LICENSE.GPL.txt This code snippet demonstrates the short notice that a free software program should display when starting in interactive mode. It includes copyright information, a warranty disclaimer, and information on redistribution conditions, referencing hypothetical 'show w' and 'show c' commands. ```text Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. ``` -------------------------------- ### CMake Project Setup and Options Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Initializes the CMake build process, sets the project name and languages, and defines an option for XLib support on Linux for window z-order detection. ```cmake cmake_minimum_required(VERSION 3.15) project(KDDockWidgets LANGUAGES CXX C) option(KDDockWidgets_XLib "On Linux, link against XLib, for a more robust window z-order detection." OFF) ``` -------------------------------- ### CMake Project Setup and Dependencies Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/CMakeLists.txt Initializes the CMake build system, defines project name and languages, and sets compiler standards. It also includes logic for finding and linking necessary libraries like Qt6 and OpenSSL, with platform-specific configurations for Windows. ```cmake cmake_minimum_required(VERSION 3.28) # 3.15 project(AdaptixClient LANGUAGES C CXX) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) add_subdirectory(Libs/kddockwidgets) if(UNIX) find_package( OpenSSL REQUIRED ) elseif(APPLE) find_package( OpenSSL REQUIRED ) elseif(WIN32) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-subsystem,windows") endif() find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets Network WebSockets Sql Qml ) include_directories( Headers Libs ) ``` -------------------------------- ### CMake Forward Header Directory Setup Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Sets up a directory for forward declaration headers and defines a list of public headers to be forwarded. ```cmake set(FWD_HEADERS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/fwd_headers/kddockwidgets) file(MAKE_DIRECTORY ${FWD_HEADERS_DIR}) set(PUBLIC_HEADERS_TO_FORWARD qtwidgets/ViewFactory.h qtwidgets/views/DockWidget.h qtwidgets/views/DropArea.h ) ``` -------------------------------- ### Copyright Notice for Free Software Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/LICENSE.GPL.txt This code snippet shows the standard copyright notice to be included in free software projects. It specifies the year, author's name, and licensing terms under the GNU General Public License (GPL). It also includes a disclaimer of warranty. ```text Copyright (C) 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 3 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, see . ``` -------------------------------- ### CMake Definitions and Includes Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Adds preprocessor definitions for Qt and includes specific CMake files for bindings and JSON handling (nlohmann). ```cmake add_definitions( -DQT_USE_QSTRINGBUILDER -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_ITERATORS -DQT_NO_KEYWORDS -DQT_NO_FOREACH ) # -DQT_NO_SIGNALS_SLOTS_KEYWORDS include(${CMAKE_CURRENT_SOURCE_DIR}/kdbindings.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/nlohmann.cmake) ``` -------------------------------- ### CMake Library Target Creation Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Creates the 'kddockwidgets' static library target, compiling the specified backend and frontend source files along with public headers. ```cmake set(DOCKSLIBS_SRCS ${KDDW_LAYOUTING_SRCS} ${KDDW_FRONTEND_QTWIDGETS_SRCS} ${KDDW_BACKEND_SRCS} ${KDDW_QTCOMMON_SRCS} ) add_library(kddockwidgets ${DOCKSLIBS_SRCS} ${KDDW_PUBLIC_HEADERS}) ``` -------------------------------- ### CMake Qt6 Package Finding and Linking Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Finds the necessary Qt6 components (Core, Widgets, GuiPrivate, WidgetsPrivate) and links them to the 'kddockwidgets' library. Includes private Qt headers if available. ```cmake find_package(Qt6 REQUIRED COMPONENTS Core Widgets) find_package(Qt6 COMPONENTS GuiPrivate WidgetsPrivate QUIET) if (TARGET Qt6::GuiPrivate) target_link_libraries(kddockwidgets PRIVATE Qt6::GuiPrivate) target_include_directories(kddockwidgets PRIVATE $) endif() if (TARGET Qt6::WidgetsPrivate) target_link_libraries(kddockwidgets PRIVATE Qt6::WidgetsPrivate) endif() target_link_libraries(kddockwidgets PUBLIC Qt6::Core Qt6::Widgets) ``` -------------------------------- ### CMake Compile Definitions for Library Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Sets compile definitions for the 'kddockwidgets' target, enabling specific frontend configurations (QtWidgets, Qt) and marking the library as being built. ```cmake target_compile_definitions( kddockwidgets PUBLIC KDDW_FRONTEND_QTWIDGETS KDDW_FRONTEND_QT PRIVATE BUILDING_DOCKS_LIBRARY ) ``` -------------------------------- ### CMake X11 Dependency Handling Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Conditionally enables X11 support based on the KDDockWidgets_XLib option. If enabled, it prints a status message, defines a preprocessor macro, finds the X11 package, and links the X11 library. ```cmake if(KDDockWidgets_XLib) message(STATUS "KDDockWidgets_XLib enabled: will link to X11 and define KDDockWidgets_XLIB") add_definitions(-DKDDockWidgets_XLIB) find_package(X11 REQUIRED) target_link_libraries(kddockwidgets PRIVATE X11::X11) else() message(STATUS "KDDockWidgets_XLib disabled (default). X11-specific code will be inactive.") endif() ``` -------------------------------- ### CMake Source File Sets Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Defines CMake variables that list source files categorized by their function (layouting, backend, Qt common, frontend for QtWidgets, and Qt compatibility). ```cmake set(KDDW_LAYOUTING_SRCS core/layouting/Item.cpp core/layouting/ItemFreeContainer.cpp core/Logging.cpp KDDockWidgets.cpp ) set(KDDW_BACKEND_SRCS Config.cpp LayoutSaver.cpp core/Position.cpp core/DelayedCall.cpp core/Draggable.cpp core/WindowBeingDragged.cpp core/DragController.cpp core/WidgetResizeHandler.cpp core/Action.cpp core/DockRegistry.cpp core/FocusScope.cpp core/DockWidget.cpp core/DropArea.cpp core/DropIndicatorOverlay.cpp core/FloatingWindow.cpp core/Group.cpp core/Layout.cpp core/MainWindow.cpp core/MDILayout.cpp core/Separator.cpp core/SideBar.cpp core/Stack.cpp core/TitleBar.cpp core/TabBar.cpp core/ViewFactory.cpp core/Window.cpp core/Screen.cpp core/ViewGuard.cpp core/Controller.cpp core/Platform.cpp core/View.cpp core/indicators/NullDropIndicatorOverlay.cpp core/indicators/ClassicDropIndicatorOverlay.cpp core/indicators/SegmentedDropIndicatorOverlay.cpp core/views/ClassicIndicatorWindowViewInterface.cpp core/views/MainWindowMDIViewInterface.cpp core/views/MainWindowViewInterface.cpp core/views/GroupViewInterface.cpp core/views/DockWidgetViewInterface.cpp core/views/StackViewInterface.cpp core/views/TabBarViewInterface.cpp core/views/TitleBarViewInterface.cpp core/views/SideBarViewInterface.cpp ) set(KDDW_QTCOMMON_SRCS qtcommon/Platform.cpp qtcommon/Window.cpp qtcommon/View.cpp qtcommon/Screen.cpp qtcommon/ViewWrapper.cpp qtcommon/CustomFrameHelper.cpp qtcommon/DragControllerWayland_p.cpp ) set(KDDW_FRONTEND_QTWIDGETS_SRCS qtwidgets/Action.cpp qtwidgets/Window.cpp qtwidgets/Platform.cpp qtwidgets/views/View.cpp qtwidgets/views/ViewWrapper.cpp qtwidgets/views/FloatingWindow.cpp qtwidgets/views/DockWidget.cpp qtwidgets/views/DropArea.cpp qtwidgets/views/MDILayout.cpp qtwidgets/views/Group.cpp qtwidgets/views/MainWindow.cpp qtwidgets/views/MainWindowMDI.cpp qtwidgets/views/MDIArea.cpp qtwidgets/views/RubberBand.cpp qtwidgets/views/Separator.cpp qtwidgets/views/TitleBar.cpp qtwidgets/views/TabBar.cpp qtwidgets/views/Stack.cpp qtwidgets/views/SideBar.cpp qtwidgets/views/ClassicIndicatorsWindow.cpp qtwidgets/views/SegmentedDropIndicatorOverlay.cpp qtwidgets/ViewFactory.cpp qtwidgets/DebugWindow.cpp qtwidgets/ObjectViewer.cpp ) set(KDDW_FRONTEND_QTCOMPAT_SRCS qtcompat/Object.cpp) ``` -------------------------------- ### Konsole Module Source and Header Files Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/CMakeLists.txt Defines the source and header files for the Konsole module. It includes resource files, C and C++ source files for various functionalities like terminal emulation, screen management, and utilities. It also explicitly sets the language for a C source file. ```cmake set(KONSOLE_SOURCES Libs/Konsole/res.qrc Libs/Konsole/util/utf8proc.c Libs/Konsole/util/CharWidth.cpp Libs/Konsole/util/ColorScheme.cpp Libs/Konsole/util/Filter.cpp Libs/Konsole/util/History.cpp Libs/Konsole/util/HistorySearch.cpp Libs/Konsole/util/KeyboardTranslator.cpp Libs/Konsole/util/SearchBar.cpp Libs/Konsole/util/TerminalCharacterDecoder.cpp Libs/Konsole/Emulation.cpp Libs/Konsole/Vt102Emulation.cpp Libs/Konsole/Screen.cpp Libs/Konsole/ScreenWindow.cpp Libs/Konsole/TerminalDisplay.cpp Libs/Konsole/konsole.cpp ) set_source_files_properties( Libs/Konsole/util/utf8proc.c PROPERTIES LANGUAGE C ) set(KONSOLE_HEADERS Libs/Konsole/util/utf8proc.h Libs/Konsole/util/CharWidth.h Libs/Konsole/util/CharacterColor.h Libs/Konsole/util/Character.h Libs/Konsole/util/ColorScheme.h Libs/Konsole/util/Filter.h Libs/Konsole/util/History.h Libs/Konsole/util/HistorySearch.h Libs/Konsole/util/KeyboardTranslator.h Libs/Konsole/util/SearchBar.h Libs/Konsole/util/TerminalCharacterDecoder.h Libs/Konsole/Emulation.h Libs/Konsole/Vt102Emulation.h Libs/Konsole/Screen.h Libs/Konsole/ScreenWindow.h Libs/Konsole/TerminalDisplay.h Libs/Konsole/konsole.h ) ``` -------------------------------- ### KDDockWidgets Resource Configuration Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/CMakeLists.txt Sets the KDDockWidgets resource file, which is typically used to bundle application resources like icons, images, and translation files for the KDDockWidgets library. ```cmake set(KDDOCKWIDGETS_RESOURCES Libs/kddockwidgets/kddockwidgets_resources.qrc) ``` -------------------------------- ### 404 Page Not Found HTML and CSS Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixServer/404page.html This snippet contains the HTML and CSS for the AdaptixC2 404 error page. It includes styling for the body, a container, headings, paragraphs, and links. No external libraries are required. ```html body { font-family: Arial, sans-serif; background-color: #121212; color: #fff; text-align: center; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { max-width: 600px; padding: 20px; border-radius: 10px; } h1 { font-size: 48px; margin: 0; } p { font-size: 18px; margin: 10px 0 20px; } a { color: #00bcd4; text-decoration: none; font-weight: bold; } a:hover { text-decoration: underline; } ``` -------------------------------- ### CMake Public Headers Definition Source: https://github.com/adaptix-framework/adaptixc2/blob/main/AdaptixClient/Libs/kddockwidgets/CMakeLists.txt Defines a CMake variable listing the public header files for the KDDockWidgets library. ```cmake set(KDDW_PUBLIC_HEADERS docks_export.h Config.h KDDockWidgets.h LayoutSaver.h Qt5Qt6Compat_p.h QtCompat_p.h ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.