From b29df06efe5a0e7e140aae942518973d60bf7e58 Mon Sep 17 00:00:00 2001 From: ikemo Date: Thu, 1 Jan 2004 11:04:30 +0000 Subject: [PATCH] remove unused code git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@765 56b19765-1e22-0410-a548-a0f45d66c51a --- kita/src/kita.cpp | 65 +------------------------------------------------------ kita/src/kita.h | 4 ---- 2 files changed, 1 insertion(+), 68 deletions(-) diff --git a/kita/src/kita.cpp b/kita/src/kita.cpp index 8c4bfc7..36dabc2 100644 --- a/kita/src/kita.cpp +++ b/kita/src/kita.cpp @@ -21,9 +21,6 @@ #include "libkita/favoritethreads.h" #include -#include -#include -#include #include #include @@ -39,14 +36,11 @@ #include #include #include -#include #include #include #include #include - #include - #include #include #include @@ -209,18 +203,12 @@ void KitaMainWindow::setupActions() i18n( "URL Line" ), 0, this, - SLOT( slotUrlLine() - ) /* dummy */, + SLOT( slotUrlLine() ) /* dummy */, actionCollection(), "url_line_action" ); KStdAction::keyBindings( this, SLOT( optionsConfigureKeys() ), actionCollection() ); KStdAction::configureToolbars( this, SLOT( optionsConfigureToolbars() ), actionCollection() ); KStdAction::preferences( this, SLOT( optionsPreferences() ), actionCollection() ); - // this doesn't do anything useful. it's just here to illustrate - // how to insert a custom menu and menu item - /* KAction *custom = new KAction(i18n("Cus&tom Menuitem"), 0, - this, SLOT(optionsPreferences()), - actionCollection(), "custom_action");*/ new KAction( i18n( "Load BoardList" ), 0, @@ -342,57 +330,6 @@ void KitaMainWindow::fileNew() ( new KitaMainWindow ) ->show(); } -void KitaMainWindow::fileOpen() -{ - // this slot is called whenever the File->Open menu is selected, - // the Open shortcut is pressed (usually CTRL+O) or the Open toolbar - // button is clicked - // KURL url = KURLRequesterDlg::getURL(QString::null, this, i18n("Open Location") ); - // if (!url.isEmpty()) - // m_view->openURL(url); -} - -void KitaMainWindow::fileSave() -{ - // this slot is called whenever the File->Save menu is selected, - // the Save shortcut is pressed (usually CTRL+S) or the Save toolbar - // button is clicked - - // save the current file -} - -void KitaMainWindow::fileSaveAs() -{ - // this slot is called whenever the File->Save As menu is selected, - KURL file_url = KFileDialog::getSaveURL(); - if ( !file_url.isEmpty() && !file_url.isMalformed() ) { - // save your info, here - } -} - -void KitaMainWindow::filePrint() -{ - // this slot is called whenever the File->Print menu is selected, - // the Print shortcut is pressed (usually CTRL+P) or the Print toolbar - // button is clicked - /* if (!m_printer) m_printer = new KPrinter; - if (m_printer->setup(this)) - { - // setup the printer. with Qt, you always "print" to a - // QPainter.. whether the output medium is a pixmap, a screen, - // or paper - QPainter p; - p.begin(m_printer); - - // we let our view do the actual printing - QPaintDeviceMetrics metrics(m_printer); - m_view->print(&p, metrics.height(), metrics.width()); - - // and send the result to the printer - p.end(); - }*/ -} - void KitaMainWindow::optionsShowToolbar() { // this is all very cut and paste code for showing/hiding the diff --git a/kita/src/kita.h b/kita/src/kita.h index 10d21e5..efc6b61 100644 --- a/kita/src/kita.h +++ b/kita/src/kita.h @@ -87,10 +87,6 @@ protected: private slots: void fileNew(); - void fileOpen(); - void fileSave(); - void fileSaveAs(); - void filePrint(); void optionsShowToolbar(); void optionsShowStatusbar(); void optionsConfigureKeys(); -- 2.11.0