PlotTableBase.cpp
Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'PlotTableBase.ui'
00003 **
00004 ** Created by User Interface Compiler
00005 **
00006 ** WARNING! All changes made in this file will be lost!
00007 ****************************************************************************/
00008 
00009 #include "PlotTableBase.h"
00010 
00011 #include <qvariant.h>
00012 #include <qpushbutton.h>
00013 #include <qheader.h>
00014 #include <qlistview.h>
00015 #include <qlayout.h>
00016 #include <qtooltip.h>
00017 #include <qwhatsthis.h>
00018 #include <qimage.h>
00019 #include <qpixmap.h>
00020 
00021 static const char* const image0_data[] = { 
00022 "48 48 6 1",
00023 ". c None",
00024 "b c #0000f0",
00025 "# c #505050",
00026 "d c #a0a0a0",
00027 "c c #f00000",
00028 "a c #f0f0f0",
00029 "................................................",
00030 "....#..............##....#..#...##.#............",
00031 "..#..#...............#.#.#..#.#....##...........",
00032 ".............................#..................",
00033 "................................................",
00034 "..##............................................",
00035 ".#.....aaaa.aaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaa..",
00036 "...#...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..",
00037 ".......aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..",
00038 ".......aaaaaaaaaa..aaaaaaaaaaaaaaaaaaaaaaaaaaa..",
00039 ".......aaaaaaaaaa..aabbbbbbbbbbaaaabbbbbbbbbba..",
00040 ".......aaaaaaaaaa..aaaabbbbbbaaaaaaaabbbbbbaaa..",
00041 "....#..aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
00042 ".#.....aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
00043 ".......aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
00044 ".......aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
00045 ".........aaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaa....",
00046 ".......aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
00047 ".......aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
00048 ".......aaaaaaaaa...aaaaabbbbaaaaaaaaaabbbbaaaa..",
00049 "...#...aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
00050 "....#..aaaaaaaaa.c.aaaaabbbbbbbbbbbbbbbbbbaaaa..",
00051 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
00052 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
00053 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
00054 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
00055 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
00056 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
00057 ".#.#...aaaaaaaaa.c..aaaabbbbaaaaaaaaaabbbbaaaa..",
00058 ".........aaaaaaa.cc.aaaabbbbaaaaaaaaaabbbbaaaa..",
00059 ".......aaaaaaaaa.cc.aaaabbbbaaaaaaaaaabbbbaa....",
00060 ".......aaaaaaaaa.cc.aaaabbbbaaaaaaaaaabbbbaaaa..",
00061 ".......aaaaaaaaa.cc.aaabbbbbbaaaaaaaabbbbbbaaa..",
00062 ".......aaaaaaaaa.cc.abbbbbbbbbbaaaabbbbbbbbbba..",
00063 ".......aaaaaaaa..cc.aaaaaaaaaaaaaaaaaaaaaaaaaa..",
00064 ".#.....aaaaaaaa.ccc..aaaaaaaaaaaaaaaaaaaaaaaaa..",
00065 ".......aaaaaaaa.cccc.aaaaaaaaaaaaaaaaaaaaaaaaa..",
00066 ".......aaaaaaa..cccc.aaaaaa.aaaaaaaaaaaaaaaaaa..",
00067 ".......aaaaaaa.ccccc..aaaaa.aaaaaaaaaaaaaa.aaa..",
00068 ".......aaaaaa..cccccc..aaaa..aaaa.aaaaa..a.aaa..",
00069 ".......aaaa...ccccccc..a..a....aa..aa.a..a.a.a..",
00070 ".......aa....ccccccccc.......d...............a..",
00071 ".#..............................................",
00072 ".....#........#.......#.#..............#.#......",
00073 "...#.#..........................................",
00074 "................................................",
00075 "................................................",
00076 "................................................"};
00077 
00078 
00079 /*
00080  *  Constructs a PlotTableBase as a child of 'parent', with the
00081  *  name 'name' and widget flags set to 'f'.
00082  *
00083  *  The dialog will by default be modeless, unless you set 'modal' to
00084  *  TRUE to construct a modal dialog.
00085  */
00086 PlotTableBase::PlotTableBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00087     : QDialog( parent, name, modal, fl ),
00088       image0( (const char **) image0_data )
00089 {
00090     if ( !name )
00091         setName( "PlotTableBase" );
00092     setIcon( image0 );
00093     PlotTableBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "PlotTableBaseLayout"); 
00094 
00095     closeButton = new QPushButton( this, "closeButton" );
00096 
00097     PlotTableBaseLayout->addWidget( closeButton, 1, 2 );
00098 
00099     copyButton = new QPushButton( this, "copyButton" );
00100     copyButton->setEnabled( FALSE );
00101 
00102     PlotTableBaseLayout->addWidget( copyButton, 1, 0 );
00103 
00104     m_plot_table = new QListView( this, "m_plot_table" );
00105     m_plot_table->addColumn( tr( "Title" ) );
00106     m_plot_table->addColumn( tr( "Type" ) );
00107     m_plot_table->addColumn( tr( "X axis" ) );
00108     m_plot_table->addColumn( tr( "Y axis" ) );
00109     m_plot_table->addColumn( tr( "Z axis" ) );
00110     m_plot_table->setBackgroundOrigin( QListView::WidgetOrigin );
00111     m_plot_table->setFrameShape( QListView::StyledPanel );
00112     m_plot_table->setFrameShadow( QListView::Sunken );
00113     m_plot_table->setResizePolicy( QScrollView::Manual );
00114     m_plot_table->setAllColumnsShowFocus( TRUE );
00115     m_plot_table->setShowSortIndicator( TRUE );
00116     m_plot_table->setItemMargin( 2 );
00117     m_plot_table->setResizeMode( QListView::AllColumns );
00118 
00119     PlotTableBaseLayout->addMultiCellWidget( m_plot_table, 0, 0, 0, 2 );
00120     spacer1 = new QSpacerItem( 311, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00121     PlotTableBaseLayout->addItem( spacer1, 1, 1 );
00122     languageChange();
00123     resize( QSize(529, 352).expandedTo(minimumSizeHint()) );
00124     clearWState( WState_Polished );
00125 
00126     // signals and slots connections
00127     connect( m_plot_table, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( selectionChanged(QListViewItem*) ) );
00128     connect( closeButton, SIGNAL( clicked() ), this, SLOT( close() ) );
00129     connect( copyButton, SIGNAL( clicked() ), this, SLOT( copyButton_clicked() ) );
00130     connect( closeButton, SIGNAL( clicked() ), this, SLOT( closeButton_clicked() ) );
00131 }
00132 
00133 /*
00134  *  Destroys the object and frees any allocated resources
00135  */
00136 PlotTableBase::~PlotTableBase()
00137 {
00138     // no need to delete child widgets, Qt does it all for us
00139 }
00140 
00141 /*
00142  *  Sets the strings of the subwidgets using the current
00143  *  language.
00144  */
00145 void PlotTableBase::languageChange()
00146 {
00147     setCaption( tr( "Plot table" ) );
00148     closeButton->setText( tr( "Close" ) );
00149     copyButton->setText( tr( "Copy" ) );
00150     m_plot_table->header()->setLabel( 0, tr( "Title" ) );
00151     m_plot_table->header()->setLabel( 1, tr( "Type" ) );
00152     m_plot_table->header()->setLabel( 2, tr( "X axis" ) );
00153     m_plot_table->header()->setLabel( 3, tr( "Y axis" ) );
00154     m_plot_table->header()->setLabel( 4, tr( "Z axis" ) );
00155     m_plot_table->clear();
00156     QListViewItem * item = new QListViewItem( m_plot_table, 0 );
00157     item->setText( 0, tr( "New Item" ) );
00158 
00159 }
00160 

Generated for HippoDraw Class Library by doxygen