From f0c26f7088090b433155385f6b32ff9a6df88735 Mon Sep 17 00:00:00 2001 From: ikemo Date: Wed, 31 Dec 2003 11:09:09 +0000 Subject: [PATCH] new class git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@752 56b19765-1e22-0410-a548-a0f45d66c51a --- kita/src/threadlistview.cpp | 47 +++++++++++++++++++++++++++++++++++++++++++++ kita/src/threadlistview.h | 45 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 kita/src/threadlistview.cpp create mode 100644 kita/src/threadlistview.h diff --git a/kita/src/threadlistview.cpp b/kita/src/threadlistview.cpp new file mode 100644 index 0000000..aa10564 --- /dev/null +++ b/kita/src/threadlistview.cpp @@ -0,0 +1,47 @@ +/*************************************************************************** + * Copyright (C) 2003 by Hideki Ikemoto * + * ikemo@wakaba.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 "threadlistview.h" + +#include +#include +#include + +#include + +namespace Kita { + +ThreadListView::ThreadListView(QWidget *parent, const char *name) + : Kita::ThreadListViewBase(parent, name) +{ + SearchButton->setPixmap( SmallIcon( "find" ) ); + HideButton->setPixmap( SmallIcon( "filter" ) ); + + subjectList->addColumn( "" ); + subjectList->addColumn( i18n( "No." ) ); + subjectList->addColumn( "" ); + subjectList->addColumn( i18n( "Title" ) ); + subjectList->addColumn( i18n( "ResNum" ) ); + subjectList->addColumn( i18n( "ReadNum" ) ); + subjectList->addColumn( i18n( "Unread" ) ); + subjectList->addColumn( i18n( "Board" ) ); + subjectList->addColumn( i18n( "Dat" ) ); + + subjectList->setColumnWidth( Row_Subject, 400 ); + subjectList->setColumnWidthMode( Row_Subject, QListView::Manual ); +} + + +ThreadListView::~ThreadListView() +{ +} + + +}; +#include "threadlistview.moc" diff --git a/kita/src/threadlistview.h b/kita/src/threadlistview.h new file mode 100644 index 0000000..5d830dd --- /dev/null +++ b/kita/src/threadlistview.h @@ -0,0 +1,45 @@ +/*************************************************************************** + * Copyright (C) 2003 by Hideki Ikemoto * + * ikemo@wakaba.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 KITATHREADLISTVIEW_H +#define KITATHREADLISTVIEW_H + +#include + +enum ThreadListViewRows { + Row_Mark, + Row_ID, + Row_Icon, + Row_Subject, + Row_ResNum, + Row_Read, + Row_Unread, + Row_Board, + Row_DatName, + Row_DatURL +}; + +namespace Kita { + +/** +@author Hideki Ikemoto +*/ +class ThreadListView : public Kita::ThreadListViewBase +{ +Q_OBJECT +public: + ThreadListView(QWidget *parent = 0, const char *name = 0); + + ~ThreadListView(); + +}; + +}; + +#endif -- 2.11.0