diff options
| author | 2022-04-16 01:58:40 +0200 | |
|---|---|---|
| committer | 2022-04-16 02:59:30 +0200 | |
| commit | 6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8 (patch) | |
| tree | e29af0f803de724e28eab85da2dfe6c535a8292b /include/dicealias.h | |
| parent | 0c040da59e6aa2df3bd0c22e38b2afe0512d3749 (diff) | |
| download | OneRoll-6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8.tar.gz OneRoll-6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8.zip | |
Make sure Windows compilation works
Diffstat (limited to 'include/dicealias.h')
| -rw-r--r-- | include/dicealias.h | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/include/dicealias.h b/include/dicealias.h deleted file mode 100644 index c390d21..0000000 --- a/include/dicealias.h +++ /dev/null @@ -1,120 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2014 by Renaud Guezennec * - * https://rolisteam.org/contact * - * * - * This file is part of DiceParser * - * * - * DiceParser is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ -#ifndef DICEALIAS_H -#define DICEALIAS_H - -#include <QString> -/** - * @brief The DiceAlias class is dedicated to store aliases, alias is mainly two QString. The Alias and its replacement. - * The replacement can be a simple QString or a RegExp. - */ -class DiceAlias -{ -public: - enum RESOLUTION_TYPE - { - REPLACE, - REGEXP - }; - /** - * @brief DiceAlias - * @param cmd - * @param key - * @param isReplace - */ - DiceAlias(QString pattern, QString command, QString comment= QString{}, bool isReplace= true, bool isEnable= true); - DiceAlias(const DiceAlias& alias); - /** - * @brief ~DiceAlias - */ - virtual ~DiceAlias(); - /** - * @brief resolved - * @param str - * @return - */ - bool resolved(QString& str); - /** - * @brief setCommand - * @param key - */ - void setPattern(const QString& pattern); - /** - * @brief setValue - * @param value - */ - void setCommand(QString command); - /** - * @brief setType - */ - void setType(RESOLUTION_TYPE); - - /** - * @brief getCommand - * @return - */ - QString pattern() const; - /** - * @brief getValue - * @return - */ - QString command() const; - /** - * @brief isReplace - * @return - */ - bool isReplace() const; - /** - * @brief setReplace - */ - void setReplace(bool); - - /** - * @brief isEnable - * @return - */ - bool isEnable() const; - /** - * @brief setEnable - * @param b - */ - void setEnable(bool b); - /** - * @brief getComment - * @return - */ - QString comment() const; - /** - * @brief setComment - * @param comment - */ - void setComment(const QString& comment); - -private: - QString m_pattern; - QString m_command; - QString m_comment; - RESOLUTION_TYPE m_type; - bool m_isEnable; -}; - -#endif // DICEALIAS_H |