report_view.cpp

来自「ncbi源码」· C++ 代码 · 共 137 行

CPP
137
字号
/* * =========================================================================== * PRODUCTION $Log: report_view.cpp,v $ * PRODUCTION Revision 1000.0  2004/06/01 21:17:43  gouriano * PRODUCTION PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.1 * PRODUCTION * =========================================================================== *//*  $Id: report_view.cpp,v 1000.0 2004/06/01 21:17:43 gouriano Exp $ * =========================================================================== * *                            PUBLIC DOMAIN NOTICE *               National Center for Biotechnology Information * *  This software/database is a "United States Government Work" under the *  terms of the United States Copyright Act.  It was written as part of *  the author's official duties as a United States Government employee and *  thus cannot be copyrighted.  This software/database is freely available *  to the public for use. The National Library of Medicine and the U.S. *  Government have not placed any restriction on its use or reproduction. * *  Although all reasonable efforts have been taken to ensure the accuracy *  and reliability of the software and data, the NLM and the U.S. *  Government do not and cannot warrant the performance or results that *  may be obtained by using this software or data. The NLM and the U.S. *  Government disclaim all warranties, express or implied, including *  warranties of performance, merchantability or fitness for any particular *  purpose. * *  Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors:  Mike DiCuccio * * File Description: * */#include <ncbi_pch.hpp>#include <gui/core/report_view.hpp>#include "report_table.hpp"BEGIN_NCBI_SCOPEUSING_SCOPE(objects);#include "report_view_.cpp"CReportView::CReportView()    : m_Title("Analysis Results"){    m_Window.reset(x_CreateWindow());}void CReportView::SetColumn(size_t col_idx, const string& col_header,                            Fl_Align align, float width){    m_Table->SetColumn(col_idx, col_header,                       CReportTable::eString, align, width);}void CReportView::Reserve(size_t rows, size_t cols){    m_Table->Reserve(rows, cols);}string& CReportView::SetCell(size_t row, size_t col){    return m_Table->SetCell(row, col);}const string& CReportView::GetCell(size_t row, size_t col) const{    return m_Table->GetCell(row, col);}void CReportView::SetData(size_t row, const CSerialObject& obj){    CConstRef<CSerialObject> ref(&obj);    m_Table->SetData(row) = ref;}const CSerialObject& CReportView::GetData(size_t row) const{    CConstRef<CSerialObject> ref = m_Table->GetData(row);    _ASSERT(ref);    return *ref;}const string& CReportView::GetTitle() const{    return m_Title;}void CReportView::SetTitle(const string& str){    m_Title = str;}void CReportView::OnVisibleRangeChanged(const CSeq_loc& loc){}void CReportView::OnSelectionChanged(const CSelectionBuffer& buf){}END_NCBI_SCOPE/* * =========================================================================== * $Log: report_view.cpp,v $ * Revision 1000.0  2004/06/01 21:17:43  gouriano * PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.1 * * Revision 1.1  2004/06/01 18:04:44  dicuccio * Initial revision.  Lots of changes: added gui_project ASN.1 project, added new * plugin arg form (separate widget), added plugin selector dialog * * =========================================================================== */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?