kita_LDADD = ./image/libkitaimage.la ./prefs/libkitapref.la ./libkita/libkita.la ./kitaui/libkitaui.la ./write/libkitawrite.la ./thread/libkitathread.la ./board/libkitaboard.la ./bbs/libkitabbs.la $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_KDEUI)
# which sources should be compiled for kita
-kita_SOURCES = main.cpp mainwindow.cpp kitaiface.skel favoriteswindowbase.ui favoriteswindow.cpp
+kita_SOURCES = main.cpp mainwindow.cpp kitaiface.skel favoriteswindowbase.ui \
+ favoriteswindow.cpp
# these are the headers for your project
noinst_HEADERS = mainwindow.h favoriteswindow.h
INCLUDES = $(all_includes) -I..
METASOURCES = AUTO
-noinst_HEADERS = writedialogbase.ui.h writetabwidget.h writeview.h
+noinst_HEADERS = writedialogbase.ui.h writetabwidget.h writeview.h newthreadwriteview.h
lib_LTLIBRARIES = libkitawrite.la
libkitawrite_la_LDFLAGS = $(all_libraries)
-libkitawrite_la_SOURCES = writetabwidget.cpp writeview.cpp writedialogbase.ui
+libkitawrite_la_SOURCES = writetabwidget.cpp writeview.cpp writedialogbase.ui newthreadwriteview.cpp
# this is where the XML-GUI resource file goes
rcdir = $(kde_datadir)/kita
rc_DATA = writetabwidgetui.rc
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2004 by Kita Developers *
+ * ikemo@users.sourceforge.jp *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+#include "newthreadwriteview.h"
+
+KitaNewThreadWriteView::KitaNewThreadWriteView(QWidget* parent, const char* name, const KURL& url, int mode, const QString& newThreadName): KitaWriteView(parent, name, url, mode, newThreadName)
+{
+}
+
+
+KitaNewThreadWriteView::~KitaNewThreadWriteView()
+{
+}
+
+
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2004 by Kita Developers *
+ * ikemo@users.sourceforge.jp *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+#ifndef NEWTHREADWRITEVIEW_H
+#define NEWTHREADWRITEVIEW_H
+
+#include "writeview.h"
+
+/**
+ @author Hideki Ikemoto <ikemo@wakaba.jp>
+*/
+class KitaNewThreadWriteView : public KitaWriteView
+{
+public:
+ KitaNewThreadWriteView(QWidget* parent, const char* name, const KURL& url, int mode, const QString& newThreadName);
+
+ ~KitaNewThreadWriteView();
+
+};
+
+#endif
#include "libkita/boardmanager.h"
#include "writetabwidget.h"
#include "writeview.h"
+#include "newthreadwriteview.h"
#include <kdebug.h>
#include <kstdaccel.h>
return ;
}
+ // TODO: refactoring.
/* create new write view & add it to tab */
QString threadName;
- KitaWriteView* new_dlg;
if ( mode == WRITEMODE_NORMAL ) {
-
/* write res */
+ KitaWriteView* new_dlg;
threadName = Kita::DatManager::threadName( url );
new_dlg = new KitaWriteView( this, "write dialog", url, WRITEMODE_NORMAL );
+ new_dlg->setMessage( resStr );
+ connect( new_dlg, SIGNAL( closeCurrentTab() ), SLOT( slotCloseCurrentTab() ) );
+ addTab( new_dlg, threadName );
+ showPage( new_dlg );
} else {
/* create new thread */
+ KitaNewThreadWriteView* new_dlg;
threadName = i18n( "New Thread" );
- new_dlg = new KitaWriteView( this, "write dialog", url, WRITEMODE_NEWTHREAD, subject );
+ new_dlg = new KitaNewThreadWriteView( this, "write dialog", url, WRITEMODE_NEWTHREAD, subject );
+ new_dlg->setMessage( resStr );
+ connect( new_dlg, SIGNAL( closeCurrentTab() ), SLOT( slotCloseCurrentTab() ) );
+ addTab( new_dlg, threadName );
+ showPage( new_dlg );
}
- new_dlg->setMessage( resStr );
- connect( new_dlg, SIGNAL( closeCurrentTab() ), SLOT( slotCloseCurrentTab() ) );
- addTab( new_dlg, threadName );
- showPage( new_dlg );
}