id int64 0 755k | file_name stringlengths 3 109 | file_path stringlengths 13 185 | content stringlengths 31 9.38M | size int64 31 9.38M | language stringclasses 1
value | extension stringclasses 11
values | total_lines int64 1 340k | avg_line_length float64 2.18 149k | max_line_length int64 7 2.22M | alphanum_fraction float64 0 1 | repo_name stringlengths 6 65 | repo_stars int64 100 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 9
values | repo_extraction_date stringclasses 92
values | exact_duplicates_redpajama bool 2
classes | near_duplicates_redpajama bool 2
classes | exact_duplicates_githubcode bool 2
classes | exact_duplicates_stackv2 bool 1
class | exact_duplicates_stackv1 bool 2
classes | near_duplicates_githubcode bool 2
classes | near_duplicates_stackv1 bool 2
classes | near_duplicates_stackv2 bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
753,812 | CapriceDevTools.cpp | ColinPitrat_caprice32/src/gui/src/CapriceDevTools.cpp | // 'DevTools' window for Caprice32
#include <algorithm>
#include <iomanip>
#include <map>
#include <string>
#include <sstream>
#include "std_ex.h"
#include "CapriceDevTools.h"
#include "devtools.h"
#include "cap32.h"
#include "log.h"
#include "stringutils.h"
#include "z80.h"
#include "z80_macros.h"
#include "z80_disas... | 54,520 | C++ | .cpp | 1,180 | 38.718644 | 183 | 0.623035 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,813 | wg_message_client.cpp | ColinPitrat_caprice32/src/gui/src/wg_message_client.cpp | // wg_message_client.cpp
//
// CMessageClient class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundati... | 1,393 | C++ | .cpp | 37 | 36.054054 | 77 | 0.77266 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,814 | wg_menu.cpp | ColinPitrat_caprice32/src/gui/src/wg_menu.cpp | // wg_menu.cpp
//
// CMenu implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1... | 19,373 | C++ | .cpp | 643 | 26.830482 | 145 | 0.705841 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,815 | CapriceLoadSave.cpp | ColinPitrat_caprice32/src/gui/src/CapriceLoadSave.cpp | // 'Load/save' box for Caprice32
// Inherited from CMessageBox
#include "CapriceLoadSave.h"
#include "cap32.h"
#include "slotshandler.h"
#include "cartridge.h"
#include "stringutils.h"
#include "log.h"
#include "wg_messagebox.h"
#include <iostream>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#includ... | 13,258 | C++ | .cpp | 330 | 29.309091 | 265 | 0.539755 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,816 | CapriceLeavingWithoutSavingView.cpp | ColinPitrat_caprice32/src/gui/src/CapriceLeavingWithoutSavingView.cpp | #include "CapriceLeavingWithoutSavingView.h"
CapriceLeavingWithoutSavingView::CapriceLeavingWithoutSavingView(CApplication& application, SDL_Surface* surface, SDL_Surface* backSurface, const CRect& WindowRect) : CView(application, surface, backSurface, WindowRect)
{
Application().MessageServer()->RegisterMessageClie... | 2,184 | C++ | .cpp | 60 | 30.866667 | 263 | 0.697543 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,817 | wg_textbox.cpp | ColinPitrat_caprice32/src/gui/src/wg_textbox.cpp | // wg_textbox.cpp
//
// CTextBox class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//... | 29,837 | C++ | .cpp | 881 | 28.777526 | 200 | 0.659397 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,818 | wg_resources.cpp | ColinPitrat_caprice32/src/gui/src/wg_resources.cpp | // wg_resources.cpp
//
// wgui resources
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 ... | 20,669 | C++ | .cpp | 470 | 38.051064 | 148 | 0.506567 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,819 | CapriceOptions.cpp | ColinPitrat_caprice32/src/gui/src/CapriceOptions.cpp | // 'Options' window for Caprice32
// Inherited from CFrame
#include <map>
#include <string>
#include "log.h"
#include "std_ex.h"
#include "CapriceOptions.h"
#include "cap32.h"
#include "keyboard.h"
#include "fileutils.h"
#include "wg_messagebox.h"
// CPC emulation properties, defined in cap32.h:
extern t_CPC CPC;
std... | 29,783 | C++ | .cpp | 548 | 45.656934 | 266 | 0.64024 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,820 | CapriceMenu.cpp | ColinPitrat_caprice32/src/gui/src/CapriceMenu.cpp | // 'Menu' window for Caprice32
// Inherited from CFrame
#include <map>
#include <string>
#include "std_ex.h"
#include "CapriceMenu.h"
#include "CapriceOptions.h"
#include "CapriceLoadSave.h"
#include "CapriceMemoryTool.h"
#include "CapriceAbout.h"
#include "cap32.h"
// CPC emulation properties, defined in cap32.h:
ex... | 6,478 | C++ | .cpp | 187 | 26.518717 | 290 | 0.595541 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,821 | cap_flag.cpp | ColinPitrat_caprice32/src/gui/src/cap_flag.cpp | #include "cap_flag.h"
namespace wGui
{
CFlag::CFlag(const CRect& WindowRect, CWindow* pParent, const std::string& name, const std::string& description, CFontEngine* pFontEngine) :
CWindow(WindowRect, pParent)
{
if (pFontEngine)
{
m_pFontEngine = pFontEngine;
}
else
{
m_pFontEngine = Application().GetDefault... | 695 | C++ | .cpp | 30 | 21.166667 | 140 | 0.723404 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,822 | std_ex.cpp | ColinPitrat_caprice32/src/gui/src/std_ex.cpp | // std_ex.cpp
//
// Extensions to the std library
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// ver... | 3,068 | C++ | .cpp | 117 | 24.376068 | 99 | 0.740766 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,823 | wg_renderedstring.cpp | ColinPitrat_caprice32/src/gui/src/wg_renderedstring.cpp | // wg_renderedstring.cpp
//
// CRenderedString implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; e... | 6,254 | C++ | .cpp | 216 | 25.916667 | 204 | 0.706587 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,824 | CapriceDevToolsView.cpp | ColinPitrat_caprice32/src/gui/src/CapriceDevToolsView.cpp | // Developers' tools for Caprice32
#include "CapriceDevToolsView.h"
#include "CapriceDevTools.h"
#include <string>
using namespace wGui;
CapriceDevToolsView::CapriceDevToolsView(CApplication& application, SDL_Surface* surface, SDL_Renderer* renderer, SDL_Texture* texture, const CRect& WindowRect, DevTools* devtools) ... | 1,750 | C++ | .cpp | 50 | 32.26 | 275 | 0.77055 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,825 | wg_tooltip.cpp | ColinPitrat_caprice32/src/gui/src/wg_tooltip.cpp | // wg_tooltip.cpp
//
// CToolTip interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.... | 4,703 | C++ | .cpp | 149 | 28.503356 | 137 | 0.729079 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,826 | wg_window.cpp | ColinPitrat_caprice32/src/gui/src/wg_window.cpp | // wg_window.cpp
//
// CWindow class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// v... | 10,272 | C++ | .cpp | 360 | 26.258333 | 158 | 0.748832 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,827 | CapriceVKeyboard.cpp | ColinPitrat_caprice32/src/gui/src/CapriceVKeyboard.cpp | #include "CapriceVKeyboard.h"
#include "cap32.h"
#include "keyboard.h"
#include <string>
extern t_CPC CPC;
namespace wGui {
CapriceVKeyboard::CapriceVKeyboard(const CRect& WindowRect, CWindow* pParent, CFontEngine* pFontEngine) :
CFrame(WindowRect, pParent, pFontEngine, "Caprice32 - Virtual Keyboard", false)
... | 7,126 | C++ | .cpp | 201 | 26.432836 | 163 | 0.540075 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,828 | wg_groupbox.cpp | ColinPitrat_caprice32/src/gui/src/wg_groupbox.cpp | // wg_groupbox.cpp
//
// CGroupBox class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
... | 3,538 | C++ | .cpp | 108 | 30.027778 | 132 | 0.74465 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,829 | wg_rect.cpp | ColinPitrat_caprice32/src/gui/src/wg_rect.cpp | // wg_rect.cpp
//
// CRect class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// versi... | 3,770 | C++ | .cpp | 157 | 21.949045 | 94 | 0.656119 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,830 | wg_messagebox.cpp | ColinPitrat_caprice32/src/gui/src/wg_messagebox.cpp | // wg_messagebox.cpp
//
// CMessageBox class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; eit... | 3,403 | C++ | .cpp | 98 | 31.867347 | 165 | 0.720874 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,831 | CapriceRomSlots.cpp | ColinPitrat_caprice32/src/gui/src/CapriceRomSlots.cpp | // Caprice32 ROM slot selection window
// Inherited from CFrame
#include <dirent.h>
#include <string>
#include "CapriceRomSlots.h"
#include "cap32.h"
#include "fileutils.h"
// CPC emulation properties, defined in cap32.h:
extern t_CPC CPC;
namespace wGui {
CapriceRomSlots::CapriceRomSlots(const CRect& WindowRect, C... | 3,291 | C++ | .cpp | 88 | 31.181818 | 173 | 0.65246 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,832 | wg_editbox.cpp | ColinPitrat_caprice32/src/gui/src/wg_editbox.cpp | // wg_editbox.cpp
//
// CEditBox class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//... | 20,360 | C++ | .cpp | 653 | 25.905054 | 141 | 0.640706 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,833 | cap_register.cpp | ColinPitrat_caprice32/src/gui/src/cap_register.cpp | #include "cap_register.h"
#include <iomanip>
#include <sstream>
#include <string>
namespace wGui
{
CRegister::CRegister(const CRect& WindowRect, CWindow* pParent, const std::string& name, CFontEngine* pFontEngine) :
CWindow(WindowRect, pParent)
{
if (pFontEngine)
{
m_pFontEngine = pFontEngine;
}
else
{
m_pF... | 1,226 | C++ | .cpp | 46 | 24.086957 | 116 | 0.688832 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,834 | wg_toolbar.cpp | ColinPitrat_caprice32/src/gui/src/wg_toolbar.cpp | // wg_toolbar.cpp
//
// CToolBar class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//... | 3,844 | C++ | .cpp | 140 | 25 | 128 | 0.732318 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,835 | wg_message.cpp | ColinPitrat_caprice32/src/gui/src/wg_message.cpp | // wg_message.cpp
//
// CMessage class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//... | 4,708 | C++ | .cpp | 139 | 31.309353 | 311 | 0.764486 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,836 | wg_painter.cpp | ColinPitrat_caprice32/src/gui/src/wg_painter.cpp | // wg_painter.cpp
//
// CPainter class
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of... | 10,550 | C++ | .cpp | 327 | 29.733945 | 134 | 0.704445 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,837 | wg_button.cpp | ColinPitrat_caprice32/src/gui/src/wg_button.cpp | // wg_button.cpp
//
// CButton class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// v... | 7,820 | C++ | .cpp | 243 | 29.411523 | 187 | 0.733077 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,838 | wg_frame.cpp | ColinPitrat_caprice32/src/gui/src/wg_frame.cpp | // wg_frame.cpp
//
// CFrame class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// ver... | 12,912 | C++ | .cpp | 357 | 30.593838 | 153 | 0.663123 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,839 | wg_timer.cpp | ColinPitrat_caprice32/src/gui/src/wg_timer.cpp | // wg_timer.cpp
//
// CTimer class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// ver... | 1,910 | C++ | .cpp | 74 | 24.094595 | 112 | 0.75427 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,840 | wg_scrollbar.cpp | ColinPitrat_caprice32/src/gui/src/wg_scrollbar.cpp | // wg_scrollbar.cpp
//
// CScrollBar class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; eithe... | 10,159 | C++ | .cpp | 311 | 28.913183 | 142 | 0.700601 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,841 | wg_resource_handle.cpp | ColinPitrat_caprice32/src/gui/src/wg_resource_handle.cpp | // wg_resource_handle.cpp
//
// Resource Handle implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; ... | 3,793 | C++ | .cpp | 119 | 30.016807 | 117 | 0.75692 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,842 | wg_listbox.cpp | ColinPitrat_caprice32/src/gui/src/wg_listbox.cpp | // wg_listbox.cpp
//
// CListBox class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//... | 12,442 | C++ | .cpp | 411 | 26.291971 | 181 | 0.686687 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,843 | wg_point.cpp | ColinPitrat_caprice32/src/gui/src/wg_point.cpp | // wg_point.cpp
//
// CPoint class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// ver... | 1,397 | C++ | .cpp | 50 | 26.42 | 74 | 0.741742 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,844 | CapriceAbout.cpp | ColinPitrat_caprice32/src/gui/src/CapriceAbout.cpp | // 'About' box for Caprice32
// Inherited from CMessageBox
#include "CapriceAbout.h"
#include "cap32.h"
#include <string>
#include "log.h"
#include "wg_error.h"
// CPC emulation properties, defined in cap32.h:
extern t_CPC CPC;
namespace wGui {
static const std::string shortcuts = R"(F1 - Menu / Pause
F2 - Fullscre... | 1,611 | C++ | .cpp | 47 | 32.510638 | 124 | 0.730893 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,845 | wg_checkbox.cpp | ColinPitrat_caprice32/src/gui/src/wg_checkbox.cpp | // wg_checkbox.cpp
//
// CCheckBox class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
... | 6,975 | C++ | .cpp | 200 | 29.27 | 131 | 0.678879 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,846 | wg_message_server.cpp | ColinPitrat_caprice32/src/gui/src/wg_message_server.cpp | // wg_message_server.cpp
//
// CMessageServer class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundati... | 4,551 | C++ | .cpp | 155 | 26.909677 | 154 | 0.74136 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,847 | wg_label.cpp | ColinPitrat_caprice32/src/gui/src/wg_label.cpp | // wg_label.cpp
//
// CLabel class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// ver... | 2,888 | C++ | .cpp | 82 | 33.231707 | 127 | 0.764621 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,848 | wg_application.cpp | ColinPitrat_caprice32/src/gui/src/wg_application.cpp | // wg_application.cpp
//
// CApplication interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// ve... | 16,035 | C++ | .cpp | 500 | 27.27 | 111 | 0.67844 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,849 | wg_progress.cpp | ColinPitrat_caprice32/src/gui/src/wg_progress.cpp | // wg_progress.cpp
//
// CProgress class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
... | 2,020 | C++ | .cpp | 59 | 32.169492 | 109 | 0.73884 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,850 | wg_view.cpp | ColinPitrat_caprice32/src/gui/src/wg_view.cpp | // wg_view.cpp
//
// CView class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// versi... | 7,404 | C++ | .cpp | 197 | 34.228426 | 183 | 0.722044 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,851 | CapriceGuiView.cpp | ColinPitrat_caprice32/src/gui/src/CapriceGuiView.cpp | #include "CapriceGuiView.h"
#include "CapriceMenu.h"
using namespace wGui;
CapriceGuiView::CapriceGuiView(CApplication& application, SDL_Surface* surface, SDL_Surface* backSurface, const CRect& WindowRect) : CView(application, surface, backSurface, WindowRect)
{
Application().MessageServer()->RegisterMessageClient(... | 1,144 | C++ | .cpp | 26 | 40.538462 | 185 | 0.748654 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,852 | wg_navigationbar.cpp | ColinPitrat_caprice32/src/gui/src/wg_navigationbar.cpp | // wg_navigationbar.cpp
//
// CNavigationBar class implementation
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later... | 8,256 | C++ | .cpp | 220 | 33.145455 | 150 | 0.704287 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,853 | wg_radiobutton.cpp | ColinPitrat_caprice32/src/gui/src/wg_radiobutton.cpp | // wg_radiobutton.cpp
//
// CRadioButton class implementation
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later ver... | 6,007 | C++ | .cpp | 183 | 28.666667 | 127 | 0.705223 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,855 | wg_dropdown.cpp | ColinPitrat_caprice32/src/gui/src/wg_dropdown.cpp | // wg_dropdown.cpp
//
// CDropDown class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
... | 8,905 | C++ | .cpp | 250 | 28.448 | 155 | 0.639147 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,856 | wg_fontengine.cpp | ColinPitrat_caprice32/src/gui/src/wg_fontengine.cpp | // wg_fontengine.cpp
//
// CFontEngine implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//... | 2,925 | C++ | .cpp | 89 | 30.853933 | 108 | 0.736805 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,857 | CapriceVKeyboardView.cpp | ColinPitrat_caprice32/src/gui/src/CapriceVKeyboardView.cpp | #include "CapriceVKeyboardView.h"
CapriceVKeyboardView::CapriceVKeyboardView(CApplication& application, SDL_Surface* surface, SDL_Surface* backSurface, const CRect& WindowRect) : CView(application, surface, backSurface, WindowRect)
{
m_kbdFrame = new CapriceVKeyboard(CRect(CPoint(0, 0), 384, 270), this, nullptr);
}
... | 870 | C++ | .cpp | 25 | 31.24 | 197 | 0.744352 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,858 | CapriceMemoryTool.cpp | ColinPitrat_caprice32/src/gui/src/CapriceMemoryTool.cpp | // 'Memory tool' window for Caprice32
#include "CapriceMemoryTool.h"
#include "cap32.h"
#include "z80.h"
#include "log.h"
#include <iomanip>
#include <sstream>
#include <string>
extern byte *pbRAM;
extern t_CPC CPC;
namespace wGui {
CapriceMemoryTool::CapriceMemoryTool(const CRect& WindowRect, CWindow* pParent, CFo... | 8,128 | C++ | .cpp | 193 | 33.450777 | 137 | 0.578522 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,859 | wg_picture.cpp | ColinPitrat_caprice32/src/gui/src/wg_picture.cpp | // wg_picture.cpp
//
// CPicture class implementation
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//... | 2,225 | C++ | .cpp | 74 | 28.216216 | 99 | 0.762887 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,860 | wg_color.cpp | ColinPitrat_caprice32/src/gui/src/wg_color.cpp | // wg_color.cpp
//
// CRGBColor class
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of ... | 6,933 | C++ | .cpp | 188 | 34.739362 | 117 | 0.711965 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,861 | disk.h | ColinPitrat_caprice32/src/disk.h | #ifndef DISK_H
#define DISK_H
#include <string>
// FDC constants
#define DSK_BPTMAX 8192
#define DSK_TRACKMAX 102 // max amount that fits in a DSK header
#define DSK_SIDEMAX 2
#define DSK_SECTORMAX 29 // max amount that fits in a track header
#define FDC_TO_CPU 0
#define CPU_TO_FDC 1
#d... | 4,066 | C++ | .h | 101 | 37.09901 | 113 | 0.711353 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,862 | z80_macros.h | ColinPitrat_caprice32/src/z80_macros.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 late... | 2,914 | C++ | .h | 90 | 30.8 | 72 | 0.646515 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,863 | cap32.h | ColinPitrat_caprice32/src/cap32.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2005 Ulrich Doewich
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 late... | 12,268 | C++ | .h | 407 | 26.619165 | 103 | 0.721601 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,864 | keyboard.h | ColinPitrat_caprice32/src/keyboard.h | #ifndef _KEYBOARD_H_
#define _KEYBOARD_H_
#include "types.h"
#include "SDL.h"
#include <map>
#include <list>
#include <string>
#include "cap32.h"
#define MOD_CPC_SHIFT (0x01 << 8)
#define MOD_CPC_CTRL (0x02 << 8)
#define MOD_EMU_KEY (0x10 << 8)
#define BITSHIFT_MOD 32
#define BITMASK_NOMOD ((static_cast<PCK... | 6,539 | C++ | .h | 302 | 17.956954 | 98 | 0.669667 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,865 | video.h | ColinPitrat_caprice32/src/video.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 late... | 1,957 | C++ | .h | 45 | 40.6 | 130 | 0.73723 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,866 | symfile.h | ColinPitrat_caprice32/src/symfile.h | #ifndef _SYMFILE_H
#define _SYMFILE_H
#include <map>
#include <string>
#include <vector>
#include "types.h"
class Symfile
{
public:
Symfile() = default;
explicit Symfile(const std::string& filename);
bool SaveTo(const std::string& filename);
void addBreakpoint(word addr);
void addEntrypoint(wo... | 708 | C++ | .h | 24 | 26.041667 | 62 | 0.703102 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,867 | z80daa.h | ColinPitrat_caprice32/src/z80daa.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 late... | 76,730 | C++ | .h | 2,073 | 34.017849 | 71 | 0.317893 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,868 | argparse.h | ColinPitrat_caprice32/src/argparse.h | #ifndef ARGPARSE_H
#define ARGPARSE_H
#include <map>
#include <string>
#include <vector>
class CapriceArgs
{
public:
CapriceArgs() = default;
std::string autocmd;
std::string cfgFilePath;
std::string binFile;
size_t binOffset;
std::map<std::string, std::map<std::string, std::str... | 534 | C++ | .h | 19 | 24.526316 | 99 | 0.710372 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,869 | font.h | ColinPitrat_caprice32/src/font.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 late... | 5,604 | C++ | .h | 30 | 183.633333 | 578 | 0.682169 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,870 | glfunclist.h | ColinPitrat_caprice32/src/glfunclist.h |
GL_FUNC(void,glBegin,(GLenum))
GL_FUNC(void,glBindTexture,(GLenum,GLuint))
GL_FUNC(void,glBlendFunc,(GLenum,GLenum))
GL_FUNC(void,glColor4f,(GLfloat,GLfloat,GLfloat,GLfloat))
GL_FUNC(void,glDisable,(GLenum cap))
GL_FUNC(void,glEnable,(GLenum cap))
GL_FUNC(void,glEnd,())
GL_FUNC(void,glGenTextures,(GLsizei n, GLuint *t... | 1,695 | C++ | .h | 27 | 61.703704 | 172 | 0.794718 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,871 | fileutils.h | ColinPitrat_caprice32/src/fileutils.h | // Caprice 32
// File IO functions
#include <dirent.h>
#include <string>
#include <vector>
// Returns the file size of the file specified by the file descriptor 'fd'.
int file_size (int fd);
// Copy the content of in to out. Returns true if successful, false otherwise.
bool file_copy(FILE *in, FILE *out);
// True i... | 842 | C++ | .h | 18 | 45.388889 | 80 | 0.767442 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,872 | devtools.h | ColinPitrat_caprice32/src/devtools.h | #ifndef DEVTOOLS_H
#define DEVTOOLS_H
#include <string>
#include "SDL.h"
#include "CapriceGui.h"
#include "CapriceDevToolsView.h"
class DevTools {
public:
bool Activate(int scale);
void Deactivate();
bool IsActive() const { return active; };
void LoadSymbols(const std::string& filename);
void... | 785 | C++ | .h | 28 | 24.178571 | 54 | 0.70494 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,873 | phazer.h | ColinPitrat_caprice32/src/phazer.h | #ifndef PHAZER_H
#define PHAZER_H
#include <string>
class PhazerType {
public:
enum Value
{
None = 0,
AmstradMagnumPhaser = 1,
TrojanLightPhazer = 2,
LastPhazerType,
};
PhazerType() = default;
constexpr PhazerType(Value val) : value(val) { }
std::string ToString();
... | 508 | C++ | .h | 23 | 17.565217 | 52 | 0.635983 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,875 | cartridge.h | ColinPitrat_caprice32/src/cartridge.h | /* Caprice32 - Amstrad CPC Emulator
Loading of Plus range cartridge files (.cpr)
The file format is RIFF (Resource Interchange File Format) as described
here:
- http://www.cpcwiki.eu/index.php/Format:CPR_CPC_Plus_cartridge_file_format
- https://en.wikipedia.org/wiki/Resource_Interchange_File_Forma... | 487 | C++ | .h | 14 | 31.785714 | 79 | 0.750538 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,876 | configuration.h | ColinPitrat_caprice32/src/configuration.h | #ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include <map>
#include <string>
namespace config
{
using ConfigSection = std::map<std::string, std::string>;
using ConfigMap = std::map<std::string, ConfigSection>;
bool hasValue(const ConfigMap& configMap, const std::string& section, const std::string& key);
... | 1,315 | C++ | .h | 30 | 39 | 124 | 0.726845 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,877 | slotshandler.h | ColinPitrat_caprice32/src/slotshandler.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2005 Ulrich Doewich
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 late... | 2,272 | C++ | .h | 50 | 43.42 | 104 | 0.754632 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,879 | tape.h | ColinPitrat_caprice32/src/tape.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 late... | 915 | C++ | .h | 21 | 40.52381 | 71 | 0.773393 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,880 | z80.h | ColinPitrat_caprice32/src/z80.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 late... | 4,163 | C++ | .h | 115 | 33.713043 | 83 | 0.710625 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,881 | ipf.h | ColinPitrat_caprice32/src/ipf.h | #ifndef IPF_H
#define IPF_H
#ifdef WITH_IPF
#include "types.h"
#include "caps/capsimage.h"
#include "caps/fdc.h"
#include "caps/form.h"
#include "stdio.h"
#include "cap32.h"
#include "disk.h"
#include <string>
int ipf_load (FILE *, t_drive*);
int ipf_load (const std::string&, t_drive *);
#endif
#endif
| 308 | C++ | .h | 15 | 19.2 | 45 | 0.722222 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,882 | stringutils.h | ColinPitrat_caprice32/src/stringutils.h | #ifndef STRINGUTILS_H
#define STRINGUTILS_H
#include <vector>
#include <string>
namespace stringutils
{
std::vector<std::string> split(const std::string& s, char delim, bool ignore_empty=false);
std::string join(const std::vector<std::string>& v, const std::string& delim);
std::string trim(const std::string& s,... | 688 | C++ | .h | 16 | 40.8125 | 92 | 0.738416 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,883 | zip.h | ColinPitrat_caprice32/src/zip.h | #ifndef ZIP_H
#define ZIP_H
#include <string>
#include <vector>
#include "types.h"
namespace zip
{
typedef struct {
std::string filename;
std::string extensions;
std::vector<std::pair<std::string, dword>> filesOffsets;
unsigned int dwOffset;
} t_zip_info;
int dir (t_zip_info *zi);
int extract... | 372 | C++ | .h | 17 | 19.235294 | 60 | 0.703704 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,884 | savepng.h | ColinPitrat_caprice32/src/savepng.h | #ifndef _SDL_SAVEPNG
#define _SDL_SAVEPNG
/*
* SDL_SavePNG -- libpng-based SDL_Surface writer.
*
* This code is free software, available under zlib/libpng license.
* http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
* Code was copied and slightly adapted from driedfruit savepng.
* See https://github.com/driedf... | 720 | C++ | .h | 23 | 29.521739 | 76 | 0.745324 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,885 | memutils.h | ColinPitrat_caprice32/src/memutils.h | #ifndef MEMUTILS_H
#define MEMUTILS_H
namespace memutils
{
template<typename cap32_cb>
class scope_exit {
cap32_cb cb;
bool upd {true};
public:
scope_exit(cap32_cb _cb) : cb(std::move(_cb)) {}
scope_exit(const scope_exit &) = delete;
scope_exit& operator=(const scope_exit &) = delete;
sco... | 475 | C++ | .h | 24 | 15.666667 | 55 | 0.59375 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,886 | crtc.h | ColinPitrat_caprice32/src/crtc.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 late... | 1,910 | C++ | .h | 64 | 26.5 | 96 | 0.735438 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,887 | errors.h | ColinPitrat_caprice32/src/errors.h | #ifndef ERROR_H
#define ERROR_H
#define ERR_INPUT_INIT 1
#define ERR_VIDEO_INIT 2
#define ERR_VIDEO_SET_MODE 3
#define ERR_VIDEO_SURFACE 4
#define ERR_VIDEO_PALETTE 5
#define ERR_VIDEO_COLOUR_DEPTH 6
#define ERR_AUDIO_INIT 7
#define ERR_AUDIO_RATE 8
#define... | 1,258 | C++ | .h | 37 | 32.918919 | 35 | 0.617406 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,888 | asic.h | ColinPitrat_caprice32/src/asic.h | /* Caprice32 - Amstrad CPC Emulator
The ASIC of the Plus range replaces multiple parts of the old CPC and
provides new additional features.
This file only concern the new features.
More details on what those features are is available here:
- http://www.cpcwiki.eu/index.php/Arnold_V_Specs_Revised
*/
#i... | 1,206 | C++ | .h | 48 | 22.604167 | 72 | 0.750218 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,889 | z80_disassembly.h | ColinPitrat_caprice32/src/z80_disassembly.h | #ifndef Z80_DISASSEMBLY_H
#define Z80_DISASSEMBLY_H
#include "types.h"
#include <map>
#include <optional>
#include <set>
#include <string>
#include <vector>
class OpCode {
public:
OpCode() = default;
OpCode(int value, int length, int argsize, std::string instruction);
int value_;
int length_;
i... | 1,416 | C++ | .h | 42 | 30.404762 | 105 | 0.735099 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,890 | log.h | ColinPitrat_caprice32/src/log.h | #ifndef LOG_H
#define LOG_H
#include <iostream>
extern bool log_verbose;
#define LOG_TO(stream,level,message) stream << (level) << " " << __FILE__ << ":" << __LINE__ << " - " << message << std::endl; // NOLINT(misc-macro-parentheses): Not having parentheses around message is a feature, it allows using streams in LOG... | 759 | C++ | .h | 15 | 49.2 | 251 | 0.700542 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,891 | glfuncs.h | ColinPitrat_caprice32/src/glfuncs.h | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 late... | 2,069 | C++ | .h | 50 | 39.36 | 202 | 0.771457 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,892 | wg_message_client.h | ColinPitrat_caprice32/src/gui/includes/wg_message_client.h | // wg_message_client.h
//
// CMessageClient interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//... | 1,735 | C++ | .h | 48 | 34.395833 | 99 | 0.769277 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,893 | wg_window.h | ColinPitrat_caprice32/src/gui/includes/wg_window.h | // wg_window.h
//
// CWindow interface
// this serves as the base of all window derived classes
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by ... | 11,400 | C++ | .h | 211 | 51.853081 | 148 | 0.769985 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,894 | wg_menu.h | ColinPitrat_caprice32/src/gui/includes/wg_menu.h | // wg_menu.h
//
// CMenu interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the... | 12,389 | C++ | .h | 231 | 51.484848 | 157 | 0.761298 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,895 | CapriceLoadSave.h | ColinPitrat_caprice32/src/gui/includes/CapriceLoadSave.h | // 'Load/save' box for Caprice32
#ifndef _WG_CAPRICE32LOADSAVE_H_
#define _WG_CAPRICE32LOADSAVE_H_
#include "wg_button.h"
#include "wg_dropdown.h"
#include "wg_editbox.h"
#include "wg_label.h"
#include "wg_listbox.h"
#include "wg_frame.h"
#include "wg_navigationbar.h"
#include <string>
class CapriceLoadSaveTest;
na... | 1,695 | C++ | .h | 45 | 31.644444 | 150 | 0.694275 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,896 | CapriceGuiView.h | ColinPitrat_caprice32/src/gui/includes/CapriceGuiView.h | #ifndef CAPRICEGUIVIEW_H
#define CAPRICEGUIVIEW_H
#include "wg_view.h"
#include "wg_frame.h"
class CapriceGuiView : public wGui::CView
{
protected:
wGui::CFrame *m_menuFrame;
public:
CapriceGuiView(wGui::CApplication& application, SDL_Surface* surface, SDL_Surface* backSurface, const wGui::CRect& WindowR... | 464 | C++ | .h | 13 | 33.076923 | 131 | 0.780269 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,897 | wg_view.h | ColinPitrat_caprice32/src/gui/includes/wg_view.h | // wg_view.h
//
// CView interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the... | 3,924 | C++ | .h | 86 | 43.383721 | 132 | 0.745407 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,898 | CapriceRomSlots.h | ColinPitrat_caprice32/src/gui/includes/CapriceRomSlots.h | // Caprice32 ROM slot selection window
// Inherited from CFrame
#ifndef _WG_CAPRICE32ROMSLOTS_H_
#define _WG_CAPRICE32ROMSLOTS_H_
#include "wg_button.h"
#include "wg_frame.h"
#include "wg_label.h"
#include "wg_listbox.h"
#include <string>
namespace wGui
{
class CapriceRomSlots : public CFrame {
public:
... | 1,868 | C++ | .h | 36 | 45.805556 | 163 | 0.71083 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,899 | wg_checkbox.h | ColinPitrat_caprice32/src/gui/includes/wg_checkbox.h | //
// CCheckBox interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License,... | 3,963 | C++ | .h | 91 | 41.604396 | 109 | 0.761508 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,900 | wg_button.h | ColinPitrat_caprice32/src/gui/includes/wg_button.h | // wg_button.h
//
// CButton interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of... | 5,454 | C++ | .h | 121 | 43.07438 | 157 | 0.762984 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,901 | CapriceVKeyboard.h | ColinPitrat_caprice32/src/gui/includes/CapriceVKeyboard.h | #ifndef _WG_CAPRICEVKEYBOARD_H_
#define _WG_CAPRICEVKEYBOARD_H_
#include "wg_button.h"
#include "wg_editbox.h"
#include "wg_frame.h"
#include <string>
namespace wGui
{
class CapriceVKeyboard : public CFrame
{
public:
CapriceVKeyboard(const CRect& WindowRect, CWindow* pParent, CFontEngine* pFontEngine);
... | 887 | C++ | .h | 28 | 27.214286 | 92 | 0.713615 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,902 | wg_rect.h | ColinPitrat_caprice32/src/gui/includes/wg_rect.h | // wg_rect.h
//
// CRect class interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 ... | 9,218 | C++ | .h | 195 | 45.107692 | 119 | 0.705521 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,903 | wg_dropdown.h | ColinPitrat_caprice32/src/gui/includes/wg_dropdown.h | // wg_dropdown.h
//
// CDropDown interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.... | 6,111 | C++ | .h | 118 | 49.813559 | 157 | 0.760497 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,904 | wg_frame.h | ColinPitrat_caprice32/src/gui/includes/wg_frame.h | // wg_frame.h
//
// CFrame interface
// Frames are windows within a view that have their own window management controls
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// ... | 6,601 | C++ | .h | 120 | 52.991667 | 143 | 0.763264 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,905 | CapriceMemoryTool.h | ColinPitrat_caprice32/src/gui/includes/CapriceMemoryTool.h | // 'Memory tool' window for Caprice32
#ifndef _WG_CAPRICE32MEMORYTOOL_H_
#define _WG_CAPRICE32MEMORYTOOL_H_
#include "wg_button.h"
#include "wg_dropdown.h"
#include "wg_editbox.h"
#include "wg_frame.h"
#include "wg_label.h"
#include "wg_textbox.h"
namespace wGui
{
class CapriceMemoryTool : public CFrame {
... | 1,801 | C++ | .h | 49 | 30 | 150 | 0.678326 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,906 | CapriceDevToolsView.h | ColinPitrat_caprice32/src/gui/includes/CapriceDevToolsView.h | // Developers' tools for Caprice32
#ifndef _WG_CAPRICEDEVTOOLSVIEW_H
#define _WG_CAPRICEDEVTOOLSVIEW_H
#include <string>
#include "wg_point.h"
#include "wg_rect.h"
#include "wg_view.h"
#include "CapriceDevTools.h"
class DevTools;
constexpr int DEVTOOLS_WIDTH = 640;
constexpr int DEVTOOLS_HEIGHT = 480;
class Caprice... | 1,003 | C++ | .h | 28 | 32.714286 | 176 | 0.764523 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,907 | wg_textbox.h | ColinPitrat_caprice32/src/gui/includes/wg_textbox.h | // wg_textbox.h
//
// CTextBox interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 ... | 7,785 | C++ | .h | 147 | 50.979592 | 157 | 0.766316 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,908 | cap_flag.h | ColinPitrat_caprice32/src/gui/includes/cap_flag.h | // cap_flag.h
//
// A widget combining a label, a field and a tooltip for displaying the content
// of a z80 flag.
#ifndef _CAP_FLAG_H_
#define _CAP_FLAG_H_
#include <string>
#include "wg_window.h"
#include "wg_painter.h"
#include "wg_label.h"
#include "wg_editbox.h"
#include "wg_tooltip.h"
namespace wGui
{
//! A c... | 1,567 | C++ | .h | 42 | 35.428571 | 157 | 0.731304 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,909 | CapriceMenu.h | ColinPitrat_caprice32/src/gui/includes/CapriceMenu.h | // 'Menu' window for Caprice32
// Inherited from CFrame
#ifndef _WG_CAPRICE32MENU_H_
#define _WG_CAPRICE32MENU_H_
#include "wg_frame.h"
#include "wg_button.h"
namespace wGui
{
enum class MenuItem {
NONE,
OPTIONS,
LOAD_SAVE,
MEMORY_TOOL,
RESET,
ABOUT,
RESUME,
QUIT
};
class Capri... | 1,552 | C++ | .h | 47 | 28.042553 | 148 | 0.693548 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,910 | wg_point.h | ColinPitrat_caprice32/src/gui/includes/wg_point.h | // wg_point.h
//
// CPoint class interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.... | 3,557 | C++ | .h | 89 | 38.067416 | 98 | 0.703693 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,911 | wg_fontengine.h | ColinPitrat_caprice32/src/gui/includes/wg_fontengine.h | // wg_font.h
//
// CFontEngine interface
// CFontEngine uses the FreeType 2 library
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free ... | 2,535 | C++ | .h | 63 | 38.68254 | 94 | 0.762408 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,912 | CapriceDevTools.h | ColinPitrat_caprice32/src/gui/includes/CapriceDevTools.h | // 'DevTools' window for Caprice32
#ifndef _WG_CAPRICE32DEVTOOLS_H_
#define _WG_CAPRICE32DEVTOOLS_H_
#include "z80_disassembly.h"
#include "cap32.h"
#include "symfile.h"
#include "types.h"
#include "cap_flag.h"
#include "cap_register.h"
#include "wg_checkbox.h"
#include "wg_dropdown.h"
#include "wg_frame.h"
#include ... | 9,970 | C++ | .h | 272 | 28.503676 | 150 | 0.66207 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,913 | wg_navigationbar.h | ColinPitrat_caprice32/src/gui/includes/wg_navigationbar.h | // wg_navigationbar.h
//
// A navigation bar like in the Firefox 1.x preferences window.
// It is like a horizontal or vertical variant of a listbox,
// in which only 1 item can be selected at once.
// Besides text, each item can also have an picture.
//
// This library is free software; you can redistribute it and/or
... | 7,388 | C++ | .h | 137 | 51.79562 | 157 | 0.761258 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,914 | wg_toolbar.h | ColinPitrat_caprice32/src/gui/includes/wg_toolbar.h | // wg_toolbar.h
//
// CToolBar class interface
//
//
// Copyright (c) 2002-2004 Rob Wiskow
// rob-dev@boxedchaos.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// versio... | 4,524 | C++ | .h | 88 | 49.465909 | 176 | 0.764813 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.