Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) QtDotMatrix

 

Technical facts

 

 

 

 

 

 

./CppQtDotMatrix/CppQtDotMatrix.pri

 

INCLUDEPATH += \
    ../../Classes/CppQtDotMatrix

SOURCES += \
    ../../Classes/CppQtDotMatrix/qtdotmatrixstring.cpp \
    ../../Classes/CppQtDotMatrix/qtdotmatrixchar.cpp

HEADERS  += \
    ../../Classes/CppQtDotMatrix/qtdotmatrixstring.h \
    ../../Classes/CppQtDotMatrix/qtdotmatrixchar.h

OTHER_FILES += \
    ../../Classes/CppQtDotMatrix/Licence.txt

 

 

 

 

 

./CppQtDotMatrix/qtdotmatrixchar.h

 

#ifndef QTDOTMATRIX_H
#define QTDOTMATRIX_H

/*

#include <string>
#include <vector>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#include <boost/shared_ptr.hpp>
#pragma GCC diagnostic pop

struct QImage;

namespace ribi {

struct DotMatrixChar;

///QtDotMatrix creates a dot matrix QImage of a characters
struct QtDotMatrixChar
{
  QtDotMatrixChar(const char c);

  ///Read back the dot matrix info
  const boost::shared_ptr<const DotMatrixChar> GetMatrix() const noexcept { return m_matrix; }

  ///Create a QPixmap from the character
  const boost::shared_ptr<QImage> CreateImage() const noexcept;

  private:
  const boost::shared_ptr<DotMatrixChar> m_matrix;
};

} //~namespace ribi

*/

#endif // QTDOTMATRIX_H

 

 

 

 

 

./CppQtDotMatrix/qtdotmatrixchar.cpp

 

/*

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#include "qtdotmatrixchar.h"

#include <cassert>

#include "dotmatrixchar.h"
#pragma GCC diagnostic pop

ribi::QtDotMatrixChar::QtDotMatrixChar(const char c)
  : m_matrix(new DotMatrixChar(c))
{
  assert(m_matrix);
}

const boost::shared_ptr<QImage> ribi::QtDotMatrixChar::CreateImage() const noexcept
{
  return m_matrix->CreateImage();
}

*/

 

 

 

 

 

./CppQtDotMatrix/qtdotmatrixstring.h

 

#ifndef QTDOTMATRIXSTRING_H
#define QTDOTMATRIXSTRING_H

/*

#include <string>
#include <vector>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#include <boost/shared_ptr.hpp>
//#include <QPixmap>
#pragma GCC diagnostic pop

struct QImage;

namespace ribi {

struct DotMatrixString;

///QtDotMatrix creates a dot matrix QImage of a character
struct QtDotMatrixString
{
  QtDotMatrixString(const std::string& s, const int spacing);

  ///Read back the dot matrix info
  const boost::shared_ptr<const DotMatrixString> GetMatrix() const noexcept { return m_matrix; }

  ///Create a QImage from the character
  const boost::shared_ptr<QImage> CreateImage() const noexcept;

  private:
  const boost::shared_ptr<DotMatrixString> m_matrix;
};

} //~namespace ribi
*/

#endif // QTDOTMATRIXSTRING_H

 

 

 

 

 

./CppQtDotMatrix/qtdotmatrixstring.cpp

 

/*
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#include "qtdotmatrixstring.h"

#include <cassert>


#include <QImage>
#include <QRgb>

#include "dotmatrixstring.h"
#pragma GCC diagnostic pop

ribi::QtDotMatrixString::QtDotMatrixString(const std::string& s,
  const int spacing)
  : m_matrix(new DotMatrixString(s,spacing))
{
  assert(m_matrix);
}

const boost::shared_ptr<QImage> ribi::QtDotMatrixString::CreateImage() const noexcept
{
  return m_matrix->CreateImage();
}

*/

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml