Changeset c92e0f2a574ef34db55f8017089dda5856258200


Ignore:
Timestamp:
05/07/10 19:55:20 (21 months ago)
Author:
Luper Rouch <luper.rouch@…>
Children:
06c5c29de5c9c613c7ccb1995d2792ecaa925d68
Parents:
7bea8cb34b5f80060aeafc77e2a85da510cd9c37
git-committer:
Luper Rouch <luper.rouch@…> (05/07/10 19:55:20)
Message:

pyflu:

  • providing a default implementation for refresh_mru_menu
  • new base classes for qt table views
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • hardware/libraries/RadaSheper/RadaSheper.cpp

    r9a5cd22 rc92e0f2  
    3838    tasks[Detector] = &detector; 
    3939    // Member variables 
    40     mode = Radar; 
     40    mode = Intervalometer; 
    4141    focus_mode = ManualFocus; 
    4242} 
  • pyflu/.gitignore

    r32adf17 rc92e0f2  
    33pyflu.egg-info 
    44.coverage 
     5*.cover 
  • pyflu/pyflu/__init__.py

    r70bb1cc rc92e0f2  
    55 
    66def version(): 
    7     return "0.5.1" 
     7    return "0.6.0" 
    88 
  • pyflu/pyflu/qt/base/main_window.py

    r70bb1cc rc92e0f2  
    5050    """ 
    5151    A mixin class to handle MRU files lists. 
     52 
     53    Subclasses must define the :attr:`mru_load_func` and :attr:`mru_menu` class 
     54    attributes, which must be names of the load method (taking the file 
     55    path as argument) and of the MRU menu item. 
    5256    """ 
    5357 
     
    5559    mru_length = 5 
    5660    mru_load_func = None 
     61    mru_menu = None 
    5762 
    5863    def mru_list(self): 
     
    108113 
    109114    def refresh_mru_menu(self): 
    110         raise NotImplementedError("subclasses of MruMainWindow must provide " 
    111                 "an implementation of refresh_mru_menu()") 
     115        menu = getattr(self, self.mru_menu) 
     116        menu.clear() 
     117        menu.addActions(self.mru_actions()) 
  • pyflu/pyflu/qt/models/treemodel.py

    r70bb1cc rc92e0f2  
    5555        return self.num_columns 
    5656 
    57     def data(self, index, role): 
     57    def data(self, index, role=Qt.DisplayRole): 
    5858        if not index.isValid(): 
    5959            return QVariant() 
  • pyflu/pyflu/qt/models/treenode.py

    r5d845a9 rc92e0f2  
    9494    def row(self): 
    9595        """ 
    96         This property holds the row number of this node. 
     96        Return the row number of this node. 
    9797        """ 
    9898        return self.parent.children.index(self) 
  • pyflu/setup.py

    r33be698 rc92e0f2  
    3333    install_requires = ["lxml"], 
    3434 
    35     packages = find_packages(),     
     35    packages = find_packages("pyflu"), 
    3636) 
Note: See TracChangeset for help on using the changeset viewer.