![]() ![]() isChecked ( ) : 140 return ' True ' 141 elif self. setChecked ( True ) 137 138 def value ( self ) : 139 if self. setChecked ( True ) 133 elif curvalue = ' False ' : 134 self. curvalue = curvalue 131 if curvalue = ' True ' : 132 self. setLayout ( layout ) 127 128 # common APIs for all edit widgets 129 def setValue ( self, curvalue ) : 130 self. ![]() setContentsMargins ( 0, 0, 0, 0 ) 123 layout. unspecRB = QRadioButton ( _ ( ' &Unspecified ' ) ) 120 121 layout = QHBoxLayout ( ) 122 layout. falseRB = QRadioButton ( _ ( ' &False ' ) ) 119 self. trueRB = QRadioButton ( _ ( ' &True ' ) ) 118 self. _init_ ( self, parent, toolTip = opts ) 114 self. curvalue 110 111 class BoolRBGroup ( QWidget ) : 112 def _init_ ( self, parent = None, * * opts ) : 113 QWidget. fromunicode ( utext ) 107 108 def isDirty ( self ) : 109 return self. previous 104 settings = QSettings ( ) 105 settings. previous or not utext : 101 return hglib. currentText ( ) 98 if utext = _unspecstr : 99 return None 100 if ' nohist ' in self. resetList ( ) 95 96 def value ( self ) : 97 utext = self. showPopup ( self ) 89 90 # common APIs for all edit widgets 91 92 def setValue ( self, curvalue ) : 93 self. setEditText ( ucur ) 82 83 def showPopup ( self ) : 84 if self. count ( ) - 1 ) 80 else : # empty string 81 self. setCurrentIndex ( curindex ) 75 elif self. addItem ( m ) 73 if curindex is not None : 74 self. previous : 70 if ucur = m and not curindex : 71 curindex = self. defaults : 64 if ucur = s : 65 curindex = self. addItem ( _unspecstr ) 62 curindex = None 63 for s in self. addItem ( _unspecstr ) 58 else : 59 self. setMinimumWidth ( ENTRY_WIDTH ) 51 52 def resetList ( self ) : 53 self. previous = 46 else : 47 settings = opts 48 slist = settings. loaded = False 44 if ' nohist ' in opts : 45 self. _init_ ( self, parent, toolTip = opts ) 36 self. extensions ( ) : 29 if name = extname : 30 return True 31 return False 32 33 class SettingsCombo ( QComboBox ) : 34 def _init_ ( self, parent = None, * * opts ) : 35 QComboBox. ![]() 7 8 import os 9 10 from mercurial import ui, util, error, extensions 11 12 from tortoisehg.util import hglib, settings, paths, wconfig, i18n, bugtraq 13 from 18n import _ 14 from tortoisehg.hgqt import qtlib, qscilib, thgrepo 15 16 from PyQt4.QtCore import * 17 from PyQt4.QtGui import * 18 19 # Technical Debt 20 # stacked widget or pages need to be scrollable 21 # we need a consistent icon set 22 # connect to nfigChanged signal and refresh 23 24 _unspecstr = _ ( ' ' ) 25 ENTRY_WIDTH = 300 26 27 def hasExtension ( extname ) : 28 for name, module in extensions. #Tortoisehg issue regex software#Raw file 1 # settings.py - Configuration dialog for TortoiseHg and Mercurial 2 # 3 # Copyright 2010 Steve Borho 4 # 5 # This software may be used and distributed according to the terms of the 6 # GNU General Public License version 2, incorporated herein by reference. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |