code stringlengths 1 2.06M | language stringclasses 1
value |
|---|---|
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright 2011, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | C++ |
#ifndef _MAP_H_
#define _MAP_H_
#include "general.h"
#include "graphics.h"
#include <vector>
#include <fstream>
using std::vector;
using std::ifstream;
using std::string;
using std::cout;
using std::endl;
string characterToImgLabel(char inp);
bool characterToCollidable(char inp);
extern bool camClip;
class Map {
p... | C++ |
#ifndef _TIMER_H
#define _TIMER_H
#include "general.h"
const int FPS = 20;
int frame = 0;
bool cap = true;
class Timer {
private:
int startTicks;
int pausedTicks;
bool paused, started;
public:
Timer() {
startTicks = pausedTicks = 0;
paused = started = false;
}
void start() {
started = true... | C++ |
#ifndef _GAMEPLAY_H
#define _GAMEPLAY_H
#include "general.h"
//#include "character.h"
//#include "map.h"
extern const int SCRN_HEIGHT;
class GameplayController {
private:
int curMap;
int curState;
public:
GameplayController() {
curMap = 0;
}
void changeMap(int amount = 0) {
if (amount == 0) {
... | C++ |
#ifndef _GENERAL_H
#define _GENERAL_H
#include <vector>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_image.h>
#include <iostream>
#include "timer.h"
using std::cin;
//Global variables
SDL_Surface* screen = NULL;
SDL_Rect dstrect; //only used for blitting
SDL_Event event;
bool camClip = true;
cons... | C++ |
#ifndef _GRAPHICS_H
#define _GRAPHICS_H
#include "general.h"
#include "character.h"
#include <cstring>
using std::string;
using std::cin;
using std::cout;
using std::endl;
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_image.h>
#include <vector>
extern SDL_Surface* screen;
extern SDL_Rect dstrect;
ex... | C++ |
#ifndef _SCROLL_H
#define _SCROLL_H
#include "general.h"
#include <cstring>
using std::string;
class Background {
private:
int xScrollRate, yScrollRate;
int xCur, yCur;
ImgRsrc* bgRsrc;
string bgLabel;
public:
Background() {
}
Background(string lbl, int xInit = 0, int yInit = 0) {
xScrollRate = yS... | C++ |
#ifdef __cplusplus
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#include <cstdlib>
#include <iostream>
#include <SDL/SDL.h>
#include <sstream>
#include <cmath>
#include "map.h"
#include "general.h"
#include "graphics.h"
#include "character.h"
#include "timer.h"
#include "gameplay.h"
#include "scroll.h"
... | C++ |
#ifndef _CHARACTER_H
#define _CHARACTER_H
#include <cmath>
#include <cstring>
using std::string;
#include "general.h"
#include "timer.h"
int xVelMax = 30;
int yVelMax = 50;
class ImgRsrc;
extern SDL_Event event;
extern const int SCRN_HEIGHT;
extern const int SCRN_WIDTH;
extern bool camClip;
class Character {
prote... | C++ |
///////////////////////////////////////////////////////////////////////////////
// CppSQLite3 - A C++ wrapper around the SQLite3 embedded database library.
//
// Copyright (c) 2004..2007 Rob Groves. All Rights Reserved. rob.groves@btinternet.com
//
// Permission to use, copy, modify, and distribute this software and i... | C++ |
////////////////////////////////////////////////////////////////////////////////
// CppSQLite3 - A C++ wrapper around the SQLite3 embedded database library.
//
// Copyright (c) 2004..2007 Rob Groves. All Rights Reserved. rob.groves@btinternet.com
//
// Permission to use, copy, modify, and distribute this software and ... | C++ |
#include <sstream>
#include <iomanip>
#include <openssl/md5.h>
#include <PopupLoggerUI.hpp>
#include <PopupLibTypes.hpp>
#include <PopupSqlite3Database.hpp>
#include <PopupOSAL.hpp>
#include "CppSQLite3.h"
using namespace std;
using namespace Popup;
using namespace PopupUtils;
const char *databaseCreateRequest =
... | C++ |
#ifndef __POPUP_DATABASE_H__
#define __POPUP_DATABASE_H__
#include <string>
#include "PopupDatabaseUI.hpp"
struct CppSQLite3DB;
namespace Popup
{
class PopupSqlite3Database : public DatabaseUI
{
public:
PopupSqlite3Database(const std::string & p_path);
~PopupSqlite3Database();
// @Override
boo... | C++ |
#include <signal.h>
#include <QApplication>
#include <QtGui>
#include "PopupGuiCore.hpp"
static void signalHandler(int)
{
PopupGuiCore::instance()->exit();
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QApplication::setQuitOnLastWindowClosed(false);
QTextCodec::setCodecForTr(QText... | C++ |
/*
* PopupThreadStartWidget.cpp
*
* Created on: Jul 11, 2012
* Author: guillou
*/
#include <PopupThreadStartWidget.hpp>
#include <PopupUsersWidget.hpp>
#include <PopupUtilities.hpp>
using namespace std;
using namespace utilities;
using namespace Popup;
PopupThreadStartWidget::PopupThreadStartWidget(QWidge... | C++ |
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <libgen.h>
#include <string>
#include <QtGui>
#include "PopupUtilities.hpp"
#include "PopupSettings.hpp"
#include "PopupOSAL.hpp"
using namespace std;
using namespace utilities;
using namespace Popup;
//... | C++ |
/*
* PopupUserListItem.hpp
*
* Created on: May 19, 2012
* Author: guillou
*/
#ifndef POPUPUSERLISTITEM_HPP_
#define POPUPUSERLISTITEM_HPP_
#include <QtGui>
public PopupUserListItem : public QListWidgetItem
{
void setData(int role, const QVariant & value);
};
#endif /* POPUPUSERLISTITEM_HPP_ */
| C++ |
#include <iostream>
#include <string>
#include <sstream>
#include <sys/types.h>
#include <QThread>
#include <PopupSetupDialog.hpp>
#include <PopupUtilities.hpp>
#include <PopupProgressWidget.hpp>
#include <PopupNotificationFrame.hpp>
#include <PopupGuiCore.hpp>
using namespace std;
using namespace utilities;
using n... | C++ |
/*
* PopupUsersWidget.cpp
*
* Created on: Jul 9, 2012
* Author: guillou
*/
#include <PopupUsersWidget.hpp>
#include <PopupGuiCore.hpp>
#include <PopupUtilities.hpp>
#include <PopupUserProfileFrame.hpp>
using namespace Popup;
PopupUsersWidget::PopupUsersWidget(QWidget *parent,
... | C++ |
#include <QImage>
#include <QPainter>
#include <QApplication>
#include <QDesktopWidget>
#include <iostream>
#include <PopupOSAL.hpp>
#include "PopupImage.hpp"
#include "PopupImageViewer.hpp"
#include "PopupSettings.hpp"
using namespace std;
using namespace PopupUtils;
PopupImageViewer::PopupImageViewer()
: QDialog... | C++ |
/*
* PopupImageViewerFx.cpp
*
* Created on: Jul 6, 2013
* Author: guillou
*/
#include "PopupGui.hpp"
#include "PopupImage.hpp"
#include "PopupImageViewerFx.hpp"
#include "PopupSettings.hpp"
PopupTransitionFx::PopupTransitionFx(PopupImage *p_image)
: PopupImageFx(p_image),
transition(PopupSettings::insta... | C++ |
#include <stdlib.h>
#include <iostream>
#include <PopupLoggerUI.hpp>
#include "PopupSettings.hpp"
using namespace std;
using namespace Popup;
using namespace PopupUtils;
PopupSettings *PopupSettings::m_instance = 0;
PopupSettings *PopupSettings::instance()
{
if (m_instance == 0)
{
m_instance = new PopupSetti... | C++ |
/*
* PopupImage.cpp
*
* Created on: Jul 7, 2013
* Author: guillou
*/
#include <PopupOSAL.hpp>
#include <PopupLoggerUI.hpp>
#include "PopupImageViewer.hpp"
#include "PopupImageViewerFx.hpp"
#include "PopupImage.hpp"
#include "PopupSettings.hpp"
using namespace PopupUtils;
PopupImage::PopupImage(PopupImageV... | C++ |
/*
* PopupCustomButton.cpp
*
* Created on: Mar 11, 2013
* Author: guillou
*/
#include <PopupLoggerUI.hpp>
#include <PopupCustomButton.hpp>
using namespace PopupUtils;
#define FIELD_SEPARATOR "&#&"
PopupCustomButton::PopupCustomButton(const QString & p_name,
const QStr... | C++ |
/*
* PopupLoginDialog.cpp
*
* Created on: Jun 5, 2012
* Author: guillou
*/
#include <PopupOSAL.hpp>
#include <PopupLoginDialog.hpp>
#include <PopupSettings.hpp>
#include <PopupUtilities.hpp>
using namespace PopupUtils;
using namespace utilities;
using namespace Popup;
PopupLoginDialog::PopupLoginDialog(QWi... | C++ |
/*
* PopupUpdateManager.cpp
*
* Created on: Nov 20, 2012
* Author: guillou
*/
#include <string>
#include <sstream>
#include <PopupOSAL.hpp>
#include <PopupUpdateManager.hpp>
#include <PopupSettings.hpp>
#include <PopupUtilities.hpp>
#include <PopupVersion.hpp>
#include <PopupGuiCore.hpp>
using namespace std... | C++ |
/*
* PopupTransfersDialog.cpp
*
* Created on: Nov 26, 2012
* Author: guillou
*/
#include <QtGui>
#include <PopupOSAL.hpp>
#include <PopupProgressWidget.hpp>
#include <PopupTransfersDialog.hpp>
#include <PopupSettings.hpp>
using namespace Popup;
using namespace PopupUtils;
PopupTransfersDialog::PopupTransf... | C++ |
#include <QtGui>
#include <PopupSettings.hpp>
#include <PopupMessageDialog.hpp>
#include <PopupVersion.hpp>
#include <PopupUtilities.hpp>
using namespace std;
using namespace Popup;
#include "PopupUsersWidget.hpp"
#include "PopupMessageWidget.hpp"
#define CONNECTING_STRING "Connecting..."
//========================... | C++ |
#include <iostream>
#include <sstream>
#include "PopupSettings.hpp"
#include "PopupUsersTableModel.hpp"
#include "PopupSetupDialog.hpp"
#include "PopupGuiCore.hpp"
#include "PopupUtilities.hpp"
using namespace std;
using namespace Popup;
using namespace utilities;
using namespace PopupUtils;
typedef enum {
TABLE_CO... | C++ |
/*
* PopupMessageWidget.cpp
*
* Created on: Jul 11, 2012
* Author: guillou
*/
#include "PopupSettings.hpp"
#include "PopupUsersManager.hpp"
#include "PopupThreadWidget.hpp"
#include "PopupUtilities.hpp"
#include <PopupMessageWidget.hpp>
#include <PopupThreadStartWidget.hpp>
#include <PopupCanvassWidget.hpp>... | C++ |
#include "PopupClientThread.hpp"
#include "PopupSettings.hpp"
using namespace Popup;
using namespace std;
//=============================================================================
// Thread routine
//=============================================================================
void PopupClientThread::run()
{
... | C++ |
/*
* PopupLogsDialog.cpp
*
* Created on: Nov 26, 2012
* Author: guillou
*/
#include <QDialog>
#include <PopupLogsDialog.hpp>
using namespace PopupUtils;
PopupLogsDialog::PopupLogsDialog(QWidget *p_parent)
: QDialog(p_parent)
{
setupUi(this);
connect(this, SIGNAL(signal_logMessage(const QString &)),
... | C++ |
#include <iostream>
#include <sstream>
#include <QtGui>
#include <QWidget>
#include <PopupClientUI.hpp>
#include "PopupUtilities.hpp"
#include "PopupThreadTextWidget.hpp"
#include "PopupThreadWidget.hpp"
#include "PopupUsersManager.hpp"
#include "PopupGuiCore.hpp"
#include "PopupUsersDialog.hpp"
#include "PopupMessageD... | C++ |
/*
* PopupGuiCore.cpp
*
* Created on: Jun 7, 2012
* Author: guillou
*/
#include <PopupGuiCore.hpp>
#include <PopupSetupDialog.hpp>
#include <PopupMessageWidget.hpp>
#include <PopupUtilities.hpp>
#include <PopupThreadWidget.hpp>
using namespace std;
using namespace utilities;
using namespace Popup;
using na... | C++ |
/*
* PopupUsersManager.cpp
*
* Created on: Jul 7, 2012
* Author: guillou
*/
#include <PopupUsersManager.hpp>
#include <PopupSettings.hpp>
PopupUsersManager *PopupUsersManager::m_instance = 0;
using namespace std;
using namespace Popup;
PopupUsersManager *PopupUsersManager::instance()
{
if (m_instance ==... | C++ |
/*
* PopupCanvassWidget.cpp
*
* Created on: Jul 16, 2012
* Author: guillou
*/
#include <PopupCanvassWidget.hpp>
#include <PopupCanvassChoice.hpp>
#include <PopupCanvassResult.hpp>
using namespace std;
using namespace Popup;
PopupCanvassWidget::PopupCanvassWidget(QWidget *p_parent,
... | C++ |
#ifndef POPUP_THREAD_WIDGET_HPP
#define POPUP_THREAD_WIDGET_HPP
#include <QtGui>
#include <PopupLibTypes.hpp>
#include "PopupCustomButton.hpp"
#include "PopupUsersManager.hpp"
#include "PopupUserProfileFrame.hpp"
#include "ui_threadwidget.h"
struct PopupThreadTextWidget;
struct PopupThreadWidget : public QWidget, Po... | C++ |
/*
* PopupLogsDialog.hpp
*
* Created on: Nov 26, 2012
* Author: guillou
*/
#ifndef POPUPLOGSDIALOG_HPP_
#define POPUPLOGSDIALOG_HPP_
#include <QDialog>
#include <PopupOSAL.hpp>
#include "ui_logs.h"
struct PopupLogsDialog : public QDialog, PopupUtils::LoggerUI,
private Ui_LogsDialog
{
Q_OBJECT
public:... | C++ |
/*
* PopupImage.hpp
*
* Created on: Jul 7, 2013
* Author: guillou
*/
#ifndef POPUPIMAGE_HPP_
#define POPUPIMAGE_HPP_
#include <vector>
#include <QImage>
#include <QPainter>
class PopupImageViewer;
struct PopupImageFx;
class PopupImage
{
public:
PopupImage(PopupImageViewer *p_parent,
QStrin... | C++ |
/*
* PopupGuiCore.hpp
*
* Created on: Jun 7, 2012
* Author: guillou
*/
#ifndef POPUPGUICORE_HPP_
#define POPUPGUICORE_HPP_
#include <QObject>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include <PopupGui.hpp>
#include <PopupClientUI.hpp>
#include <PopupSettings.hpp>
#inc... | C++ |
/*
* PopupNotificationFrame.hpp
*
* Created on: Jul 29, 2012
* Author: guillou
*/
#ifndef POPUPNOTIFICATIONFRAME_HPP_
#define POPUPNOTIFICATIONFRAME_HPP_
#include <ui_notificationframe.h>
#include <QTimer>
#include <stdio.h>
struct PopupNotificationFrame : public QDialog, private Ui_NotificationFrame
{
Q... | C++ |
/*
* PopupUsersWidget.hpp
*
* Created on: Jul 7, 2012
* Author: guillou
*/
#ifndef POPUPUSERSWIDGET_HPP_
#define POPUPUSERSWIDGET_HPP_
#include <ui_userswidget.h>
#include <PopupLibTypes.hpp>
#include <PopupUsersManager.hpp>
#include <PopupUsersTableModel.hpp>
class PopupUserProfileFrame;
class PopupUser... | C++ |
/*
* PopupGui.hpp
*
* Created on: Nov 26, 2012
* Author: guillou
*/
#ifndef POPUPGUI_HPP_
#define POPUPGUI_HPP_
#include <PopupLibTypes.hpp>
#include <QString>
using namespace Popup;
namespace PopupGui
{
typedef enum {
POPUP_DIALOG_ID_LOGS,
POPUP_DIALOG_ID_LOGIN,
POPUP_DIALOG_ID_SETTINGS,
... | C++ |
/*
* PopupCanvassChoice.hpp
*
* Created on: Jul 17, 2012
* Author: guillou
*/
#ifndef POPUPCANVASSCHOICE_HPP_
#define POPUPCANVASSCHOICE_HPP_
#include <ui_choice.h>
#include <PopupCanvassWidget.hpp>
class PopupChoiceWidget : public QWidget, private Ui_ChoiceWidget
{
Q_OBJECT
public:
virtual ~PopupCho... | C++ |
/*
* PopupCustomButton.hpp
*
* Created on: Mar 11, 2013
* Author: guillou
*/
#ifndef POPUPCUSTOMBUTTON_HPP_
#define POPUPCUSTOMBUTTON_HPP_
#include <map>
#include <QPushButton>
#include <PopupUtilities.hpp>
class PopupCustomButton
{
public:
PopupCustomButton(const QString & p_name,
... | C++ |
#ifndef POPUP_PROGRESS_WIDGET_HPP
#define POPUP_PROGRESS_WIDGET_HPP
#include <ui_progresswidget.h>
class PopupProgressWidget : public QWidget, private Ui_ProgressWidget
{
Q_OBJECT
public:
PopupProgressWidget(QWidget *parent,
const QString & p_label = "In progress...",
... | C++ |
#ifndef POPUP_UTILITIES_HPP
#define POPUP_UTILITIES_HPP
#include <QtGui>
#include <string>
#include <PopupLibTypes.hpp>
namespace utilities
{
bool isSupportedImage(const char *p_filename);
bool isSupportedVideo(const char *p_filename);
bool isSupportedImage(const std::string & p_filename);
bool isSupportedVid... | C++ |
#ifndef POPUP_USERS_TABLE_MODEL_H
#define POPUP_USERS_TABLE_MODEL_H
#include <QtGui>
#include <PopupLibTypes.hpp>
#include <PopupUsersManager.hpp>
struct PopupUsersTableModel : public QStandardItemModel
{
Q_OBJECT
public:
PopupUsersTableModel();
virtual ~PopupUsersTableModel() {}
virtual Qt::ItemFlags flags ... | C++ |
/*
* PopupThreadTextWidget.hpp
*
* Created on: Jun 13, 2012
* Author: guillou
*/
#ifndef POPUPTHREADTEXTWIDGET_HPP_
#define POPUPTHREADTEXTWIDGET_HPP_
#include <stdio.h>
#include <QTextBrowser>
#include <QMouseEvent>
struct PopupThreadTextWidget : public QTextBrowser
{
Q_OBJECT
public:
PopupThreadTex... | C++ |
#ifndef POPUP_CLIENT_QTHREAD_H
#define POPUP_CLIENT_QTHREAD_H
#include <QThread>
#include <QMutex>
#include <PopupClientUI.hpp>
struct PopupClientThread : public QThread, public Popup::ClientUI
{
Q_OBJECT
public:
PopupClientThread()
: m_client(Popup::Client::newClient(this)),
m_restartScheduled(fals... | C++ |
/*
* PopupUsers.hpp
*
* Created on: Jul 7, 2012
* Author: guillou
*/
#ifndef POPUPUSERS_HPP_
#define POPUPUSERS_HPP_
#include <string>
#include <set>
#include <map>
#include <QMutex>
#include <PopupLibTypes.hpp>
#include <QObject>
#include <QIcon>
struct PopupUsersObserver;
struct PopupUserExt : public P... | C++ |
/*
* PoupUsersDialog.hpp
*
* Created on: Jul 7, 2012
* Author: guillou
*/
#ifndef POUPUSERSDIALOG_HPP_
#define POUPUSERSDIALOG_HPP_
#include "ui_usersdialog.h"
#include <PopupUsersManager.hpp>
#include <PopupUsersWidget.hpp>
class PopupUsersDialog : public QDialog, private Ui_UsersDialog
{
Q_OBJECT
pub... | C++ |
/*
* PopupLoginDialog.hpp
*
* Created on: Jun 4, 2012
* Author: guillou
*/
#ifndef POPUPLOGINDIALOG_HPP_
#define POPUPLOGINDIALOG_HPP_
#include <ui_logindialog.h>
#include <PopupLibTypes.hpp>
class PopupLoginDialog : public QDialog, private Ui_LoginDialog
{
Q_OBJECT
public:
PopupLoginDialog(QWidget *... | C++ |
#ifndef POPUP_MESSAGE_DIALOG_HPP
#define POPUP_MESSAGE_DIALOG_HPP
#include <vector>
#include <QtGui>
#include <PopupLibTypes.hpp>
#include <PopupGui.hpp>
#include <PopupUsersWidget.hpp>
#include <PopupNotificationFrame.hpp>
#include <PopupGui.hpp>
#include "ui_messagedialog.h"
class PopupUsersWidget;
class PopupMessa... | C++ |
/*
* PopupTransfersDialog.hpp
*
* Created on: Nov 26, 2012
* Author: guillou
*/
#ifndef POPUPTRANSFERSDIALOG_HPP_
#define POPUPTRANSFERSDIALOG_HPP_
#include <QTimer>
#include <QDialog>
#include <PopupLibTypes.hpp>
#include "ui_transfers.h"
struct PopupProgressWidget;
struct PopupTransfersDialog : public ... | C++ |
#ifndef POPUP_IMAGE_VIEWER_HPP
#define POPUP_IMAGE_VIEWER_HPP
#include <QtGui>
#include <QMutex>
#include <queue>
#include <vector>
#include <PopupGui.hpp>
struct PopupImage;
struct PopupImageFx;
class PopupImageViewer : public QDialog {
Q_OBJECT
public:
PopupImageViewer();
virtual ~PopupImageViewer();
... | C++ |
/*
* PopupImageViewerFx.h
*
* Created on: Jul 6, 2013
* Author: guillou
*/
#ifndef POPUPIMAGEVIEWERFX_H_
#define POPUPIMAGEVIEWERFX_H_
#include <QPainter>
#include "PopupImage.hpp"
#include "PopupImageViewer.hpp"
struct PopupImageFx
{
PopupImageFx(PopupImage *p_image) : m_fxTarget(p_image) {}
virtual ... | C++ |
#ifndef POPUP_PROMPT_DIALOG_HPP
#define POPUP_PROMPT_DIALOG_HPP
#include <QtGui>
#include <PopupLibTypes.hpp>
#include <PopupThreadWidget.hpp>
#include "ui_promptdialog.h"
struct PopupPromptDialog : public QDialog, private Ui_PromptDialog
{
Q_OBJECT
public:
PopupPromptDialog(QWidget *p_parent = 0);
... | C++ |
/*
* PopupUserProfileFrame.hpp
*
* Created on: Jul 25, 2012
* Author: guillou
*/
#ifndef POPUPUSERPROFILEFRAME_HPP_
#define POPUPUSERPROFILEFRAME_HPP_
#include <ui_userprofileframe.h>
#include <PopupUsersManager.hpp>
class PopupUserProfileFrame : public QFrame, private Ui_UserProfileFrame
{
Q_OBJECT
pu... | C++ |
#ifndef POPUP_MAIN_DIALOG_H
#define POPUP_MAIN_DIALOG_H
#include <QDialog>
#include <QtGui>
#include <QSettings>
#include <PopupSettings.hpp>
#include <PopupProgressWidget.hpp>
#include <PopupNotificationFrame.hpp>
#include <PopupUsersManager.hpp>
#include <ui_setupdialog.h>
class PopupSetupDialog : public QDialog,... | C++ |
/*
* PopupThreadStartWidget.hpp
*
* Created on: Jul 11, 2012
* Author: guillou
*/
#ifndef POPUPTHREADSTARTWIDGET_HPP_
#define POPUPTHREADSTARTWIDGET_HPP_
#include <PopupLibTypes.hpp>
#include <ui_threadstartwidget.h>
#include <string>
#include <vector>
class PopupUsersWidget;
class PopupThreadStartWidget... | C++ |
#ifndef POPUP_SETTINGS_HPP
#define POPUP_SETTINGS_HPP
#include <QtGui>
#include <QSettings>
#include <PopupClientUI.hpp>
#include <PopupCustomButton.hpp>
#include <PopupGui.hpp>
struct PopupSettings : public QSettings
{
private:
PopupSettings()
: QSettings("popup-v2", "parameters"), m_savePassword(false) {}
publ... | C++ |
/*
* PopupCanvassWidget.hpp
*
* Created on: Jul 16, 2012
* Author: guillou
*/
#ifndef POPUPCANVASSWIDGET_HPP_
#define POPUPCANVASSWIDGET_HPP_
#include <QTimer>
#include <PopupLibTypes.hpp>
#include <ui_canvasswidget.h>
class PopupChoiceWidget;
class PopupCanvassResult;
class PopupCanvassWidget : public Q... | C++ |
/*
* PopupUpdateManager.hpp
*
* Created on: Nov 20, 2012
* Author: guillou
*/
#ifndef POPUPUPDATEMANAGER_HPP_
#define POPUPUPDATEMANAGER_HPP_
#include <QMutex>
#include <QThread>
#include <QTimer>
#include <curl/curl.h>
#include <string>
#include <vector>
struct PopupUpdate
{
PopupUpdate(float p_versio... | C++ |
/*
* PopupCanvassResult.hpp
*
* Created on: Jul 17, 2012
* Author: guillou
*/
#ifndef POPUPCANVASSRESULT_HPP_
#define POPUPCANVASSRESULT_HPP_
#include <PopupUsersManager.hpp>
#include <ui_canvassresultwidget.h>
class PopupCanvassResult : public QWidget, private Ui_CanvassResultWidget
{
Q_OBJECT
public:... | C++ |
/*
* PopupVersion.hpp
*
* Created on: Nov 22, 2012
* Author: guillou
*/
#ifndef POPUPVERSION_HPP_
#define POPUPVERSION_HPP_
#include <string>
struct PopupBuildInfo
{
static float version();
static std::string target();
};
#endif /* POPUPVERSION_HPP_ */
| C++ |
/*
* PopupMessageWidget.hpp
*
* Created on: Jul 11, 2012
* Author: guillou
*/
#ifndef POPUPMESSAGEWIDGET_HPP_
#define POPUPMESSAGEWIDGET_HPP_
#include <map>
#include <PopupLibTypes.hpp>
#include <PopupGui.hpp>
#include <PopupImageViewer.hpp>
#include <QMutex>
#include <QTabWidget>
#include <QMessageBox>
c... | C++ |
#include <PopupOSAL.hpp>
#include <unistd.h>
using namespace PopupUtils;
Mutex::Mutex() {
pthread_mutex_init(&mutex, NULL);
}
Mutex::~Mutex() {
pthread_mutex_destroy(&mutex);
}
int Mutex::lock(bool p_try)
{
if (p_try == true) {
return pthread_mutex_trylock(&mutex);
} else {
return pthread_mutex_loc... | C++ |
#include <PopupOSAL.hpp>
#include <iostream>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/tcp.h>
using namespace std;
using namespace PopupUtils;
Socket *Socket::newServerSocket(int ... | C++ |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sstream>
#include <signal.h>
#include <limits.h>
#include <PopupOSAL.hpp>
#define MIN(a,b) ((a) < (b)? (a) : (b))
using namespace std;
using names... | C++ |
#include <stdio.h>
#include <string>
#include <PopupLoggerUI.hpp>
using namespace PopupUtils;
LoggerUI *LoggerUI::staticLogger = 0;
#define POPUP_GEN_LOG_FUNCTION(__name__, __level__) \
void __name__(const char *p_format, ...) { \
if (LoggerUI::instance() == 0) { ... | C++ |
/*
* PopupOSAL.cpp
*
* Created on: Jul 4, 2013
* Author: guillou
*/
#include <stdio.h>
#include <string>
#include <errno.h>
#include <PopupOSAL.hpp>
using namespace std;
using namespace PopupUtils;
unsigned long long PopupUtils::checksum(const string & p_path)
{
#define CHECKSUM_BUFF_SIZE 1048576 // 1024*1... | C++ |
#ifndef POPUP_WINDOWS_THREAD_H
#define POPUP_WINDOWS_THREAD_H
#include <process.h>
struct Mutex
{
CMutex m_mutex;
CSingleLock m_lock;
Mutex() : m_lock(&m_mutex, FALSE) {}
virtual ~Mutex() {}
int lock() { return m_lock.Lock(); }
int unlock() { return m_lock.Unlock(); }
};
struct PopupThread
{
type... | C++ |
#include "stdafx.h"
#include "PopupThread.h"
int PopupThread::start(ThreadRoutine p_routine, void *p_args)
{
WrapperArgs *_wrapper = new WrapperArgs(p_routine, p_args);
_beginthread(threadRoutineWrapper, 0, _wrapper);
return 0;
}
void PopupThread::threadRoutineWrapper(void *p_args)
{
WrapperArgs *_wrapper = (W... | C++ |
/*
Socket.cpp
Copyright (C) 2002-2004 Ren� Nyffenegger
This source code is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpo... | C++ |
#ifndef POPUP_FILE_IO_WINDOWS_H
#define POPUP_FILE_IO_WINDOWS_H
struct PopupFile
{
typedef enum {
READ = 0x01,
WRITE = 0x02,
CREATE = 0x04
} AccessMode;
CFile m_file;
PopupFile(const std::string & p_filePath, const char *p_mode)
: m_file(CString(p_filePath.c_str()), windowsAccessMode(p_mod... | C++ |
#include <PopupOSAL.hpp>
using namespace PopupUtils;
Mutex::Mutex() {
pthread_mutex_init(&mutex, NULL);
}
Mutex::~Mutex() {
pthread_mutex_destroy(&mutex);
}
int Mutex::lock(bool p_try)
{
if (p_try == true) {
return pthread_mutex_trylock(&mutex);
} else {
return pthread_mutex_lock(&mutex);
}
}
in... | C++ |
/*
Socket.cpp
Copyright (C) 2002-2004 Ren� Nyffenegger
This source code is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpo... | C++ |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sstream>
#include <PopupOSAL.hpp>
#define MIN(a,b) ((a) < (b)? (a) : (b))
using namespace std;
using namespace PopupUtils;
const string PopupUtil... | C++ |
#include <PopupOSAL.hpp>
#include <unistd.h>
using namespace PopupUtils;
Mutex::Mutex() {
pthread_mutex_init(&mutex, NULL);
}
Mutex::~Mutex() {
pthread_mutex_destroy(&mutex);
}
int Mutex::lock(bool p_try)
{
if (p_try == true) {
return pthread_mutex_lock(&mutex);
} else {
return pthread_mutex_tryloc... | C++ |
#include <PopupOSAL.hpp>
#include <iostream>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/tcp.h>
using namespace std;
using namespace PopupUtils;
Socket::Socket() : s(0) {
// UDP:... | C++ |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sstream>
#include <signal.h>
#include <PopupUtils.hpp>
#define MIN(a,b) ((a) < (b)? (a) : (b))
using namespace std;
using namespace PopupUtils;
O... | C++ |
/*
* types.hpp
*
* Created on: Jul 20, 2012
* Author: guillou
*/
#ifndef _TYPES_HPP_
#define _TYPES_HPP_
#include <pthread.h>
#include <signal.h>
#include <sys/time.h>
#include <stdio.h>
namespace PopupUtils
{
typedef pthread_mutex_t OSMutex;
typedef int OSSocketFd;
typedef struct timeval OSTimeval;... | C++ |
#ifndef __POPUP_OSAL_HPP__
#define __POPUP_OSAL_HPP__
#include <stdlib.h>
#include <string>
#include "PopupLoggerUI.hpp"
#if defined _LINUX || defined _MACOS
#include <linux/types.hpp>
#elif defined _WIN32_MINGW
#include <win32-mingw/types.hpp>
#elif defined _WIN32_MSVC
#include <win32-msvc/types.hpp>
#endif
#define... | C++ |
#ifndef POPUP_WINDOWS_THREAD_H
#define POPUP_WINDOWS_THREAD_H
#include <process.h>
struct Mutex
{
CMutex m_mutex;
CSingleLock m_lock;
Mutex() : m_lock(&m_mutex, FALSE) {}
virtual ~Mutex() {}
int lock() { return m_lock.Lock(); }
int unlock() { return m_lock.Unlock(); }
};
struct PopupThread
{
type... | C++ |
#include "stdafx.h"
#include "PopupThread.h"
int PopupThread::start(ThreadRoutine p_routine, void *p_args)
{
WrapperArgs *_wrapper = new WrapperArgs(p_routine, p_args);
_beginthread(threadRoutineWrapper, 0, _wrapper);
return 0;
}
void PopupThread::threadRoutineWrapper(void *p_args)
{
WrapperArgs *_wrapper = (W... | C++ |
#ifndef POPUP_FILE_IO_WINDOWS_H
#define POPUP_FILE_IO_WINDOWS_H
struct PopupFile
{
typedef enum {
READ = 0x01,
WRITE = 0x02,
CREATE = 0x04
} AccessMode;
CFile m_file;
PopupFile(const std::string & p_filePath, const char *p_mode)
: m_file(CString(p_filePath.c_str()), windowsAccessMode(p_mod... | C++ |
/*
* types.hpp
*
* Created on: Jul 20, 2012
* Author: guillou
*/
#ifndef TYPES_HPP_
#define TYPES_HPP_
#include <winsock2.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
namespace PopupUtils
{
typedef pthread_mutex_t OSMutex;
typedef SOCKET OSSocketFd;
typedef TIMEVAL OSTimeval;
typ... | C++ |
#ifndef __POPUP_LOGGER_UI_HPP__
#define __POPUP_LOGGER_UI_HPP__
#include <string>
#include <stdarg.h>
namespace PopupUtils
{
typedef enum {
POPUP_LOG_TRACE,
POPUP_LOG_INFO,
POPUP_LOG_WARNING,
POPUP_LOG_ERROR,
POPUP_LOG_CRITICAL
} LogLevel;
const char *convertLogLevelToString(LogLevel p_leve... | C++ |
/*
* types.hpp
*
* Created on: Jul 20, 2012
* Author: guillou
*/
#ifndef TYPES_HPP_
#define TYPES_HPP_
#include <pthread.h>
#include <signal.h>
#include <sys/time.h>
#include <stdio.h>
namespace PopupUtils
{
typedef pthread_mutex_t OSMutex;
typedef int OSSocketFd;
typedef struct timeval OSTimeval;
... | C++ |
#include <stdlib.h>
#include <stdio.h>
#include <PopupOSAL.hpp>
#include "PopupServer.hpp"
#include "DefaultAvatar.res"
using namespace Popup;
using namespace std;
MaquiServer::MaquiServer(const string & p_rcpath) : rcpath(p_rcpath) {
if (rcpath.length() == 0) {
rcpath = string(getenv("HOME")) + "/.popup/serve... | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.