diff options
Diffstat (limited to 'karbon/karbon_view.cc')
-rw-r--r-- | karbon/karbon_view.cc | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/karbon/karbon_view.cc b/karbon/karbon_view.cc index 864f695d..42d6f51b 100644 --- a/karbon/karbon_view.cc +++ b/karbon/karbon_view.cc @@ -229,7 +229,7 @@ KarbonView::~KarbonView() static TQt::Dock stringToDock( const TQString& attrPosition ) { - KToolBar::Dock dock = KToolBar::DockTop; + TDEToolBar::Dock dock = TDEToolBar::DockTop; if ( !attrPosition.isEmpty() ) { if ( attrPosition == "top" ) dock = TQt::DockTop; @@ -939,11 +939,11 @@ void KarbonView::initActions() { // view -----> - m_viewAction = new KSelectAction( + m_viewAction = new TDESelectAction( i18n( "View &Mode" ), 0, TQT_TQOBJECT(this), TQT_SLOT( viewModeChanged() ), actionCollection(), "view_mode" ); - m_zoomAction = new KSelectAction( + m_zoomAction = new TDESelectAction( i18n( "&Zoom" ), "viewmag", 0, TQT_TQOBJECT(this), TQT_SLOT( zoomChanged() ), actionCollection(), "view_zoom" ); @@ -978,7 +978,7 @@ KarbonView::initActions() KStdAction::zoomIn( TQT_TQOBJECT(this), TQT_SLOT( viewZoomIn() ), actionCollection(), "view_zoom_in" ); KStdAction::zoomOut( TQT_TQOBJECT(this), TQT_SLOT( viewZoomOut() ), actionCollection(), "view_zoom_out" ); - m_showPageMargins = new KToggleAction( i18n("Show Page Margins"), "view_margins", 0, actionCollection(), "view_show_margins" ); + m_showPageMargins = new TDEToggleAction( i18n("Show Page Margins"), "view_margins", 0, actionCollection(), "view_show_margins" ); connect( m_showPageMargins, TQT_SIGNAL(toggled(bool)), TQT_SLOT(togglePageMargins(bool))); #if KDE_IS_VERSION(3,2,90) m_showPageMargins->setCheckedState(i18n("Hide Page Margins")); @@ -998,114 +998,114 @@ KarbonView::initActions() KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( editSelectAll() ), actionCollection(), "edit_select_all" ); KStdAction::deselect( TQT_TQOBJECT(this), TQT_SLOT( editDeselectAll() ), actionCollection(), "edit_deselect_all" ); - new KAction( + new TDEAction( i18n( "&Import Graphic..." ), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( fileImportGraphic() ), actionCollection(), "file_import" ); - m_deleteSelectionAction = new KAction( + m_deleteSelectionAction = new TDEAction( i18n( "D&elete" ), "editdelete", TQKeySequence( "Del" ), TQT_TQOBJECT(this), TQT_SLOT( editDeleteSelection() ), actionCollection(), "edit_delete" ); - new KAction( + new TDEAction( i18n( "&History" ), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( editPurgeHistory() ), actionCollection(), "edit_purge_history" ); // edit <----- // object -----> - new KAction( + new TDEAction( i18n( "&Duplicate" ), "duplicate", TQKeySequence( "Ctrl+D" ), TQT_TQOBJECT(this), TQT_SLOT( selectionDuplicate() ), actionCollection(), "object_duplicate" ); - new KAction( + new TDEAction( i18n( "Bring to &Front" ), "bring_forward", TQKeySequence( "Ctrl+Shift+]" ), TQT_TQOBJECT(this), TQT_SLOT( selectionBringToFront() ), actionCollection(), "object_move_totop" ); - new KAction( + new TDEAction( i18n( "&Raise" ), "raise", TQKeySequence( "Ctrl+]" ), TQT_TQOBJECT(this), TQT_SLOT( selectionMoveUp() ), actionCollection(), "object_move_up" ); - new KAction( + new TDEAction( i18n( "&Lower" ), "lower", TQKeySequence( "Ctrl+[" ), TQT_TQOBJECT(this), TQT_SLOT( selectionMoveDown() ), actionCollection(), "object_move_down" ); - new KAction( + new TDEAction( i18n( "Send to &Back" ), "send_backward", TQKeySequence( "Ctrl+Shift+[" ), TQT_TQOBJECT(this), TQT_SLOT( selectionSendToBack() ), actionCollection(), "object_move_tobottom" ); - new KAction( + new TDEAction( i18n( "Align Left" ), "aoleft", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionAlignHorizontalLeft() ), actionCollection(), "object_align_horizontal_left" ); - new KAction( + new TDEAction( i18n( "Align Center Qt::Horizontal)" ), "aocenterh", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionAlignHorizontalCenter() ), actionCollection(), "object_align_horizontal_center" ); - new KAction( + new TDEAction( i18n( "Align Right" ), "aoright", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionAlignHorizontalRight() ), actionCollection(), "object_align_horizontal_right" ); - new KAction( + new TDEAction( i18n( "Align Top" ), "aotop", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionAlignVerticalTop() ), actionCollection(), "object_align_vertical_top" ); - new KAction( + new TDEAction( i18n( "Align Middle Qt::Vertical)" ), "aocenterv", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionAlignVerticalCenter() ), actionCollection(), "object_align_vertical_center" ); - new KAction( + new TDEAction( i18n( "Align Bottom" ), "aobottom", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionAlignVerticalBottom() ), actionCollection(), "object_align_vertical_bottom" ); - new KAction( + new TDEAction( i18n( "Distribute Center Qt::Horizontal)" ), "", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionDistributeHorizontalCenter() ), actionCollection(), "object_distribute_horizontal_center" ); - new KAction( + new TDEAction( i18n( "Distribute Gaps Qt::Horizontal)" ), "", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionDistributeHorizontalGap() ), actionCollection(), "object_distribute_horizontal_gap" ); - new KAction( + new TDEAction( i18n( "Distribute Left Borders" ), "", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionDistributeHorizontalLeft() ), actionCollection(), "object_distribute_horizontal_left" ); - new KAction( + new TDEAction( i18n( "Distribute Right Borders" ), "", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionDistributeHorizontalRight() ), actionCollection(), "object_distribute_horizontal_right" ); - new KAction( + new TDEAction( i18n( "Distribute Center Qt::Vertical)" ), "", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionDistributeVerticalCenter() ), actionCollection(), "object_distribute_vertical_center" ); - new KAction( + new TDEAction( i18n( "Distribute Gaps Qt::Vertical)" ), "", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionDistributeVerticalGap() ), actionCollection(), "object_distribute_vertical_gap" ); - new KAction( + new TDEAction( i18n( "Distribute Bottom Borders" ), "", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionDistributeVerticalBottom() ), actionCollection(), "object_distribute_vertical_bottom" ); - new KAction( + new TDEAction( i18n( "Distribute Top Borders" ), "", 0, TQT_TQOBJECT(this), TQT_SLOT( selectionDistributeVerticalTop() ), actionCollection(), "object_distribute_vertical_top" ); - m_showRulerAction = new KToggleAction( i18n( "Show Rulers" ), 0, TQT_TQOBJECT(this), TQT_SLOT( showRuler() ), actionCollection(), "view_show_ruler" ); + m_showRulerAction = new TDEToggleAction( i18n( "Show Rulers" ), 0, TQT_TQOBJECT(this), TQT_SLOT( showRuler() ), actionCollection(), "view_show_ruler" ); #if KDE_IS_VERSION(3,2,90) m_showRulerAction->setCheckedState(i18n("Hide Rulers")); #endif m_showRulerAction->setToolTip( i18n( "Shows or hides rulers." ) ); m_showRulerAction->setChecked( false ); - m_showGridAction = new KToggleAction( i18n( "Show Grid" ), "view_grid", TQT_TQOBJECT(this), TQT_SLOT( showGrid() ), actionCollection(), "view_show_grid" ); + m_showGridAction = new TDEToggleAction( i18n( "Show Grid" ), "view_grid", TQT_TQOBJECT(this), TQT_SLOT( showGrid() ), actionCollection(), "view_show_grid" ); #if KDE_IS_VERSION(3,2,90) m_showGridAction->setCheckedState(i18n("Hide Grid")); #endif m_showGridAction->setToolTip( i18n( "Shows or hides grid." ) ); //m_showGridAction->setChecked( true ); - m_snapGridAction = new KToggleAction( i18n( "Snap to Grid" ), 0, TQT_TQOBJECT(this), TQT_SLOT( snapToGrid() ), actionCollection(), "view_snap_to_grid" ); + m_snapGridAction = new TDEToggleAction( i18n( "Snap to Grid" ), 0, TQT_TQOBJECT(this), TQT_SLOT( snapToGrid() ), actionCollection(), "view_snap_to_grid" ); m_snapGridAction->setToolTip( i18n( "Snaps to grid." ) ); //m_snapGridAction->setChecked( true ); - m_groupObjects = new KAction( + m_groupObjects = new TDEAction( i18n( "&Group Objects" ), "group", TQKeySequence( "Ctrl+G" ), TQT_TQOBJECT(this), TQT_SLOT( groupSelection() ), actionCollection(), "selection_group" ); - m_ungroupObjects = new KAction( + m_ungroupObjects = new TDEAction( i18n( "&Ungroup Objects" ), "ungroup", TQKeySequence( "Ctrl+Shift+G" ), TQT_TQOBJECT(this), TQT_SLOT( ungroupSelection() ), actionCollection(), "selection_ungroup" ); - m_closePath = new KAction( + m_closePath = new TDEAction( i18n( "&Close Path" ), TQKeySequence( "Ctrl+U" ), TQT_TQOBJECT(this), TQT_SLOT( closePath() ), actionCollection(), "close_path" ); // object <----- @@ -1128,11 +1128,11 @@ KarbonView::initActions() m_setLineWidth->insertItem( 20.0 ); connect( m_setLineWidth, TQT_SIGNAL( valueChanged( double ) ), TQT_TQOBJECT(this), TQT_SLOT( setLineWidth() ) ); - m_configureAction = new KAction( + m_configureAction = new TDEAction( i18n( "Configure Karbon..." ), "configure", 0, TQT_TQOBJECT(this), TQT_SLOT( configure() ), actionCollection(), "configure" ); - new KAction( i18n( "Page &Layout..." ), 0, TQT_TQOBJECT(this), + new TDEAction( i18n( "Page &Layout..." ), 0, TQT_TQOBJECT(this), TQT_SLOT( pageLayout() ), actionCollection(), "page_layout" ); m_contextHelpAction = new KoContextHelpAction( actionCollection(), this ); } @@ -1230,13 +1230,13 @@ KarbonView::showRuler() bool KarbonView::showPageMargins() { - return ((KToggleAction*)actionCollection()->action("view_show_margins"))->isChecked(); + return ((TDEToggleAction*)actionCollection()->action("view_show_margins"))->isChecked(); } void KarbonView::togglePageMargins(bool b) { - ((KToggleAction*)actionCollection()->action("view_show_margins"))->setChecked(b); + ((TDEToggleAction*)actionCollection()->action("view_show_margins"))->setChecked(b); m_canvas->repaintAll(); } @@ -1287,7 +1287,7 @@ KarbonView::snapToGrid() void KarbonView::showSelectionPopupMenu( const TQPoint &pos ) { - TQPtrList<KAction> actionList; + TQPtrList<TDEAction> actionList; if( m_groupObjects->isEnabled() ) actionList.append( m_groupObjects ); else if( m_ungroupObjects->isEnabled() ) |