PlotTableBase.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'PlotTableBase.ui'
3 **
4 ** Created by User Interface Compiler
5 **
6 ** WARNING! All changes made in this file will be lost!
7 ****************************************************************************/
8 
9 #include "PlotTableBase.h"
10 
11 #include <qvariant.h>
12 #include <qpushbutton.h>
13 #include <qheader.h>
14 #include <qlistview.h>
15 #include <qlayout.h>
16 #include <qtooltip.h>
17 #include <qwhatsthis.h>
18 #include <qimage.h>
19 #include <qpixmap.h>
20 
21 static const char* const image0_data[] = {
22 "48 48 6 1",
23 ". c None",
24 "b c #0000f0",
25 "# c #505050",
26 "d c #a0a0a0",
27 "c c #f00000",
28 "a c #f0f0f0",
29 "................................................",
30 "....#..............##....#..#...##.#............",
31 "..#..#...............#.#.#..#.#....##...........",
32 ".............................#..................",
33 "................................................",
34 "..##............................................",
35 ".#.....aaaa.aaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaa..",
36 "...#...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..",
37 ".......aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..",
38 ".......aaaaaaaaaa..aaaaaaaaaaaaaaaaaaaaaaaaaaa..",
39 ".......aaaaaaaaaa..aabbbbbbbbbbaaaabbbbbbbbbba..",
40 ".......aaaaaaaaaa..aaaabbbbbbaaaaaaaabbbbbbaaa..",
41 "....#..aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
42 ".#.....aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
43 ".......aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
44 ".......aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
45 ".........aaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaa....",
46 ".......aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
47 ".......aaaaaaaaaa..aaaaabbbbaaaaaaaaaabbbbaaaa..",
48 ".......aaaaaaaaa...aaaaabbbbaaaaaaaaaabbbbaaaa..",
49 "...#...aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
50 "....#..aaaaaaaaa.c.aaaaabbbbbbbbbbbbbbbbbbaaaa..",
51 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
52 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
53 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
54 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
55 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
56 ".......aaaaaaaaa.c.aaaaabbbbaaaaaaaaaabbbbaaaa..",
57 ".#.#...aaaaaaaaa.c..aaaabbbbaaaaaaaaaabbbbaaaa..",
58 ".........aaaaaaa.cc.aaaabbbbaaaaaaaaaabbbbaaaa..",
59 ".......aaaaaaaaa.cc.aaaabbbbaaaaaaaaaabbbbaa....",
60 ".......aaaaaaaaa.cc.aaaabbbbaaaaaaaaaabbbbaaaa..",
61 ".......aaaaaaaaa.cc.aaabbbbbbaaaaaaaabbbbbbaaa..",
62 ".......aaaaaaaaa.cc.abbbbbbbbbbaaaabbbbbbbbbba..",
63 ".......aaaaaaaa..cc.aaaaaaaaaaaaaaaaaaaaaaaaaa..",
64 ".#.....aaaaaaaa.ccc..aaaaaaaaaaaaaaaaaaaaaaaaa..",
65 ".......aaaaaaaa.cccc.aaaaaaaaaaaaaaaaaaaaaaaaa..",
66 ".......aaaaaaa..cccc.aaaaaa.aaaaaaaaaaaaaaaaaa..",
67 ".......aaaaaaa.ccccc..aaaaa.aaaaaaaaaaaaaa.aaa..",
68 ".......aaaaaa..cccccc..aaaa..aaaa.aaaaa..a.aaa..",
69 ".......aaaa...ccccccc..a..a....aa..aa.a..a.a.a..",
70 ".......aa....ccccccccc.......d...............a..",
71 ".#..............................................",
72 ".....#........#.......#.#..............#.#......",
73 "...#.#..........................................",
74 "................................................",
75 "................................................",
76 "................................................"};
77 
78 
79 /*
80  * Constructs a PlotTableBase as a child of 'parent', with the
81  * name 'name' and widget flags set to 'f'.
82  *
83  * The dialog will by default be modeless, unless you set 'modal' to
84  * TRUE to construct a modal dialog.
85  */
86 PlotTableBase::PlotTableBase( QWidget* parent, const char* name, bool modal, WFlags fl )
87  : QDialog( parent, name, modal, fl ),
88  image0( (const char **) image0_data )
89 {
90  if ( !name )
91  setName( "PlotTableBase" );
92  setIcon( image0 );
93  PlotTableBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "PlotTableBaseLayout");
94 
95  closeButton = new QPushButton( this, "closeButton" );
96 
98 
99  copyButton = new QPushButton( this, "copyButton" );
100  copyButton->setEnabled( FALSE );
101 
103 
104  m_plot_table = new QListView( this, "m_plot_table" );
105  m_plot_table->addColumn( tr( "Title" ) );
106  m_plot_table->addColumn( tr( "Type" ) );
107  m_plot_table->addColumn( tr( "X axis" ) );
108  m_plot_table->addColumn( tr( "Y axis" ) );
109  m_plot_table->addColumn( tr( "Z axis" ) );
110  m_plot_table->setBackgroundOrigin( QListView::WidgetOrigin );
111  m_plot_table->setFrameShape( QListView::StyledPanel );
112  m_plot_table->setFrameShadow( QListView::Sunken );
113  m_plot_table->setResizePolicy( QScrollView::Manual );
117  m_plot_table->setResizeMode( QListView::AllColumns );
118 
120  spacer1 = new QSpacerItem( 311, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
122  languageChange();
123  resize( QSize(529, 352).expandedTo(minimumSizeHint()) );
124  clearWState( WState_Polished );
125 
126  // signals and slots connections
127  connect( m_plot_table, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( selectionChanged(QListViewItem*) ) );
128  connect( closeButton, SIGNAL( clicked() ), this, SLOT( close() ) );
129  connect( copyButton, SIGNAL( clicked() ), this, SLOT( copyButton_clicked() ) );
130  connect( closeButton, SIGNAL( clicked() ), this, SLOT( closeButton_clicked() ) );
131 }
132 
133 /*
134  * Destroys the object and frees any allocated resources
135  */
137 {
138  // no need to delete child widgets, Qt does it all for us
139 }
140 
141 /*
142  * Sets the strings of the subwidgets using the current
143  * language.
144  */
146 {
147  setCaption( tr( "Plot table" ) );
148  closeButton->setText( tr( "Close" ) );
149  copyButton->setText( tr( "Copy" ) );
150  m_plot_table->header()->setLabel( 0, tr( "Title" ) );
151  m_plot_table->header()->setLabel( 1, tr( "Type" ) );
152  m_plot_table->header()->setLabel( 2, tr( "X axis" ) );
153  m_plot_table->header()->setLabel( 3, tr( "Y axis" ) );
154  m_plot_table->header()->setLabel( 4, tr( "Z axis" ) );
155  m_plot_table->clear();
156  QListViewItem * item = new QListViewItem( m_plot_table, 0 );
157  item->setText( 0, tr( "New Item" ) );
158 
159 }
160 

Generated for HippoDraw Class Library by doxygen