Package node_manager_fkie :: Module history' :: Class History
[frames] | no frames]

Class History

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
     PyQt4.QtCore.QObject --+
                            |
                           History

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
storeAll(self) source code
 
cachedParamValues(self, key) source code
 
addParamCache(self, key, value) source code
 
removeParamCache(self, key, value) source code
dict(str(name):[str(value), ...], ...)
loadCache(self, history_file)
Loads the content of the given file and return it as cache.
source code
 
storeCache(self, history_file, cache, history_len)
Stores the cache to a file.
source code

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  PARAM_CACHE = {}
the cache is used to store and recover the value for last entered parameter in parameter dialog.

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

loadCache(self, history_file)

source code 

Loads the content of the given file and return it as cache.

Parameters:
  • history_file (str) - the name of the history file
Returns: dict(str(name):[str(value), ...], ...)
the dictionary with arguments

storeCache(self, history_file, cache, history_len)

source code 

Stores the cache to a file.

Parameters:
  • history_file (str) - the name of the history file
  • cache (dict) - the dictionary with values
  • history_len (int) - the maximal count of value for a key