Your ROOT_URL in app.ini is https://scm.trinitydesktop.org/gitea/ but you are visiting https://scm.trinitydesktop.net/gitea/TDE/tdevelop/src/commit/d5fa554b1f75e73d3873fdaea7ef4dd1c68be69f/languages/cpp/creategettersetterconfiguration.cpp You should set ROOT_URL correctly, otherwise the web may not work correctly.
tdevelop/languages/cpp/creategettersetterconfigura...

63 lines
2.0 KiB

//
// C++ Implementation: %{MODULE}
//
// Description:
//
//
// Author: %{AUTHOR} <%{EMAIL}>, (C) %{YEAR}
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "creategettersetterconfiguration.h"
#include "cppsupportpart.h"
#include <domutil.h>
#include <tqdom.h>
#include <kmessagebox.h>
TQString CreateGetterSetterConfiguration::defaultPath = TQString::fromLatin1( "/kdevcppsupport/creategettersetter" );
CreateGetterSetterConfiguration::CreateGetterSetterConfiguration( CppSupportPart * part )
: TQObject(part), m_part(part), m_settings(0)
{
init();
}
CreateGetterSetterConfiguration::~CreateGetterSetterConfiguration()
{
}
void CreateGetterSetterConfiguration::init( )
{
m_settings = m_part->projectDom();
if (m_settings == 0)
return;
m_prefixGet = DomUtil::readEntry( *m_settings, defaultPath + "/prefixGet", "" );
m_prefixSet = DomUtil::readEntry( *m_settings, defaultPath + "/prefixSet", "set" );
m_prefixVariable = TQStringList::split(",", DomUtil::readEntry( *m_settings, defaultPath + "/prefixVariable", "m_,_" ));
m_parameterName = DomUtil::readEntry( *m_settings, defaultPath + "/parameterName", "theValue" );
m_isInlineGet = DomUtil::readBoolEntry(*m_settings, defaultPath + "/inlineGet", true );
m_isInlineSet = DomUtil::readBoolEntry(*m_settings, defaultPath + "/inlineSet", true );
}
void CreateGetterSetterConfiguration::store( )
{
if (m_settings == 0)
return;
DomUtil::writeEntry( *m_settings, defaultPath + "/prefixGet", m_prefixGet );
DomUtil::writeEntry( *m_settings, defaultPath + "/prefixSet", m_prefixSet );
DomUtil::writeEntry( *m_settings, defaultPath + "/prefixVariable", m_prefixVariable.join(",") );
DomUtil::writeEntry( *m_settings, defaultPath + "/parameterName", m_parameterName );
DomUtil::writeBoolEntry(*m_settings, defaultPath + "/inlineGet", m_isInlineGet );
DomUtil::writeBoolEntry(*m_settings, defaultPath + "/inlineSet", m_isInlineSet );
}
#include "creategettersetterconfiguration.moc"
//kate: indent-mode csands; tab-width 4; space-indent off;