Trees | Indices | Help |
|
---|
|
1 # -*- coding: utf-8 -*- 2 3 ########################################################################## 4 # gridtoolbar.py 5 # 6 # Grid ayarlarının yapıldığı toolbar 7 # 8 # (C) 2007 Likya Yazılım ve Bilişim Hizmetleri Ltd. Şti. 9 ########################################################################## 10 11 from PyQt4.QtCore import * 12 from PyQt4.QtGui import * 13 14 from toolbar import ToolBar 15 from tools import * 16184620 ''' 21 Grid ayarları için gereken nesneleri ekler. 22 ''' 23 self._spinBox = QSpinBox() 24 self._spinBox.setRange(1, 10) 25 self._spinBox.setSuffix(' %s' % self._plugin.unitName()) 26 self._spinBox.setValue(self._plugin.gridStep()) 27 self._spinBox.setToolTip(tr('Cetvel Çizgileri')) 28 self._spinBox.setStatusTip(tr('Cetvel çizgilerinin boylarını ayarlar.')) 29 30 action = self.addWidget(self._spinBox) 31 action.setToolTip(tr('Cetvel Çizgileri')) 32 action.setStatusTip(tr('Cetvel çizgilerinin boylarını ayarlar.')) 33 34 self._spinBox.setMinimumHeight(self.height() + 2) 35 36 self.connect(self._spinBox, SIGNAL('valueChanged(int)'), self.gridStepChanged)3739 ''' 40 Grid boyları değiştiği zaman, editörü güncelliyoruz. 41 ''' 42 if 1 <= newValue <= 10: 43 self._plugin.setGridStep(newValue) 44 45 self.emit(SIGNAL('gridStepChanged()'))
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Oct 29 19:47:04 2009 | http://epydoc.sourceforge.net |