Commit 9cee486f authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

Factor constant N_STEREOATTRS from dialogs/stereoattributedialog.h into

separate file dialogs/n_stereoattrs.h.
Reason: Avoid unnecessary coupling.
parent 66da747f
/***************************************************************************
* This program 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. *
* *
* copyright (C) 2020 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
#ifndef _N_STEREOATTRS__H
#define _N_STEREOATTRS__H
// Maximum number of tagged values per stereotype
#define N_STEREOATTRS 3
#endif
......@@ -12,6 +12,7 @@
#define STEREOATTRIBUTEDIALOG_H
#include "singlepagedialogbase.h"
#include "n_stereoattrs.h"
class QGroupBox;
class QLabel;
......@@ -39,8 +40,6 @@ protected:
*/
UMLStereotype *m_pStereotype;
#define N_STEREOATTRS 3
//GUI Widgets
QGroupBox * m_pValuesGB;
QLabel * m_pNameLabel [N_STEREOATTRS];
......
......@@ -296,7 +296,7 @@ protected:
///< stereotype is applied and has attributes.
///< The order of elements is the same as in
///< UMLStereotype::AttributeDefs.
///< At most N_STEREOATTRS are used (see stereotype.h)
///< At most N_STEREOATTRS are used (see dialogs/n_stereoattrs.h)
UMLObjectPrivate *m_d; ///< private data
friend class ObjectsModel;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment