GUI: added 'Entire Block' checkbox to HexEditDialog
This commit is contained in:
		
							parent
							
								
									7631be5a66
								
							
						
					
					
						commit
						5c5efa5324
					
				|  | @ -19,6 +19,7 @@ HexEditDialog::HexEditDialog(QWidget *parent) : | |||
|     font.setStyleHint(QFont::Monospace); | ||||
|     ui->lineEditAscii->setFont(font); | ||||
|     ui->lineEditUnicode->setFont(font); | ||||
|     ui->chkEntireBlock->hide(); | ||||
| 
 | ||||
|     //setup hex editor
 | ||||
|     mHexEdit = new QHexEdit(this); | ||||
|  | @ -39,6 +40,19 @@ HexEditDialog::~HexEditDialog() | |||
|     delete ui; | ||||
| } | ||||
| 
 | ||||
| void HexEditDialog::showEntireBlock(bool show) | ||||
| { | ||||
|     if(show) | ||||
|         ui->chkEntireBlock->show(); | ||||
|     else | ||||
|         ui->chkEntireBlock->hide(); | ||||
| } | ||||
| 
 | ||||
| bool HexEditDialog::entireBlock() | ||||
| { | ||||
|     return ui->chkEntireBlock->isChecked(); | ||||
| } | ||||
| 
 | ||||
| void HexEditDialog::on_btnAscii2Hex_clicked() | ||||
| { | ||||
|     QString text = ui->lineEditAscii->text(); | ||||
|  |  | |||
|  | @ -16,6 +16,9 @@ public: | |||
|     explicit HexEditDialog(QWidget *parent = 0); | ||||
|     ~HexEditDialog(); | ||||
| 
 | ||||
|     void showEntireBlock(bool show); | ||||
|     bool entireBlock(); | ||||
| 
 | ||||
|     QHexEdit* mHexEdit; | ||||
| 
 | ||||
| private slots: | ||||
|  |  | |||
|  | @ -191,6 +191,19 @@ | |||
|     <string>&Keep Size</string> | ||||
|    </property> | ||||
|   </widget> | ||||
|   <widget class="QCheckBox" name="chkEntireBlock"> | ||||
|    <property name="geometry"> | ||||
|     <rect> | ||||
|      <x>80</x> | ||||
|      <y>240</y> | ||||
|      <width>81</width> | ||||
|      <height>17</height> | ||||
|     </rect> | ||||
|    </property> | ||||
|    <property name="text"> | ||||
|     <string>&Entire Block</string> | ||||
|    </property> | ||||
|   </widget> | ||||
|  </widget> | ||||
|  <tabstops> | ||||
|   <tabstop>lineEditAscii</tabstop> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue