• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

palapeli/libpala

  • sources
  • kde-4.14
  • kdegames
  • palapeli
  • libpala
slicermode.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2010 Stefan Majewsky <majewsky@gmx.net>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  ***************************************************************************/
18 
19 #ifndef LIBPALA_SLICERMODE_H
20 #define LIBPALA_SLICERMODE_H
21 
22 #if defined(MAKE_LIBPALA) || defined(USE_LOCAL_LIBPALA)
23 # include "libpalamacros.h"
24 #else
25 # include <libpala/libpalamacros.h>
26 #endif
27 
28 #include <QtCore/QByteArray>
29 
30 namespace Pala
31 {
32  class SlicerProperty;
33 
46  class LIBPALA_EXPORT SlicerMode
47  {
48  public:
52  SlicerMode(const QByteArray& key, const QString& name);
53  virtual ~SlicerMode();
54 
55  //The following functions belong to the interface to the Palapeli application. They are not documented because the documentation is targeted at slicer developers.
57  void filterProperties(QList<const Pala::SlicerProperty*>& properties) const; //This function removes all properties from the given map which are disabled in this mode, taking both Pala::SlicerProperty::isEnabled and the exceptions defined by this mode into account.
59  QByteArray key() const;
61  QString name() const;
62 
64  void setPropertyEnabled(const QByteArray& property, bool enabled);
65 
66  //Some space in the vtable reserved for future additions
67  RESERVE_VIRTUAL_5
68  private:
69  class Private;
70  Private* const p;
71  };
72 }
73 
74 #endif // LIBPALA_SLICERMODE_H
QByteArray
Pala::SlicerMode
Representation of an operational mode of a slicing algorithm.
Definition: slicermode.h:46
QString
QList
LIBPALA_EXPORT
#define LIBPALA_EXPORT
Definition: libpalamacros.h:28
libpalamacros.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

palapeli/libpala

Skip menu "palapeli/libpala"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal