summaryrefslogtreecommitdiffstats
path: root/khexedit/toplevel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'khexedit/toplevel.cpp')
-rw-r--r--khexedit/toplevel.cpp250
1 files changed, 125 insertions, 125 deletions
diff --git a/khexedit/toplevel.cpp b/khexedit/toplevel.cpp
index b462b5a..474faa3 100644
--- a/khexedit/toplevel.cpp
+++ b/khexedit/toplevel.cpp
@@ -66,42 +66,42 @@ KHexEdit::KHexEdit( void )
// Prepare menus and status bar
//
mAction.bookmarkMapper = new TQSignalMapper(this);
- connect(mAction.bookmarkMapper, TQT_SIGNAL(mapped(int)), editor(), TQT_SLOT(gotoBookmark(int)));
+ connect(mAction.bookmarkMapper, TQ_SIGNAL(mapped(int)), editor(), TQ_SLOT(gotoBookmark(int)));
setupActions();
setupStatusBar();
- connect( hexView(), TQT_SIGNAL( cursorChanged( SCursorState & ) ),
- this, TQT_SLOT( cursorChanged( SCursorState & ) ) );
- connect( hexView(), TQT_SIGNAL( editMode( CHexBuffer::EEditMode ) ),
- this, TQT_SLOT( editMode( CHexBuffer::EEditMode ) ) );
- connect( hexView(), TQT_SIGNAL( encodingChanged( const SEncodeState &)),
- this, TQT_SLOT( encodingChanged( const SEncodeState & )) );
- connect( hexView(), TQT_SIGNAL( textWidth( uint ) ),
- this, TQT_SLOT( textWidth( uint ) ) );
- connect( hexView(), TQT_SIGNAL( fileState( SFileState & ) ),
- this, TQT_SLOT( fileState( SFileState & ) ) );
- connect( hexView(), TQT_SIGNAL( layoutChanged( const SDisplayLayout & ) ),
- this, TQT_SLOT( layoutChanged( const SDisplayLayout & ) ) );
- connect( hexView(), TQT_SIGNAL( inputModeChanged( const SDisplayInputMode & ) ),
- this, TQT_SLOT( inputModeChanged( const SDisplayInputMode & ) ) );
- connect( hexView(), TQT_SIGNAL( bookmarkChanged( TQPtrList<SCursorOffset> &)),
- this, TQT_SLOT( bookmarkChanged( TQPtrList<SCursorOffset> & ) ) );
- connect( hexView(), TQT_SIGNAL( fileName( const TQString &, bool ) ),
- this, TQT_SLOT( fileActive( const TQString &, bool ) ) );
- connect( hexView(), TQT_SIGNAL( fileRename( const TQString &, const TQString & )),
- this, TQT_SLOT( fileRename( const TQString &, const TQString & ) ) );
- connect( hexView(), TQT_SIGNAL( fileClosed( const TQString & ) ),
- this, TQT_SLOT( fileClosed( const TQString & ) ) );
- connect( editor(), TQT_SIGNAL( errorLoadFile( const TQString & ) ),
- this, TQT_SLOT( removeRecentFile( const TQString & ) ) );
- connect( editor(), TQT_SIGNAL( operationChanged( bool ) ),
- this, TQT_SLOT( operationChanged( bool ) ) );
- connect( editor(), TQT_SIGNAL( removeRecentFiles() ),
- this, TQT_SLOT( removeRecentFiles() ) );
- connect( mManager, TQT_SIGNAL( conversionClosed() ),
- this, TQT_SLOT(conversionClosed()) );
- connect( mManager, TQT_SIGNAL( searchBarClosed() ),
- this, TQT_SLOT(searchBarClosed()) );
+ connect( hexView(), TQ_SIGNAL( cursorChanged( SCursorState & ) ),
+ this, TQ_SLOT( cursorChanged( SCursorState & ) ) );
+ connect( hexView(), TQ_SIGNAL( editMode( CHexBuffer::EEditMode ) ),
+ this, TQ_SLOT( editMode( CHexBuffer::EEditMode ) ) );
+ connect( hexView(), TQ_SIGNAL( encodingChanged( const SEncodeState &)),
+ this, TQ_SLOT( encodingChanged( const SEncodeState & )) );
+ connect( hexView(), TQ_SIGNAL( textWidth( uint ) ),
+ this, TQ_SLOT( textWidth( uint ) ) );
+ connect( hexView(), TQ_SIGNAL( fileState( SFileState & ) ),
+ this, TQ_SLOT( fileState( SFileState & ) ) );
+ connect( hexView(), TQ_SIGNAL( layoutChanged( const SDisplayLayout & ) ),
+ this, TQ_SLOT( layoutChanged( const SDisplayLayout & ) ) );
+ connect( hexView(), TQ_SIGNAL( inputModeChanged( const SDisplayInputMode & ) ),
+ this, TQ_SLOT( inputModeChanged( const SDisplayInputMode & ) ) );
+ connect( hexView(), TQ_SIGNAL( bookmarkChanged( TQPtrList<SCursorOffset> &)),
+ this, TQ_SLOT( bookmarkChanged( TQPtrList<SCursorOffset> & ) ) );
+ connect( hexView(), TQ_SIGNAL( fileName( const TQString &, bool ) ),
+ this, TQ_SLOT( fileActive( const TQString &, bool ) ) );
+ connect( hexView(), TQ_SIGNAL( fileRename( const TQString &, const TQString & )),
+ this, TQ_SLOT( fileRename( const TQString &, const TQString & ) ) );
+ connect( hexView(), TQ_SIGNAL( fileClosed( const TQString & ) ),
+ this, TQ_SLOT( fileClosed( const TQString & ) ) );
+ connect( editor(), TQ_SIGNAL( errorLoadFile( const TQString & ) ),
+ this, TQ_SLOT( removeRecentFile( const TQString & ) ) );
+ connect( editor(), TQ_SIGNAL( operationChanged( bool ) ),
+ this, TQ_SLOT( operationChanged( bool ) ) );
+ connect( editor(), TQ_SIGNAL( removeRecentFiles() ),
+ this, TQ_SLOT( removeRecentFiles() ) );
+ connect( mManager, TQ_SIGNAL( conversionClosed() ),
+ this, TQ_SLOT(conversionClosed()) );
+ connect( mManager, TQ_SIGNAL( searchBarClosed() ),
+ this, TQ_SLOT(searchBarClosed()) );
//
// Read configuration from file and set the default editor size.
@@ -122,68 +122,68 @@ KHexEdit::~KHexEdit( void )
void KHexEdit::setupActions( void )
{
- KStdAction::openNew( editor(), TQT_SLOT(newFile()), actionCollection() );
- KStdAction::open( editor(), TQT_SLOT(open()), actionCollection() );
- KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()),
+ KStdAction::openNew( editor(), TQ_SLOT(newFile()), actionCollection() );
+ KStdAction::open( editor(), TQ_SLOT(open()), actionCollection() );
+ KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()),
actionCollection());
mAction.insert = new TDEAction( i18n("&Insert..."), CTRL+Key_I,
- editor(), TQT_SLOT(insertFile()), actionCollection(), "insert_file" );
- mAction.openRecent = KStdAction::openRecent( this, TQT_SLOT( slotFileOpenRecent( const KURL& ) ), actionCollection() );
- mAction.save = KStdAction::save( editor(), TQT_SLOT(save()), actionCollection() );
- mAction.saveAs = KStdAction::saveAs( editor(), TQT_SLOT(saveAs()), actionCollection() );
- mAction.revert = KStdAction::revert( editor(), TQT_SLOT(reload()), actionCollection() );
- //mAction.revert = KStdAction::revert( this, TQT_SLOT(resizeTest()), actionCollection() );
-
- mAction.close = KStdAction::close( editor(), TQT_SLOT(close()), actionCollection() );
- mAction.print = KStdAction::print( editor(), TQT_SLOT(print()), actionCollection() );
+ editor(), TQ_SLOT(insertFile()), actionCollection(), "insert_file" );
+ mAction.openRecent = KStdAction::openRecent( this, TQ_SLOT( slotFileOpenRecent( const KURL& ) ), actionCollection() );
+ mAction.save = KStdAction::save( editor(), TQ_SLOT(save()), actionCollection() );
+ mAction.saveAs = KStdAction::saveAs( editor(), TQ_SLOT(saveAs()), actionCollection() );
+ mAction.revert = KStdAction::revert( editor(), TQ_SLOT(reload()), actionCollection() );
+ //mAction.revert = KStdAction::revert( this, TQ_SLOT(resizeTest()), actionCollection() );
+
+ mAction.close = KStdAction::close( editor(), TQ_SLOT(close()), actionCollection() );
+ mAction.print = KStdAction::print( editor(), TQ_SLOT(print()), actionCollection() );
mAction.exportData = new TDEAction( i18n("E&xport..."), 0,
- editor(), TQT_SLOT(exportDialog()), actionCollection(), "export" );
+ editor(), TQ_SLOT(exportDialog()), actionCollection(), "export" );
mAction.cancel = new TDEAction( i18n("&Cancel Operation"),
- "process-stop", 0, editor(), TQT_SLOT(stop()), actionCollection(), "cancel" );
+ "process-stop", 0, editor(), TQ_SLOT(stop()), actionCollection(), "cancel" );
mAction.readOnly = new TDEToggleAction( i18n("&Read Only"),
- 0, editor(), TQT_SLOT(toggleWriteProtection()),actionCollection(), "read_only" );
+ 0, editor(), TQ_SLOT(toggleWriteProtection()),actionCollection(), "read_only" );
mAction.resizeLock = new TDEToggleAction( i18n("&Allow Resize"),
- 0, editor(), TQT_SLOT(toggleResizeLock()),actionCollection(), "resize_lock" );
+ 0, editor(), TQ_SLOT(toggleResizeLock()),actionCollection(), "resize_lock" );
mAction.newWindow = new TDEAction( i18n("N&ew Window"),
- 0, this, TQT_SLOT(newWindow()),actionCollection(), "new_window" );
+ 0, this, TQ_SLOT(newWindow()),actionCollection(), "new_window" );
mAction.closeWindow= new TDEAction( i18n("Close &Window"),
- 0, this, TQT_SLOT(closeWindow()),actionCollection(), "close_window" );
- mAction.quit = KStdAction::quit( this, TQT_SLOT(closeProgram()), actionCollection() );
-
- mAction.undo = KStdAction::undo( editor(), TQT_SLOT(undo()), actionCollection() );
- mAction.redo = KStdAction::redo( editor(), TQT_SLOT(redo()), actionCollection() );
- mAction.cut = KStdAction::cut( editor(), TQT_SLOT(cut()), actionCollection() );
- mAction.copy = KStdAction::copy( editor(), TQT_SLOT(copy()), actionCollection() );
- mAction.paste = KStdAction::paste( editor(), TQT_SLOT(paste()), actionCollection() );
- mAction.selectAll = KStdAction::selectAll( editor(), TQT_SLOT(selectAll()),actionCollection() );
- mAction.unselect = KStdAction::deselect( editor(), TQT_SLOT(unselect()), actionCollection());
- mAction.find = KStdAction::find( editor(), TQT_SLOT(find()), actionCollection() );
- mAction.findNext = KStdAction::findNext( editor(), TQT_SLOT(findNext()), actionCollection() );
- mAction.findPrev = KStdAction::findPrev( editor(),TQT_SLOT(findPrevious()),actionCollection() );
- mAction.replace = KStdAction::replace( editor(), TQT_SLOT(replace()), actionCollection() );
+ 0, this, TQ_SLOT(closeWindow()),actionCollection(), "close_window" );
+ mAction.quit = KStdAction::quit( this, TQ_SLOT(closeProgram()), actionCollection() );
+
+ mAction.undo = KStdAction::undo( editor(), TQ_SLOT(undo()), actionCollection() );
+ mAction.redo = KStdAction::redo( editor(), TQ_SLOT(redo()), actionCollection() );
+ mAction.cut = KStdAction::cut( editor(), TQ_SLOT(cut()), actionCollection() );
+ mAction.copy = KStdAction::copy( editor(), TQ_SLOT(copy()), actionCollection() );
+ mAction.paste = KStdAction::paste( editor(), TQ_SLOT(paste()), actionCollection() );
+ mAction.selectAll = KStdAction::selectAll( editor(), TQ_SLOT(selectAll()),actionCollection() );
+ mAction.unselect = KStdAction::deselect( editor(), TQ_SLOT(unselect()), actionCollection());
+ mAction.find = KStdAction::find( editor(), TQ_SLOT(find()), actionCollection() );
+ mAction.findNext = KStdAction::findNext( editor(), TQ_SLOT(findNext()), actionCollection() );
+ mAction.findPrev = KStdAction::findPrev( editor(),TQ_SLOT(findPrevious()),actionCollection() );
+ mAction.replace = KStdAction::replace( editor(), TQ_SLOT(replace()), actionCollection() );
mAction.gotoOffset = new TDEAction( i18n("&Goto Offset..."), CTRL+Key_G,
- editor(), TQT_SLOT(gotoOffset()),actionCollection(), "goto_offset" );
+ editor(), TQ_SLOT(gotoOffset()),actionCollection(), "goto_offset" );
mAction.insertPattern = new TDEAction( i18n("&Insert Pattern..."), CTRL+Key_Insert,
- editor(), TQT_SLOT(insertPattern()), actionCollection(), "insert_pattern" );
+ editor(), TQ_SLOT(insertPattern()), actionCollection(), "insert_pattern" );
mAction.copyAsText = new TDEAction( i18n("Copy as &Text"), 0,
- editor(), TQT_SLOT(copyText()), actionCollection(), "copy_as_text" );
+ editor(), TQ_SLOT(copyText()), actionCollection(), "copy_as_text" );
mAction.pasteToNewFile = new TDEAction( i18n("Paste into New &File"), 0,
- editor(), TQT_SLOT(pasteNewFile()), actionCollection(), "paste_into_new_file" );
+ editor(), TQ_SLOT(pasteNewFile()), actionCollection(), "paste_into_new_file" );
mAction.pasteToNewWindow = new TDEAction( i18n("Paste into New &Window"), 0,
- this, TQT_SLOT(pasteNewWindow()), actionCollection(), "paste_into_new_window" );
+ this, TQ_SLOT(pasteNewWindow()), actionCollection(), "paste_into_new_window" );
mAction.hexadecimal = new TDERadioAction( i18n("&Hexadecimal"),
- 0, this, TQT_SLOT(setDisplayMode()), actionCollection(), "mode_hex" );
+ 0, this, TQ_SLOT(setDisplayMode()), actionCollection(), "mode_hex" );
mAction.decimal = new TDERadioAction( i18n("&Decimal"),
- 0, this, TQT_SLOT(setDisplayMode()), actionCollection(), "mode_dec" );
+ 0, this, TQ_SLOT(setDisplayMode()), actionCollection(), "mode_dec" );
mAction.octal = new TDERadioAction( i18n("&Octal"),
- 0, this, TQT_SLOT(setDisplayMode()), actionCollection(), "mode_oct" );
+ 0, this, TQ_SLOT(setDisplayMode()), actionCollection(), "mode_oct" );
mAction.binary = new TDERadioAction( i18n("&Binary"),
- 0, this, TQT_SLOT(setDisplayMode()), actionCollection(), "mode_bin" );
+ 0, this, TQ_SLOT(setDisplayMode()), actionCollection(), "mode_bin" );
mAction.textOnly = new TDERadioAction( i18n("&Text"),
- 0, this, TQT_SLOT(setDisplayMode()), actionCollection(), "mode_text" );
+ 0, this, TQ_SLOT(setDisplayMode()), actionCollection(), "mode_text" );
mAction.hexadecimal->setExclusiveGroup( "displayMode" );
mAction.decimal->setExclusiveGroup( "displayMode" );
mAction.octal->setExclusiveGroup( "displayMode" );
@@ -191,104 +191,104 @@ actionCollection());
mAction.textOnly->setExclusiveGroup( "displayMode" );
mAction.showOffsetColumn = new TDEToggleAction( i18n("Show O&ffset Column"),
- 0, editor(), TQT_SLOT(toggleOffsetColumnVisibility()),actionCollection(), "show_offset_column" );
+ 0, editor(), TQ_SLOT(toggleOffsetColumnVisibility()),actionCollection(), "show_offset_column" );
mAction.showTextColumn = new TDEToggleAction( i18n("Show Te&xt Field"),
- 0, editor(), TQT_SLOT(toggleTextColumnVisibility()),actionCollection(), "show_text_field" );
+ 0, editor(), TQ_SLOT(toggleTextColumnVisibility()),actionCollection(), "show_text_field" );
mAction.offsetAsDecimal = new TDEToggleAction( i18n("Off&set as Decimal"),
- 0, editor(), TQT_SLOT(toggleOffsetAsDecimal()),actionCollection(), "offset_as_decimal" );
+ 0, editor(), TQ_SLOT(toggleOffsetAsDecimal()),actionCollection(), "offset_as_decimal" );
mAction.dataUppercase = new TDEToggleAction( i18n("&Upper Case (Data)"),
- 0, editor(), TQT_SLOT(toggleDataUppercase()),actionCollection(), "upper_case_data" );
+ 0, editor(), TQ_SLOT(toggleDataUppercase()),actionCollection(), "upper_case_data" );
mAction.offsetUppercase = new TDEToggleAction( i18n("Upper &Case (Offset)"),
- 0, editor(), TQT_SLOT(toggleOffsetUppercase()),actionCollection(), "upper_case_offset" );
+ 0, editor(), TQ_SLOT(toggleOffsetUppercase()),actionCollection(), "upper_case_offset" );
mAction.defaultEncoding = new TDERadioAction( i18n("&Default encoding", "&Default"),
- 0, this, TQT_SLOT( setEncoding()), actionCollection(), "enc_default" );
+ 0, this, TQ_SLOT( setEncoding()), actionCollection(), "enc_default" );
mAction.usAsciiEncoding = new TDERadioAction( i18n("US-&ASCII (7 bit)"),
- 0, this, TQT_SLOT( setEncoding()), actionCollection(), "enc_ascii");
+ 0, this, TQ_SLOT( setEncoding()), actionCollection(), "enc_ascii");
mAction.ebcdicEncoding = new TDERadioAction( i18n("&EBCDIC"),
- 0, this, TQT_SLOT( setEncoding()), actionCollection(), "enc_ebcdic" );
+ 0, this, TQ_SLOT( setEncoding()), actionCollection(), "enc_ebcdic" );
// mAction.customEncoding = new TDEAction( i18n("&Custom..."),
-// 0, editor(), TQT_SLOT( encoding()), actionCollection(), "enc_custom" );
+// 0, editor(), TQ_SLOT( encoding()), actionCollection(), "enc_custom" );
mAction.defaultEncoding->setExclusiveGroup( "encodingMode" );
mAction.usAsciiEncoding->setExclusiveGroup( "encodingMode" );
mAction.ebcdicEncoding->setExclusiveGroup( "encodingMode" );
mAction.strings = new TDEAction( i18n("&Extract Strings..."), 0,
- editor(), TQT_SLOT(strings()), actionCollection(), "extract_strings" );
+ editor(), TQ_SLOT(strings()), actionCollection(), "extract_strings" );
// mAction.recordViewer = new TDEAction( i18n("&Record Viewer"), 0,
-// editor(), TQT_SLOT(recordView()), actionCollection(), "record_viewer" );
+// editor(), TQ_SLOT(recordView()), actionCollection(), "record_viewer" );
mAction.filter = new TDEAction( i18n("&Binary Filter..."), 0,
- editor(), TQT_SLOT(filter()), actionCollection(), "binary_filter" );
+ editor(), TQ_SLOT(filter()), actionCollection(), "binary_filter" );
mAction.characterTable = new TDEAction( i18n("&Character Table"), 0,
- editor(), TQT_SLOT(chart()), actionCollection(), "char_table" );
+ editor(), TQ_SLOT(chart()), actionCollection(), "char_table" );
mAction.converter = new TDEAction( i18n("C&onverter"), 0,
- editor(), TQT_SLOT(converter()), actionCollection(), "converter" );
+ editor(), TQ_SLOT(converter()), actionCollection(), "converter" );
mAction.statistics = new TDEAction( i18n("&Statistics"), 0,
- editor(), TQT_SLOT(statistics()), actionCollection(), "statistics" );
+ editor(), TQ_SLOT(statistics()), actionCollection(), "statistics" );
mAction.addBookmark = KStdAction::addBookmark( editor(),
- TQT_SLOT(addBookmark()), actionCollection() );
+ TQ_SLOT(addBookmark()), actionCollection() );
mAction.replaceBookmark = new TDEAction( i18n("&Replace Bookmark"), CTRL+Key_E,
- editor(), TQT_SLOT(replaceBookmark()), actionCollection(), "replace_bookmark");
+ editor(), TQ_SLOT(replaceBookmark()), actionCollection(), "replace_bookmark");
mAction.removeBookmark = new TDEAction( i18n("R&emove Bookmark"), CTRL+Key_U,
- editor(), TQT_SLOT(removeBookmark()), actionCollection(), "remove_bookmark" );
+ editor(), TQ_SLOT(removeBookmark()), actionCollection(), "remove_bookmark" );
mAction.removeAllBookmark = new TDEAction( i18n("Re&move All"), 0,
- editor(), TQT_SLOT(removeAllBookmark()), actionCollection(), "remove_all_bookmarks" );
+ editor(), TQ_SLOT(removeAllBookmark()), actionCollection(), "remove_all_bookmarks" );
mAction.nextBookmark = new TDEAction( i18n("Goto &Next Bookmark"),
ALT+Key_Down, editor(),
- TQT_SLOT(gotoNextBookmark()), actionCollection(), "next_bookmark" );
+ TQ_SLOT(gotoNextBookmark()), actionCollection(), "next_bookmark" );
mAction.prevBookmark = new TDEAction( i18n("Goto &Previous Bookmark"),
ALT+Key_Up, editor(),
- TQT_SLOT(gotoPrevBookmark()), actionCollection(), "prev_bookmark" );
+ TQ_SLOT(gotoPrevBookmark()), actionCollection(), "prev_bookmark" );
createStandardStatusBarAction();
setStandardToolBarMenuEnabled(true);
mAction.showFullPath = new TDEToggleAction( i18n("Show F&ull Path"),
- 0, this, TQT_SLOT(showFullPath()), actionCollection(), "show_full_path" );
+ 0, this, TQ_SLOT(showFullPath()), actionCollection(), "show_full_path" );
mAction.tabHide = new TDERadioAction( i18n("&Hide"),
- 0, this, TQT_SLOT(showDocumentTabs()), actionCollection(), "doctab_hide" );
+ 0, this, TQ_SLOT(showDocumentTabs()), actionCollection(), "doctab_hide" );
mAction.tabShowAboveEditor = new TDERadioAction( i18n("&Above Editor"),
- 0, this, TQT_SLOT(showDocumentTabs()), actionCollection(), "doctab_above" );
+ 0, this, TQ_SLOT(showDocumentTabs()), actionCollection(), "doctab_above" );
mAction.tabShowBelowEditor = new TDERadioAction( i18n("&Below Editor"),
- 0, this, TQT_SLOT(showDocumentTabs()), actionCollection(), "doctab_below" );
+ 0, this, TQ_SLOT(showDocumentTabs()), actionCollection(), "doctab_below" );
mAction.tabHide->setExclusiveGroup( "editorTab" );
mAction.tabShowAboveEditor->setExclusiveGroup( "editorTab" );
mAction.tabShowBelowEditor->setExclusiveGroup( "editorTab" );
mAction.conversionHide = new TDERadioAction( i18n("&Hide"),
- 0, this, TQT_SLOT(showConversionField()), actionCollection(), "conversion_field_hide");
+ 0, this, TQ_SLOT(showConversionField()), actionCollection(), "conversion_field_hide");
mAction.conversionFloat = new TDERadioAction( i18n("&Floating"),
- 0, this, TQT_SLOT(showConversionField()), actionCollection(), "conversion_field_float");
+ 0, this, TQ_SLOT(showConversionField()), actionCollection(), "conversion_field_float");
mAction.conversionEmbed = new TDERadioAction( i18n("&Embed in Main Window"),
- 0, this, TQT_SLOT(showConversionField()), actionCollection(), "conversion_field_embed");
+ 0, this, TQ_SLOT(showConversionField()), actionCollection(), "conversion_field_embed");
mAction.conversionHide->setExclusiveGroup( "conversionField" );
mAction.conversionFloat->setExclusiveGroup( "conversionField" );
mAction.conversionEmbed->setExclusiveGroup( "conversionField" );
mAction.searchHide = new TDERadioAction( i18n("&Hide"),
- 0, this, TQT_SLOT(showSearchBar()), actionCollection(), "searchbar_hide" );
+ 0, this, TQ_SLOT(showSearchBar()), actionCollection(), "searchbar_hide" );
mAction.searchShowAboveEditor = new TDERadioAction( i18n("&Above Editor"),
- Key_F5, this, TQT_SLOT(showSearchBar()), actionCollection(), "searchbar_above" );
+ Key_F5, this, TQ_SLOT(showSearchBar()), actionCollection(), "searchbar_above" );
mAction.searchShowBelowEditor = new TDERadioAction( i18n("&Below Editor"),
- Key_F6, this, TQT_SLOT(showSearchBar()), actionCollection(), "searchbar_below" );
+ Key_F6, this, TQ_SLOT(showSearchBar()), actionCollection(), "searchbar_below" );
mAction.searchHide->setExclusiveGroup( "searchBar" );
mAction.searchShowAboveEditor->setExclusiveGroup( "searchBar" );
mAction.searchShowBelowEditor->setExclusiveGroup( "searchBar" );
- KStdAction::saveOptions(this, TQT_SLOT(writeConfiguration()), actionCollection());
- KStdAction::preferences(editor() ,TQT_SLOT(options()),actionCollection() );
+ KStdAction::saveOptions(this, TQ_SLOT(writeConfiguration()), actionCollection());
+ KStdAction::preferences(editor() ,TQ_SLOT(options()),actionCollection() );
// mAction.favorites = new TDEAction( i18n("P&rofiles..."), 0,
-// editor(), TQT_SLOT(favorites()), actionCollection(), "favorites" );
+// editor(), TQ_SLOT(favorites()), actionCollection(), "favorites" );
- KStdAction::help( this, TQT_SLOT(appHelpActivated()), actionCollection() );
+ KStdAction::help( this, TQ_SLOT(appHelpActivated()), actionCollection() );
mDragLabel = new CDragLabel(this);
mDragLabel->setPixmap( UserIcon( "hexdrag" ) );
mDragLabel->setDragMask( UserIcon( "hexmask" ) );
mDragLabel->setEnabled( false ); // Enabled once we open a document
TQToolTip::add( mDragLabel, i18n("Drag document") );
- (void) new KWidgetAction(mDragLabel, i18n("Drag Document"), 0, editor(), TQT_SLOT(options()), actionCollection(), "drag_document");
+ (void) new KWidgetAction(mDragLabel, i18n("Drag Document"), 0, editor(), TQ_SLOT(options()), actionCollection(), "drag_document");
createGUI("khexeditui.rc", false);
@@ -296,15 +296,15 @@ actionCollection());
hexView()->setPopupMenu( popup );
int id = 100;
- toolBar(0)->insertButton( MainBarIcon("system-lock-screen"), id, TQT_SIGNAL(clicked()),
- editor(), TQT_SLOT(toggleWriteProtection()), true,
+ toolBar(0)->insertButton( MainBarIcon("system-lock-screen"), id, TQ_SIGNAL(clicked()),
+ editor(), TQ_SLOT(toggleWriteProtection()), true,
i18n("Toggle write protection") );
toolBar(0)->alignItemRight( id );
mWriteProtectButton = toolBar(0)->getButton(id);
TQPopupMenu *documentMenu = (TQPopupMenu *)factory()->container("documents", this);
hexView()->setDocumentMenu(documentMenu);
- connect(documentMenu, TQT_SIGNAL(activated(int)), TQT_SLOT(documentMenuCB(int)));
+ connect(documentMenu, TQ_SIGNAL(activated(int)), TQ_SLOT(documentMenuCB(int)));
}
@@ -313,15 +313,15 @@ void KHexEdit::setupStatusBar( void )
{
CStatusBarProgress *progess = new CStatusBarProgress( statusBar() );
statusBar()->addWidget( progess, 10 );
- connect( progess, TQT_SIGNAL(pressed()), editor(), TQT_SLOT(stop()) );
- connect( editor(), TQT_SIGNAL( setProgress( int ) ),
- progess, TQT_SLOT( setValue( int ) ) );
- connect( editor(), TQT_SIGNAL( setProgress( int, int ) ),
- progess, TQT_SLOT( setValue( int, int ) ) );
- connect( editor(), TQT_SIGNAL( enableProgressText( bool ) ),
- progess, TQT_SLOT( setTextEnabled( bool ) ) );
- connect( editor(), TQT_SIGNAL( setProgressText( const TQString & ) ),
- progess, TQT_SLOT( setText( const TQString & ) ) );
+ connect( progess, TQ_SIGNAL(pressed()), editor(), TQ_SLOT(stop()) );
+ connect( editor(), TQ_SIGNAL( setProgress( int ) ),
+ progess, TQ_SLOT( setValue( int ) ) );
+ connect( editor(), TQ_SIGNAL( setProgress( int, int ) ),
+ progess, TQ_SLOT( setValue( int, int ) ) );
+ connect( editor(), TQ_SIGNAL( enableProgressText( bool ) ),
+ progess, TQ_SLOT( setTextEnabled( bool ) ) );
+ connect( editor(), TQ_SIGNAL( setProgressText( const TQString & ) ),
+ progess, TQ_SLOT( setText( const TQString & ) ) );
statusBar()->insertFixedItem( i18n("Selection: 0000:0000 0000:0000"),
status_Selection );
@@ -344,7 +344,7 @@ void KHexEdit::setupStatusBar( void )
statusBar()->changeItem( i18n("Size:"), status_Size );
statusBar()->changeItem( "", status_Modified );
statusBar()->changeItem( "", status_Selection );
- connect( statusBar(),TQT_SIGNAL(pressed(int)),this,TQT_SLOT(statusBarPressed(int)) );
+ connect( statusBar(),TQ_SIGNAL(pressed(int)),this,TQ_SLOT(statusBarPressed(int)) );
}
@@ -408,7 +408,7 @@ void KHexEdit::initialize( bool openFiles )
// is displayed, then the editor will not be visible until the error
// is confirmed and the (modal) dialog is closed.
//
- TQTimer::singleShot( 100, this, TQT_SLOT(delayedStartupOpen()) );
+ TQTimer::singleShot( 100, this, TQ_SLOT(delayedStartupOpen()) );
}
@@ -920,7 +920,7 @@ void KHexEdit::bookmarkChanged( TQPtrList<SCursorOffset> &list )
{
offset.sprintf("%04X:%04X", p->offset>>16, p->offset&0x0000FFFF );
text = i18n("Offset: %1").arg(offset);
- TDEAction *action = new TDEAction(text, 0, mAction.bookmarkMapper, TQT_SLOT(map()), this, text.latin1());
+ TDEAction *action = new TDEAction(text, 0, mAction.bookmarkMapper, TQ_SLOT(map()), this, text.latin1());
int key = acceleratorNumKey( i );
if( key > 0 )
{