VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtMultiMapEditorInterface.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtMultiMapEditorInterface.h,v $ $Revision: 1.6 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvCoreQt/vrvCoreQt.h>
00015 #include <QtCore/QStringList>
00016 
00017 namespace makVrv
00018 {
00022    class DT_DLL_VRVCOREQT DtMultiMapEditorInterface
00023    {
00024    public:     
00025       virtual ~DtMultiMapEditorInterface();
00026 
00029       virtual void setPossibleValues(QStringList values,int column = 1) = 0;
00030 
00032       virtual void addValue(const std::string& key, const std::string& value, 
00033       int index = 1) = 0;
00034 
00036       virtual void changeValue(const std::string& key, const std::string& oldValue,
00037          const std::string& value, int index = 1) = 0;
00038 
00040       virtual void deleteValue(const std::string& key, const std::string& value) = 0;
00041 
00043       virtual void replaceValue(const std::string& key, 
00044       const std::string& oldValue, const std::string& newValue) = 0;
00045 
00047       virtual void clearValues() = 0;
00048 
00050       virtual void unableToRenameParameter(const std::string& oldName) = 0;
00051 
00053       virtual void sortItems() = 0;
00054 
00056       virtual void selectValue(const std::string& key,const std::string& value) = 0;
00057 
00059       virtual void selectFirstValue(const std::string& key) = 0;
00060 
00064       virtual void renameKey(const std::string& oldkey, const std::string& value, 
00065       const std::string& newkey) = 0;
00066 
00068       virtual void setTitle(const QString&) = 0;
00069 
00072       virtual bool selectedInstanceNameAndValue(QString& key, QString& value) const = 0;
00073 
00075       virtual QWidget* widget() = 0;
00076 
00079       virtual void setValid(const std::string& name, const std::string& value, bool valid, const QString& errorText) = 0;
00080 
00082       boost::signal<void (const std::string& oldName,const std::string& value, const std::string& newName)> signal_renameValue;
00083 
00086       boost::signal<void (const std::string& key,const std::string& value, int index)> signal_addValue;
00087 
00090       boost::signal<void (const std::string& key,const std::string& oldValue, const std::string& value, int index)> signal_valueChanged;
00091 
00093       boost::signal<void (const std::string& key, const std::string& value)> signal_deleteValue;
00094 
00095       boost::signal<void (const std::string& key)> signal_itemSelected;
00096    };
00097 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)