namespace
{
-typedef std::map<CopiedString, CopiedString> KeyValues;
+typedef std::map<std::string, std::string> KeyValues;
KeyValues g_selectedKeyValues;
KeyValues g_selectedDefaultKeyValues;
}
class BooleanAttribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
GtkCheckButton* m_check;
static gboolean toggled( GtkWidget *widget, BooleanAttribute* self ){
class StringAttribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
GtkEntry* m_entry;
NonModalEntry m_nonModal;
public:
class ModelAttribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
BrowsedPathEntry m_entry;
NonModalEntry m_nonModal;
public:
class SoundAttribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
BrowsedPathEntry m_entry;
NonModalEntry m_nonModal;
public:
class AngleAttribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
GtkEntry* m_entry;
NonModalEntry m_nonModal;
public:
class DirectionAttribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
GtkEntry* m_entry;
NonModalEntry m_nonModal;
RadioHBox m_radio;
class AnglesAttribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
AnglesEntry m_angles;
NonModalEntry m_nonModal;
GtkBox* m_hbox;
class Vector3Attribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
Vector3Entry m_vector3;
NonModalEntry m_nonModal;
GtkBox* m_hbox;
class ListAttribute : public EntityAttribute
{
-CopiedString m_key;
+std::string m_key;
GtkComboBox* m_combo;
NonModalComboBox m_nonModal;
const ListAttributeType& m_type;
}
void visit( const char* key, const char* value ){
- m_keyvalues.insert( KeyValues::value_type( CopiedString( key ), CopiedString( value ) ) );
+ m_keyvalues.insert( KeyValues::value_type( std::string( key ), std::string( value ) ) );
}
};
}
const char* keyvalues_valueforkey( KeyValues& keyvalues, const char* key ){
- KeyValues::iterator i = keyvalues.find( CopiedString( key ) );
+ KeyValues::iterator i = keyvalues.find( std::string( key ) );
if ( i != keyvalues.end() ) {
return ( *i ).second.c_str();
}
// save current key/val pair around filling epair box
// row_select wipes it and sets to first in list
- CopiedString strKey( gtk_entry_get_text( g_entityKeyEntry ) );
- CopiedString strVal( gtk_entry_get_text( g_entityValueEntry ) );
+ std::string strKey( gtk_entry_get_text( g_entityKeyEntry ) );
+ std::string strVal( gtk_entry_get_text( g_entityValueEntry ) );
gtk_list_store_clear( store );
// Walk through list and add pairs