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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18,298 | sleeptimer.h | hluk_CopyQ/src/common/sleeptimer.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SLEEPTIMER_H
#define SLEEPTIMER_H
#include <QCoreApplication>
#include <QElapsedTimer>
class SleepTimer final
{
public:
explicit SleepTimer(int timeoutMs, int minSleepCount = 2)
: m_timeoutMs(timeoutMs)
, m_minSleepCount(minSleepCount)
{
... | 786 | C++ | .h | 33 | 19.151515 | 69 | 0.66129 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,299 | appconfig.h | hluk_CopyQ/src/common/appconfig.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef APPCONFIG_H
#define APPCONFIG_H
#include "common/navigationstyle.h"
#include "common/settings.h"
class QString;
class QVariant;
QString defaultClipboardTabName();
namespace Config {
const int maxItems = 100'000;
template<typename ValueType>
struct Config {
... | 18,630 | C++ | .h | 464 | 36.140086 | 104 | 0.698301 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,300 | temporaryfile.h | hluk_CopyQ/src/common/temporaryfile.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TEMPORARYFILE_H
#define TEMPORARYFILE_H
class QString;
class QTemporaryFile;
bool openTemporaryFile(QTemporaryFile *file, const QString &suffix);
#endif // TEMPORARYFILE_H
| 228 | C++ | .h | 7 | 31.142857 | 68 | 0.825688 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,301 | sanitize_text_document.h | hluk_CopyQ/src/common/sanitize_text_document.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SANITIZE_TEXT_DOCUMENT_H
#define SANITIZE_TEXT_DOCUMENT_H
class QTextDocument;
void sanitizeTextDocument(QTextDocument *document);
#endif // SANITIZE_TEXT_DOCUMENT_H
| 223 | C++ | .h | 6 | 35.5 | 51 | 0.826291 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,302 | predefinedcommands.h | hluk_CopyQ/src/common/predefinedcommands.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef PREDEFINEDCOMMANDS_H
#define PREDEFINEDCOMMANDS_H
#include "common/command.h"
#include <QtContainerFwd>
QVector<Command> predefinedCommands();
#endif // PREDEFINEDCOMMANDS_H
| 232 | C++ | .h | 7 | 31.428571 | 44 | 0.822727 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,303 | temporarysettings.h | hluk_CopyQ/src/common/temporarysettings.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TEMPORARYSETTINGS_H
#define TEMPORARYSETTINGS_H
#include <QSettings>
/**
* Temporary ini settings which is removed after destroyed.
*
* Use this to get ini as data instead of saving to a file.
*/
class TemporarySettings final
{
public:
/// Creates temporar... | 837 | C++ | .h | 26 | 28.961538 | 73 | 0.752809 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,304 | action.h | hluk_CopyQ/src/common/action.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ACTION_H
#define ACTION_H
#include <QStringList>
#include <QVariantMap>
class QAction;
class QProcess;
/**
* Terminate process or kill if it takes too long.
*/
void terminateProcess(QProcess *p);
/**
* Execute external program and emits signals
* to create o... | 3,546 | C++ | .h | 95 | 32.831579 | 96 | 0.699649 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,305 | commandstatus.h | hluk_CopyQ/src/common/commandstatus.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMANDSTATUS_H
#define COMMANDSTATUS_H
/** Command status. */
enum CommandStatus {
/** Script finished */
CommandFinished = 0,
/** Script finished with exit code 1 (fail() was called) */
CommandError = 1,
/** Bad command syntax */
CommandBa... | 651 | C++ | .h | 23 | 24.130435 | 63 | 0.680129 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,306 | compatibility.h | hluk_CopyQ/src/common/compatibility.h | #pragma once
#include <QtGlobal>
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
# define SKIP_EMPTY_PARTS Qt::SkipEmptyParts
#else
# define SKIP_EMPTY_PARTS QString::SkipEmptyParts
#endif
| 190 | C++ | .h | 7 | 25.857143 | 51 | 0.773481 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,307 | textdata.h | hluk_CopyQ/src/common/textdata.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TEXTDATA_H
#define TEXTDATA_H
#include <QVariantMap>
class QByteArray;
class QString;
uint hash(const QVariantMap &data);
QString quoteString(const QString &str);
QString escapeHtml(const QString &str);
QString getTextData(const QByteArray &bytes);
/**
* Get... | 1,083 | C++ | .h | 25 | 41.56 | 78 | 0.801344 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,308 | settings.h | hluk_CopyQ/src/common/settings.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QSettings>
class QString;
/**
* Simple wrapper class for QSettings.
*/
class Settings final : public QSettings
{
public:
Settings();
explicit Settings(const QString &path);
Settings(const Settings &) = delete;
Settings &operator... | 353 | C++ | .h | 15 | 20.933333 | 51 | 0.728916 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,309 | command.h | hluk_CopyQ/src/common/command.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMAND_H
#define COMMAND_H
#include <QString>
#include <QStringList>
#include <QRegularExpression>
namespace CommandType {
enum CommandType {
None = 0,
Invalid = 1,
Automatic = 1 << 1,
GlobalShortcut = 1 << 2,
Menu = 1 << 3,
Script = 1 << ... | 3,465 | C++ | .h | 106 | 28.537736 | 76 | 0.68231 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,310 | clipboardmode.h | hluk_CopyQ/src/common/clipboardmode.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CLIPBOARDMODE_H
#define CLIPBOARDMODE_H
enum class ClipboardMode {
Clipboard,
Selection,
};
#endif // CLIPBOARDMODE_H
| 182 | C++ | .h | 8 | 20.375 | 44 | 0.77193 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,311 | display.h | hluk_CopyQ/src/common/display.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef DISPLAY_H
#define DISPLAY_H
class QPoint;
class QWidget;
int smallIconSize();
QPoint toScreen(QPoint pos, QWidget *w);
int pointsToPixels(int points, QWidget *w = nullptr);
#endif // DISPLAY_H
| 252 | C++ | .h | 9 | 26.333333 | 53 | 0.780591 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,312 | option.h | hluk_CopyQ/src/common/option.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef OPTION_H
#define OPTION_H
#include <QVariant>
class QObject;
/**
* Configuration option.
*/
class Option final {
public:
Option();
/**
* Create option with a default value.
* Current value is taken from object's property.
*/
explicit... | 1,118 | C++ | .h | 44 | 20.477273 | 77 | 0.645951 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,313 | common.h | hluk_CopyQ/src/common/common.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMON_H
#define COMMON_H
#include <QtGlobal> // Q_WS_*
#include <QStringList>
#include <QVariantMap>
class QByteArray;
class QDropEvent;
class QFont;
class QKeyEvent;
class QMimeData;
class QProcess;
class QString;
bool isMainThread();
QByteArray makeClipboardO... | 2,896 | C++ | .h | 75 | 35.773333 | 117 | 0.731071 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,314 | globalshortcutcommands.h | hluk_CopyQ/src/common/globalshortcutcommands.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef GLOBALSHORTCUTCOMMANDS_H
#define GLOBALSHORTCUTCOMMANDS_H
#include "common/command.h"
#include <QtContainerFwd>
class QString;
QVector<Command> globalShortcutCommands();
QString pasteAsPlainTextScript(const QString &what);
#endif // GLOBALSHORTCUTCOMMANDS_H
| 318 | C++ | .h | 9 | 33.555556 | 52 | 0.84106 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,315 | contenttype.h | hluk_CopyQ/src/common/contenttype.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CONTENTTYPE_H
#define CONTENTTYPE_H
#include <Qt>
/**
* Enum values are used in ClipboardModel class to fetch or set data from ClipboardItem.
* @see ClipboardModel:setData(), ClipboardModel::data()
*/
namespace contentType {
enum {
/**
* Set/get data ... | 867 | C++ | .h | 34 | 21.441176 | 100 | 0.672749 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,316 | server.h | hluk_CopyQ/src/common/server.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SERVER_H
#define SERVER_H
#include <QMetaType>
#include <QObject>
#include <memory>
class ClientSocket;
class QEventLoop;
class QLocalServer;
using ClientSocketPtr = std::shared_ptr<ClientSocket>;
Q_DECLARE_METATYPE(ClientSocketPtr)
class Server final : public ... | 727 | C++ | .h | 29 | 22.068966 | 68 | 0.754386 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,317 | tabs.h | hluk_CopyQ/src/common/tabs.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TABS_H
#define TABS_H
#include <QString>
#include <QStringList>
#include <memory>
class QSettings;
struct TabProperties {
QString name;
QString iconName;
int maxItemCount = 0;
bool storeItems = true;
};
class Tabs
{
public:
Tabs();
~Tabs... | 676 | C++ | .h | 28 | 20.892857 | 62 | 0.729984 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,318 | actionoutput.h | hluk_CopyQ/src/common/actionoutput.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ACTIONOUTPUT_H
#define ACTIONOUTPUT_H
class Action;
class MainWindow;
class QString;
class QRegularExpression;
class QModelIndex;
void actionOutput(
MainWindow *wnd,
Action *action,
const QString &outputItemFormat,
const QString &ou... | 730 | C++ | .h | 28 | 20.285714 | 47 | 0.689655 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,319 | log.h | hluk_CopyQ/src/common/log.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef LOG_H
#define LOG_H
class QByteArray;
class QString;
enum LogLevel {
LogAlways,
LogError,
LogWarning,
LogNote,
LogDebug,
LogTrace
};
void initLogging();
const QString &logFileName();
QByteArray readLogFile(int maxReadSize);
bool removeL... | 962 | C++ | .h | 30 | 29.733333 | 100 | 0.762009 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,320 | timer.h | hluk_CopyQ/src/common/timer.h | #ifndef TIMER_H
#define TIMER_H
#include <QTimer>
template <typename Receiver, typename Slot>
void initSingleShotTimer(QTimer *timer, int milliseconds, const Receiver *receiver, Slot slot)
{
timer->setSingleShot(true);
timer->setInterval(milliseconds);
Q_ASSERT(receiver);
if (!receiver)
retur... | 569 | C++ | .h | 16 | 32 | 94 | 0.733577 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,321 | commandstore.h | hluk_CopyQ/src/common/commandstore.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMANDSTORE_H
#define COMMANDSTORE_H
#include "common/command.h"
#include <QVector>
class QSettings;
using Commands = QVector<Command>;
Commands loadAllCommands();
void saveCommands(const Commands &commands);
Commands loadCommands(QSettings *settings);
void s... | 573 | C++ | .h | 15 | 36.6 | 65 | 0.834244 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,322 | mimetypes.h | hluk_CopyQ/src/common/mimetypes.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
class QLatin1String;
#define COPYQ_MIME_PREFIX "application/x-copyq-"
// Prefix for MIME format not visible to user for data private to plugins.
#define COPYQ_MIME_PRIVATE_PREFIX COPYQ_MIME_PREFIX "private-"
extern const QLatin1String mimePrivatePrefix;
exter... | 1,097 | C++ | .h | 26 | 41.076923 | 74 | 0.875468 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,323 | shortcuts.h | hluk_CopyQ/src/common/shortcuts.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SHORTCUTS_H
#define SHORTCUTS_H
class QString;
class QKeySequence;
/**
* Shortcut to remove items, formats etc.
*/
QString shortcutToRemove();
QString portableShortcutText(const QKeySequence &shortcut);
QString toPortableShortcutText(const QString &shortcutNat... | 557 | C++ | .h | 16 | 33.1875 | 67 | 0.787992 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,324 | processsignals.h | hluk_CopyQ/src/common/processsignals.h | #ifndef PROCESSSIGNALS_H
#define PROCESSSIGNALS_H
#include <QObject>
#include <QProcess>
template <typename Receiver>
void connectProcessFinished(QProcess *process, Receiver *receiver, void (Receiver::*slot)())
{
const auto processFinishedSignal = static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProce... | 1,076 | C++ | .h | 26 | 38.038462 | 119 | 0.751196 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,325 | config.h | hluk_CopyQ/src/common/config.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CONFIG_H
#define CONFIG_H
class QByteArray;
class QPoint;
class QString;
class QVariant;
class QWidget;
bool ensureSettingsDirectoryExists();
const QString &getConfigurationFilePath();
QString getConfigurationFilePath(const char *suffix);
const QString &setting... | 999 | C++ | .h | 23 | 41.782609 | 87 | 0.851197 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,326 | scriptabledir.h | hluk_CopyQ/src/scriptable/scriptabledir.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SCRIPTABLEDIR_H
#define SCRIPTABLEDIR_H
#include <QDir>
#include <QObject>
#include <QJSValue>
class ScriptableDir final : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE explicit ScriptableDir(const QString &path = QString());
~ScriptableDir();
public... | 2,357 | C++ | .h | 68 | 30.279412 | 80 | 0.732778 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,327 | commandhelp.h | hluk_CopyQ/src/scriptable/commandhelp.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMANDHELP_H
#define COMMANDHELP_H
#include <QList>
#include <QString>
struct CommandHelp {
CommandHelp();
CommandHelp(const char *command, const QString &description);
CommandHelp &addArg(const QString &arg);
QString toString() const;
QSt... | 429 | C++ | .h | 16 | 23.5 | 65 | 0.74505 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,328 | scriptable.h | hluk_CopyQ/src/scriptable/scriptable.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SCRIPTABLE_H
#define SCRIPTABLE_H
#include "common/clipboardmode.h"
#include "common/command.h"
#include "common/mimetypes.h"
#include <QObject>
#include <QString>
#include <QJSValue>
#include <QVariantMap>
#include <QVector>
#include "platform/platformnativeinte... | 16,605 | C++ | .h | 442 | 32.511312 | 106 | 0.738116 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,329 | scriptvaluefactory.h | hluk_CopyQ/src/scriptable/scriptvaluefactory.h | // SPDX-License-Identifier: GPL-3.0-or-later
#include "common/command.h"
#include "scriptable/scriptablebytearray.h"
#include "scriptable/scriptablefile.h"
#include <QFileInfo>
#include <QJSEngine>
#include <QJSValueIterator>
#include <QRegularExpression>
#include <QUrl>
static QFile *getFile(const QJSValue &value, ... | 12,857 | C++ | .h | 289 | 37.522491 | 113 | 0.684644 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,330 | scriptablefile.h | hluk_CopyQ/src/scriptable/scriptablefile.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SCRIPTABLEFILE_H
#define SCRIPTABLEFILE_H
#include <QJSValue>
#include <QObject>
class QJSEngine;
class QFile;
class ScriptableFile : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE explicit ScriptableFile(const QString &path = QString());
public slots:
... | 1,253 | C++ | .h | 50 | 20.94 | 73 | 0.699242 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,331 | scriptableproxy.h | hluk_CopyQ/src/scriptable/scriptableproxy.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SCRIPTABLEPROXY_H
#define SCRIPTABLEPROXY_H
#include "common/clipboardmode.h"
#include "common/command.h"
#include "gui/clipboardbrowser.h"
#include "gui/notificationbutton.h"
#include <QList>
#include <QMetaObject>
#include <QObject>
#include <QPersistentModelInd... | 10,881 | C++ | .h | 248 | 39.391129 | 120 | 0.767764 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,332 | scriptoverrides.h | hluk_CopyQ/src/scriptable/scriptoverrides.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
namespace ScriptOverrides {
enum ScriptOverrides {
Paste = 0,
OnItemsAdded = 1,
OnItemsRemoved = 2,
OnItemsChanged = 3,
OnTabSelected = 4,
OnItemsLoaded = 5,
};
}
| 246 | C++ | .h | 12 | 17.416667 | 44 | 0.699571 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,333 | scriptablesettings.h | hluk_CopyQ/src/scriptable/scriptablesettings.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SCRIPTABLESETTINGS_H
#define SCRIPTABLESETTINGS_H
#include <QJSValue>
#include <QObject>
#include <QSettings>
class ScriptableSettings final : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE explicit ScriptableSettings();
Q_INVOKABLE explicit ScriptableS... | 1,717 | C++ | .h | 35 | 45.371429 | 141 | 0.729117 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,334 | scriptabletemporaryfile.h | hluk_CopyQ/src/scriptable/scriptabletemporaryfile.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SCRIPTABLETEMPORARYFILE_H
#define SCRIPTABLETEMPORARYFILE_H
#include "scriptablefile.h"
class QJSValue;
class QTemporaryFile;
class ScriptableTemporaryFile final : public ScriptableFile
{
Q_OBJECT
public:
Q_INVOKABLE explicit ScriptableTemporaryFile(const... | 653 | C++ | .h | 22 | 26.636364 | 82 | 0.784566 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,335 | scriptableitemselection.h | hluk_CopyQ/src/scriptable/scriptableitemselection.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QJSValue>
#include <QObject>
class ScriptableProxy;
class ScriptableItemSelection final : public QObject
{
Q_OBJECT
Q_PROPERTY(QJSValue length READ length)
Q_PROPERTY(QJSValue tab READ tab)
public:
Q_INVOKABLE explicit ScriptableIt... | 1,476 | C++ | .h | 44 | 29.068182 | 91 | 0.738483 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,336 | scriptablebytearray.h | hluk_CopyQ/src/scriptable/scriptablebytearray.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SCRIPTABLEBYTEARRAY_H
#define SCRIPTABLEBYTEARRAY_H
#include <QByteArray>
#include <QJSValue>
#include <QObject>
#include <QVariant>
class ScriptableByteArray final : public QObject
{
Q_OBJECT
Q_PROPERTY(QJSValue length READ length WRITE setLength)
publi... | 1,625 | C++ | .h | 49 | 29.163265 | 70 | 0.747592 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,337 | platformclipboard.h | hluk_CopyQ/src/platform/platformclipboard.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef PLATFORMCLIPBOARD_H
#define PLATFORMCLIPBOARD_H
#include "common/clipboardmode.h"
#include <QObject>
#include <QVariantMap>
class QMimeData;
/**
* Interface for clipboard.
*/
class PlatformClipboard : public QObject
{
Q_OBJECT
public:
/**
* Starts... | 1,239 | C++ | .h | 37 | 29.621622 | 87 | 0.737374 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,338 | platformnativeinterface.h | hluk_CopyQ/src/platform/platformnativeinterface.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef PLATFORMNATIVEINTERFACE_H
#define PLATFORMNATIVEINTERFACE_H
#include <QWidget> // WId
#include <memory>
class QApplication;
class QCoreApplication;
class QDir;
class QGuiApplication;
class QKeyEvent;
class PlatformWindow;
class PlatformClipboard;
using Platform... | 3,879 | C++ | .h | 111 | 30.072072 | 96 | 0.706684 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,339 | platformwindow.h | hluk_CopyQ/src/platform/platformwindow.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef PLATFORMWINDOW_H
#define PLATFORMWINDOW_H
#include <QByteArray>
class QString;
/**
* Window storage class for platform. Used to raise/focus window and paste to window.
*/
class PlatformWindow
{
public:
PlatformWindow() = default;
virtual ~PlatformWindo... | 826 | C++ | .h | 33 | 20.969697 | 85 | 0.670077 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,340 | platformcommon.h | hluk_CopyQ/src/platform/platformcommon.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
class AppConfig;
class PlatformWindow;
bool pasteWithCtrlV(PlatformWindow &window, const AppConfig &config);
void waitMs(int msec);
| 194 | C++ | .h | 6 | 30.666667 | 69 | 0.820652 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,341 | dummyclipboard.h | hluk_CopyQ/src/platform/dummy/dummyclipboard.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef DUMMYCLIPBOARD_H
#define DUMMYCLIPBOARD_H
#include "common/clipboardmode.h"
#include "platform/platformclipboard.h"
#include <QClipboard>
QClipboard::Mode modeToQClipboardMode(ClipboardMode mode);
class DummyClipboard : public PlatformClipboard
{
public:
voi... | 1,208 | C++ | .h | 26 | 42.923077 | 92 | 0.798801 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,342 | dummyplatform.h | hluk_CopyQ/src/platform/dummy/dummyplatform.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef DUMMYPLATFORM_H
#define DUMMYPLATFORM_H
#include "platform/platformnativeinterface.h"
#include <QKeyEvent>
#include <QString>
class DummyPlatform : public PlatformNativeInterface
{
public:
PlatformWindowPtr getWindow(WId) override { return PlatformWindowPtr()... | 1,463 | C++ | .h | 29 | 46.206897 | 89 | 0.78187 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,343 | unixsignalhandler.h | hluk_CopyQ/src/platform/unix/unixsignalhandler.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef UNIXSIGNALHANDLER_H
#define UNIXSIGNALHANDLER_H
/**
* Gracefully exit application on Unix signals SIGHUP, SIGINT and SIGTERM.
*
* More info at http://qt-project.org/doc/qt-4.8/unix-signals.html
*/
bool initUnixSignalHandler();
void startUnixSignalHandler();
#... | 349 | C++ | .h | 11 | 30 | 74 | 0.787425 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,344 | x11platformclipboard.h | hluk_CopyQ/src/platform/x11/x11platformclipboard.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef X11PLATFORMCLIPBOARD_H
#define X11PLATFORMCLIPBOARD_H
#include "platform/dummy/dummyclipboard.h"
#include <QByteArray>
#include <QStringList>
#include <QTimer>
class X11PlatformClipboard final : public DummyClipboard
{
public:
X11PlatformClipboard();
voi... | 2,070 | C++ | .h | 54 | 32.703704 | 87 | 0.745245 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,345 | x11platformwindow.h | hluk_CopyQ/src/platform/x11/x11platformwindow.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef X11PLATFORMWINDOW_H
#define X11PLATFORMWINDOW_H
#include "platform/platformwindow.h"
#include <memory>
class AppConfig;
class QWidget;
class X11PlatformWindow final : public PlatformWindow
{
public:
explicit X11PlatformWindow();
explicit X11PlatformWind... | 664 | C++ | .h | 23 | 25.478261 | 70 | 0.771565 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,346 | x11info.h | hluk_CopyQ/src/platform/x11/x11info.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-identifier"
typedef struct _XDisplay Display;
#pragma clang diagnostic pop
class X11Info {
public:
static bool isPlatformX11();
static Display *display();
};
| 302 | C++ | .h | 11 | 25.454545 | 56 | 0.791667 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,347 | x11platform.h | hluk_CopyQ/src/platform/x11/x11platform.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef X11PLATFORM_H
#define X11PLATFORM_H
#include "platform/platformnativeinterface.h"
#include <QKeyEvent>
#include <QString>
class X11Platform final : public PlatformNativeInterface
{
public:
X11Platform() = default;
~X11Platform();
PlatformWindowPtr g... | 1,829 | C++ | .h | 41 | 39.902439 | 99 | 0.754535 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,348 | waylandclipboard.h | hluk_CopyQ/src/platform/x11/systemclipboard/waylandclipboard.h | /*
SPDX-FileCopyrightText: 2020 David Edmundson <davidedmundson@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <QClipboard>
#include <QObject>
#include <memory>
class DataControlDevice;
class DataControlDeviceManager;
class QMimeData;
class WaylandClipboard final : public QObje... | 939 | C++ | .h | 30 | 27.966667 | 73 | 0.767519 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,349 | winplatform.h | hluk_CopyQ/src/platform/win/winplatform.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef WINPLATFORM_H
#define WINPLATFORM_H
#include "platform/platformnativeinterface.h"
class WinPlatform final : public PlatformNativeInterface
{
public:
WinPlatform() {}
PlatformWindowPtr getWindow(WId winId) override;
PlatformWindowPtr getCurrentWindow(... | 1,455 | C++ | .h | 29 | 45.655172 | 100 | 0.779202 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,350 | winplatformwindow.h | hluk_CopyQ/src/platform/win/winplatformwindow.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef WINPLATFORMWINDOW_H
#define WINPLATFORMWINDOW_H
#include "platform/platformwindow.h"
#ifndef WINVER
#define WINVER 0x0500
#endif
#include <qt_windows.h>
class AppConfig;
class WinPlatformWindow final : public PlatformWindow
{
public:
explicit WinPlatformWind... | 599 | C++ | .h | 22 | 24.454545 | 72 | 0.782686 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,351 | winplatformclipboard.h | hluk_CopyQ/src/platform/win/winplatformclipboard.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef WINPLATFORMCLIPBOARD_H
#define WINPLATFORMCLIPBOARD_H
#include "platform/dummy/dummyclipboard.h"
#include <qt_windows.h>
class WinPlatformClipboard final : public DummyClipboard
{
public:
void startMonitoring(const QStringList &) override;
bool isHidden(... | 630 | C++ | .h | 19 | 30 | 75 | 0.792703 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,352 | mactimer.h | hluk_CopyQ/src/platform/mac/mactimer.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef MACTIMER_H
#define MACTIMER_H
#include <QObject>
#ifdef __OBJC__
@class NSTimer;
#else
using NSTimer = void;
#endif
/**
* Class similar to a QTimer but allows setting a tolerance, which
* makes timers more battery-friendly on OSX.
*/
class MacTimer final : pub... | 1,093 | C++ | .h | 44 | 21.272727 | 66 | 0.69372 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,353 | copyqpasteboardmime.h | hluk_CopyQ/src/platform/mac/copyqpasteboardmime.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QtGlobal>
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
# include <QUtiMimeConverter>
using CopyqPasteboardMimeBase = QUtiMimeConverter;
#else
# include <QMacPasteboardMime>
using CopyqPasteboardMimeBase = QMacPasteboardMime;
#endif
/**
* Class for... | 2,023 | C++ | .h | 40 | 48.075 | 152 | 0.783729 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,354 | macplatform.h | hluk_CopyQ/src/platform/mac/macplatform.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef MACPLATFORM_H
#define MACPLATFORM_H
#include "platform/platformnativeinterface.h"
#include <QKeyEvent>
#include <QString>
class MacPlatform final : public PlatformNativeInterface
{
public:
MacPlatform();
PlatformWindowPtr getWindow(WId winId) override;
... | 1,379 | C++ | .h | 30 | 41.8 | 89 | 0.785714 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,355 | macplatformwindow.h | hluk_CopyQ/src/platform/mac/macplatformwindow.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef MACPLATFORMWINDOW_H
#define MACPLATFORMWINDOW_H
#include "platform/platformwindow.h"
// For WId
#include <QWidget>
#ifdef __OBJC__
@class NSWindow;
@class NSRunningApplication;
#else
using NSWindow = void;
using NSRunningApplication = void;
#endif
class MacPlatf... | 995 | C++ | .h | 37 | 23.540541 | 77 | 0.749736 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,356 | macactivity.h | hluk_CopyQ/src/platform/mac/macactivity.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef MACACTIVITY_H
#define MACACTIVITY_H
class QString;
/**
* RAII class for using activity blocks on OSX.
*/
class MacActivity
{
public:
explicit MacActivity(const QString &reason);
~MacActivity();
private:
void *m_activity;
};
#endif // MACACTIVITY_H
| 319 | C++ | .h | 16 | 17.8125 | 48 | 0.749164 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,357 | macclipboard.h | hluk_CopyQ/src/platform/mac/macclipboard.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef MACCLIPBOARD_H
#define MACCLIPBOARD_H
#include "platform/dummy/dummyclipboard.h"
class MacClipboard final : public DummyClipboard {
public:
void startMonitoring(const QStringList &) override;
void setData(ClipboardMode mode, const QVariantMap &dataMap) ov... | 660 | C++ | .h | 19 | 31.105263 | 75 | 0.772152 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,358 | urlpasteboardmime.h | hluk_CopyQ/src/platform/mac/urlpasteboardmime.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QtGlobal>
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
# include <QUtiMimeConverter>
using UrlPasteboardMimeBase = QUtiMimeConverter;
#else
# include <QMacPasteboardMime>
using UrlPasteboardMimeBase = QMacPasteboardMime;
#endif
/**
* Class for doi... | 1,443 | C++ | .h | 33 | 40.969697 | 116 | 0.779516 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,359 | foregroundbackgroundfilter.h | hluk_CopyQ/src/platform/mac/foregroundbackgroundfilter.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef FOREGROUNDBACKGROUNDFILTER_H
#define FOREGROUNDBACKGROUNDFILTER_H
#include <QObject>
/**
* This event filter manages the "activationPolicy" for an OS X app by
* ensuring that it is a "regular" app when there are windows shown, but
* an "accessory" or "prohibite... | 840 | C++ | .h | 25 | 31.04 | 78 | 0.759259 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,360 | clipboardmonitor.h | hluk_CopyQ/src/app/clipboardmonitor.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CLIPBOARDMONITOR_H
#define CLIPBOARDMONITOR_H
#include "app/clipboardownermonitor.h"
#include "common/clipboardmode.h"
#include "common/common.h"
#include "platform/platformnativeinterface.h"
#include <QVariantMap>
class ClipboardMonitor final : public QObject
{
... | 1,508 | C++ | .h | 43 | 31.325581 | 98 | 0.796692 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,361 | app.h | hluk_CopyQ/src/app/app.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef APP_H
#define APP_H
class QCoreApplication;
class QString;
/** Application class. */
class App
{
public:
explicit App(
QCoreApplication *application,
const QString &sessionName
);
virtual ~App();
static void instal... | 851 | C++ | .h | 37 | 18.162162 | 76 | 0.631382 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,362 | clipboardownermonitor.h | hluk_CopyQ/src/app/clipboardownermonitor.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CLIPBOARDOWNERMONITOR_H
#define CLIPBOARDOWNERMONITOR_H
#include <QAbstractNativeEventFilter>
#include <QByteArray>
#include <QTimer>
class ClipboardMonitor;
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
using NativeEventResult = qintptr;
#else
using NativeEventResul... | 931 | C++ | .h | 29 | 29.103448 | 79 | 0.797085 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,363 | applicationexceptionhandler.h | hluk_CopyQ/src/app/applicationexceptionhandler.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef APPLICATIONEXCEPTIONHANDLER_H
#define APPLICATIONEXCEPTIONHANDLER_H
#include <QObject>
#include <exception>
class QCoreApplication;
class QEvent;
void logException(const char *what = nullptr);
namespace detail {
class ApplicationExceptionHandlerBase : public Q... | 1,163 | C++ | .h | 41 | 23.804878 | 104 | 0.714801 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,364 | clipboardserver.h | hluk_CopyQ/src/app/clipboardserver.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CLIPBOARDSERVER_H
#define CLIPBOARDSERVER_H
#include "app.h"
#include "common/clipboardmode.h"
#include "common/command.h"
#include "common/server.h"
#include "common/clientsocket.h"
#include "gui/clipboardbrowsershared.h"
#include <QMap>
#include <QPointer>
#incl... | 4,203 | C++ | .h | 123 | 29.520325 | 102 | 0.734537 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,365 | clipboardclient.h | hluk_CopyQ/src/app/clipboardclient.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CLIPBOARDCLIENT_H
#define CLIPBOARDCLIENT_H
#include "app.h"
#include <QObject>
#include <QStringList>
/**
* Application client.
*
* Sends a command to the server and exits after the command is executed.
* Exit code is same as exit code send by ClipboardServe... | 1,045 | C++ | .h | 31 | 30.645161 | 94 | 0.764179 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,366 | icons.h | hluk_CopyQ/src/gui/icons.h | // This file is generated with "update_icon_font.py" from FontAwesome's metadata.
#ifndef ICONS_H
#define ICONS_H
enum IconId {
Icon0 = 0x30,
Icon1 = 0x31,
Icon2 = 0x32,
Icon3 = 0x33,
Icon4 = 0x34,
Icon5 = 0x35,
Icon6 = 0x36,
Icon7 = 0x37,
Icon8 = 0x38,
Icon9 = 0x39,
Icon42... | 54,338 | C++ | .h | 1,891 | 23.746166 | 81 | 0.711788 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,367 | tabdialog.h | hluk_CopyQ/src/gui/tabdialog.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TABDIALOG_H
#define TABDIALOG_H
#include <QDialog>
#include <QStringList>
namespace Ui {
class TabDialog;
}
/**
* Dialog for naming and renaming tabs.
*/
class TabDialog final : public QDialog
{
Q_OBJECT
public:
/** Tab dialog type (new tab or rena... | 1,422 | C++ | .h | 49 | 24.734694 | 77 | 0.691458 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,368 | itemorderlist.h | hluk_CopyQ/src/gui/itemorderlist.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ITEMORDERLIST_H
#define ITEMORDERLIST_H
#include <QListWidgetItem>
#include <QPointer>
#include <QWidget>
#include <memory>
#include <unordered_map>
namespace Ui {
class ItemOrderList;
}
class QAbstractButton;
class QMenu;
class QScrollArea;
class ItemOrderList... | 3,746 | C++ | .h | 104 | 30.730769 | 130 | 0.723056 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,369 | fancylineedit.h | hluk_CopyQ/src/gui/fancylineedit.h | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... | 3,363 | C++ | .h | 86 | 36.209302 | 77 | 0.722495 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,370 | filedialog.h | hluk_CopyQ/src/gui/filedialog.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef FILEDIALOG_H
#define FILEDIALOG_H
#include <QObject>
#include <QString>
class QWidget;
/**
* Opens native file dialog (unlike QFileDialog).
*/
class FileDialog final : public QObject
{
Q_OBJECT
public:
FileDialog(QWidget *parent, const QString &caption,... | 533 | C++ | .h | 23 | 20.521739 | 81 | 0.747012 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,371 | shortcutbutton.h | hluk_CopyQ/src/gui/shortcutbutton.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SHORTCUTBUTTON_H
#define SHORTCUTBUTTON_H
#include <QKeySequence>
#include <QList>
#include <QToolBar>
class QAction;
class QHBoxLayout;
/**
* Widget with buttons for defining shortcuts and single button for adding shortcuts.
*/
class ShortcutButton final : pub... | 2,255 | C++ | .h | 55 | 36.418182 | 99 | 0.742896 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,372 | iconselectdialog.h | hluk_CopyQ/src/gui/iconselectdialog.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ICONSELECTDIALOG_H
#define ICONSELECTDIALOG_H
#include <QDialog>
class QModelIndex;
class IconListWidget;
class IconSelectDialog final : public QDialog
{
Q_OBJECT
public:
explicit IconSelectDialog(const QString &defaultIcon, QWidget *parent = nullptr);
... | 716 | C++ | .h | 24 | 26.375 | 85 | 0.771049 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,373 | execmenu.h | hluk_CopyQ/src/gui/execmenu.h | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... | 1,720 | C++ | .h | 38 | 44.105263 | 77 | 0.705847 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,374 | iconfactory.h | hluk_CopyQ/src/gui/iconfactory.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ICONFACTORY_H
#define ICONFACTORY_H
class QColor;
class QIcon;
class QPixmap;
class QPainter;
class QObject;
class QString;
class QVariant;
class QWidget;
QIcon getIcon(const QString &themeName, unsigned short id);
QIcon getIcon(const QVariant &iconOrIconId);
QI... | 1,225 | C++ | .h | 32 | 36.65625 | 85 | 0.83035 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,375 | clipboardbrowser.h | hluk_CopyQ/src/gui/clipboardbrowser.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CLIPBOARDBROWSER_H
#define CLIPBOARDBROWSER_H
#include "common/clipboardmode.h"
#include "gui/clipboardbrowsershared.h"
#include "item/clipboardmodel.h"
#include "item/itemdelegate.h"
#include "item/itemfilter.h"
#include "item/itemwidget.h"
#include <QListView>
#... | 12,289 | C++ | .h | 293 | 32.962457 | 130 | 0.648683 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,376 | shortcutswidget.h | hluk_CopyQ/src/gui/shortcutswidget.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SHORTCUTSWIDGET_H
#define SHORTCUTSWIDGET_H
#include "common/command.h"
#include <QIcon>
#include <QTimer>
#include <QVector>
#include <QWidget>
namespace Ui {
class ShortcutsWidget;
}
class ShortcutButton;
class QSettings;
class QTableWidgetItem;
struct MenuAc... | 1,509 | C++ | .h | 53 | 25.075472 | 61 | 0.763763 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,377 | commandcompleter.h | hluk_CopyQ/src/gui/commandcompleter.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMANDCOMPLETER_H
#define COMMANDCOMPLETER_H
#include <QObject>
class QCompleter;
class QPlainTextEdit;
class CommandCompleter final : public QObject {
Q_OBJECT
Q_PROPERTY(QWidget* popup READ popup)
public:
explicit CommandCompleter(QPlainTextEdit *... | 714 | C++ | .h | 23 | 27.478261 | 63 | 0.772059 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,378 | tabswidgetinterface.h | hluk_CopyQ/src/gui/tabswidgetinterface.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TABSWIDGETINTERFACE_H
#define TABSWIDGETINTERFACE_H
#include <QtContainerFwd>
class QString;
class TabsWidgetInterface {
public:
TabsWidgetInterface() = default;
virtual ~TabsWidgetInterface() = default;
/** Return path to current group in tree (emp... | 1,616 | C++ | .h | 32 | 45.96875 | 87 | 0.736404 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,379 | notification.h | hluk_CopyQ/src/gui/notification.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QObject>
#include "gui/notificationbutton.h"
class KNotification;
class QWidget;
class Notification : public QObject
{
Q_OBJECT
public:
explicit Notification(QObject *parent) : QObject(parent) {}
virtual void setTitle(const QString &t... | 1,033 | C++ | .h | 28 | 33.178571 | 91 | 0.728185 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,380 | commandaction.h | hluk_CopyQ/src/gui/commandaction.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMANDACTION_H
#define COMMANDACTION_H
#include "common/command.h"
#include <QAction>
#include <QPointer>
class CommandAction final : public QAction
{
Q_OBJECT
public:
CommandAction(const Command &command,
const QString &name,
QMe... | 669 | C++ | .h | 25 | 22.96 | 79 | 0.73817 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,381 | tabbar.h | hluk_CopyQ/src/gui/tabbar.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TABBAR_H
#define TABBAR_H
#include "gui/tabswidgetinterface.h"
#include <QTabBar>
class QMimeData;
class QModelIndex;
class QMouseEvent;
class QPoint;
class TabBar final : public QTabBar, public TabsWidgetInterface
{
Q_OBJECT
public:
explicit TabBar(QWi... | 1,880 | C++ | .h | 46 | 36.869565 | 84 | 0.770971 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,382 | clipboardbrowserplaceholder.h | hluk_CopyQ/src/gui/clipboardbrowserplaceholder.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef CLIPBOARDBROWSERPLACEHOLDER_H
#define CLIPBOARDBROWSERPLACEHOLDER_H
#include "gui/clipboardbrowsershared.h"
#include <QString>
#include <QTimer>
#include <QWidget>
class ClipboardBrowser;
class MainWindow;
class QPushButton;
class ClipboardBrowserPlaceholder fin... | 2,106 | C++ | .h | 60 | 30.633333 | 97 | 0.743437 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,383 | iconfont.h | hluk_CopyQ/src/gui/iconfont.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ICONFONT_H
#define ICONFONT_H
class QFont;
class QString;
const QString &iconFontFamily();
bool loadIconFont();
int iconFontSizePixels();
QFont iconFont();
QFont iconFontFitSize(int w, int h);
#endif // ICONFONT_H
| 275 | C++ | .h | 11 | 23.272727 | 44 | 0.792969 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,384 | filterlineedit.h | hluk_CopyQ/src/gui/filterlineedit.h | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... | 2,271 | C++ | .h | 57 | 37.614035 | 77 | 0.716818 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,385 | iconwidget.h | hluk_CopyQ/src/gui/iconwidget.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ICONWIDGET_H
#define ICONWIDGET_H
#include <QWidget>
class QString;
class IconWidget final : public QWidget
{
public:
explicit IconWidget(int icon, QWidget *parent = nullptr);
explicit IconWidget(const QString &icon, QWidget *parent = nullptr);
QSiz... | 468 | C++ | .h | 17 | 24.823529 | 72 | 0.766968 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,386 | commandhelpbutton.h | hluk_CopyQ/src/gui/commandhelpbutton.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMANDHELPBUTTON_H
#define COMMANDHELPBUTTON_H
#include <QWidget>
class QToolButton;
class QDialog;
class CommandHelpButton final : public QWidget
{
Q_OBJECT
public:
explicit CommandHelpButton(QWidget *parent = nullptr);
public:
void showHelp();
si... | 438 | C++ | .h | 20 | 19.3 | 58 | 0.770732 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,387 | commandcompleterdocumentation.h | hluk_CopyQ/src/gui/commandcompleterdocumentation.h | // Generated by "utils/script_docs_to_cpp.py" from "docs/scripting-api.rst".
template <typename AddDocumentationCallback>
void addDocumentation(AddDocumentationCallback addDocumentation)
{
addDocumentation("version", "version() -> string", "Returns version string.");
addDocumentation("help", "help() -> string"... | 25,900 | C++ | .h | 226 | 109.685841 | 228 | 0.729833 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,388 | tabtree.h | hluk_CopyQ/src/gui/tabtree.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TABTREE_H
#define TABTREE_H
#include "gui/tabswidgetinterface.h"
#include <QList>
#include <QString>
#include <QTimer>
#include <QTreeWidget>
class QMimeData;
class QTreeWidgetItem;
class TabTree final : public QTreeWidget, public TabsWidgetInterface
{
Q_OBJ... | 3,106 | C++ | .h | 67 | 42 | 98 | 0.759136 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,389 | importexportdialog.h | hluk_CopyQ/src/gui/importexportdialog.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef IMPORTEXPORTDIALOG_H
#define IMPORTEXPORTDIALOG_H
#include <QDialog>
namespace Ui {
class ImportExportDialog;
}
class ImportExportDialog final : public QDialog
{
public:
explicit ImportExportDialog(QWidget *parent = nullptr);
~ImportExportDialog();
v... | 883 | C++ | .h | 28 | 27.928571 | 59 | 0.780285 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,390 | theme.h | hluk_CopyQ/src/gui/theme.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef THEME_H
#define THEME_H
#include "common/option.h"
#include <QFont>
#include <QFontMetrics>
#include <QHash>
#include <QPalette>
#include <QStringList>
namespace Ui {
class ConfigTabAppearance;
}
class QAbstractScrollArea;
class QListView;
class QSettings;
class... | 3,957 | C++ | .h | 95 | 37.410526 | 119 | 0.744887 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,391 | logdialog.h | hluk_CopyQ/src/gui/logdialog.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef LOGDIALOG_H
#define LOGDIALOG_H
#include "common/log.h"
#include <QDialog>
namespace Ui {
class LogDialog;
}
class Decorator;
class LogDialog final : public QDialog
{
public:
explicit LogDialog(QWidget *parent = nullptr);
~LogDialog();
private:
usin... | 886 | C++ | .h | 34 | 22.441176 | 68 | 0.734207 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,392 | notificationbasic.h | hluk_CopyQ/src/gui/notificationbasic.h | // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
class Notification;
class QObject;
Notification *createNotificationBasic(QObject *parent);
| 152 | C++ | .h | 5 | 28.8 | 55 | 0.833333 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,393 | iconselectbutton.h | hluk_CopyQ/src/gui/iconselectbutton.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ICONSELECTBUTTON_H
#define ICONSELECTBUTTON_H
#include <QPushButton>
class IconSelectButton final : public QPushButton
{
Q_OBJECT
Q_PROPERTY(QString currentIcon READ currentIcon WRITE setCurrentIcon NOTIFY currentIconChanged)
public:
explicit IconSelec... | 666 | C++ | .h | 20 | 30 | 99 | 0.786164 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,394 | tabwidget.h | hluk_CopyQ/src/gui/tabwidget.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef TABWIDGET_H
#define TABWIDGET_H
#include <QHash>
#include <QTabBar>
#include <QWidget>
#include <memory>
class QMainWindow;
class QMimeData;
class QPoint;
class QSettings;
class QStackedWidget;
class QToolBar;
class TabsWidgetInterface;
class TabWidget final : p... | 3,570 | C++ | .h | 90 | 35.222222 | 100 | 0.7362 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,395 | windowgeometryguard.h | hluk_CopyQ/src/gui/windowgeometryguard.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef WINDOWGEOMETRYGUARD_H
#define WINDOWGEOMETRYGUARD_H
#include <QObject>
#include <QTimer>
class QWidget;
void raiseWindow(QWidget *window);
class WindowGeometryGuard final : public QObject
{
public:
static void create(QWidget *window);
bool eventFilter(QO... | 785 | C++ | .h | 26 | 26.692308 | 62 | 0.780161 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,397 | shortcutdialog.h | hluk_CopyQ/src/gui/shortcutdialog.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef SHORTCUTDIALOG_H
#define SHORTCUTDIALOG_H
#include <QDialog>
namespace Ui {
class ShortcutDialog;
}
class ShortcutDialog final : public QDialog
{
Q_OBJECT
public:
explicit ShortcutDialog(QWidget *parent = nullptr);
~ShortcutDialog();
/** Return a... | 567 | C++ | .h | 22 | 22.909091 | 62 | 0.759328 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,398 | fix_icon_id.h | hluk_CopyQ/src/gui/fix_icon_id.h | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef FIX_ICON_ID_H
#define FIX_ICON_ID_H
#include "gui/icons.h"
/// Backwards compatibility with old icon font.
/// Returns icon ID in the new icon font for an ID from the old one.
inline unsigned short fixIconId(unsigned short id)
{
switch (id) {
// envelope-... | 8,969 | C++ | .h | 166 | 48.759036 | 152 | 0.709356 | hluk/CopyQ | 8,577 | 439 | 420 | GPL-3.0 | 9/20/2024, 9:26:25 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.