remove ugly hacks around kate part probs

svn path=/trunk/kdebase/kate/app/kwritemain.cpp; revision=269803
This commit is contained in:
Christoph Cullmann 2003-11-26 22:57:00 +00:00
parent 1ca6b94fbf
commit 7c8cd7261c
2 changed files with 1 additions and 22 deletions

View file

@ -140,14 +140,6 @@ KWrite::~KWrite()
void KWrite::setupActions()
{
KAction *a;
if (Kate::document (view()->document()))
{
m_view->actionCollection()->remove (m_view->actionCollection()->action( "set_confdlg" ));
KStdAction::preferences(this, SLOT(slotConfigure()), actionCollection(), "settings_configure");
}
KStdAction::close( this, SLOT(slotFlush()), actionCollection(), "file_close" )->setWhatsThis(i18n("Use this to close the current document"));
// setup File menu
@ -159,7 +151,7 @@ void KWrite::setupActions()
actionCollection());
m_recentFiles->setWhatsThis(i18n("This lists files which you have opened recently, and allows you to easily open them again."));
a=new KAction(i18n("&New Window"), "window_new", 0, this, SLOT(newView()),
KAction *a=new KAction(i18n("&New Window"), "window_new", 0, this, SLOT(newView()),
actionCollection(), "view_new_view");
a->setWhatsThis(i18n("Create another view containing the current document"));
@ -190,18 +182,6 @@ void KWrite::setupStatusBar()
statusBar()->insertItem("", KWRITE_ID_GEN);
}
// if we use KatePart, sync config after configDialog is closed
void KWrite::slotConfigure()
{
Kate::Document *doc = Kate::document (view()->document());
if (doc)
{
doc->configDialog ();
writeConfig ();
}
}
// load on url
void KWrite::loadURL(const KURL &url)
{

View file

@ -66,7 +66,6 @@ class KWrite : public KParts::MainWindow
void editKeys();
void editToolbars();
void changeEditor();
void slotConfigure ();
public slots:
void printNow();