Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CelestialBrowserBase Class Reference

#include <celestialbrowserbase.uic.h>

Inheritance diagram for CelestialBrowserBase:

Inheritance graph
List of all members.

Public Slots

virtual void slotBrighter (bool)
virtual void slotBrightest (bool)
virtual void slotNearest (bool)
virtual void slotRefresh ()
virtual void slotRightClickOnStar (QListViewItem *, const QPoint &, int)
virtual void slotWithPlanets (bool)

Public Member Functions

 CelestialBrowserBase (QWidget *parent=0, const char *name=0, WFlags fl=WType_TopLevel)
 ~CelestialBrowserBase ()

Public Attributes

QButtonGroup * buttonGroup2
QPushButton * buttonOk
KListView * listStars
QRadioButton * radioBrighter
QRadioButton * radioBrightest
QRadioButton * radioNearest
QRadioButton * radioPlanets
QPushButton * refresh

Protected Slots

virtual void languageChange ()

Protected Attributes

QGridLayout * buttonGroup2Layout
QGridLayout * CelestialBrowserBaseLayout
QSpacerItem * spacer2
QSpacerItem * spacer3

Constructor & Destructor Documentation

CelestialBrowserBase::CelestialBrowserBase QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = WType_TopLevel
 

Definition at line 31 of file celestialbrowserbase.uic.cpp.

References buttonGroup2, buttonGroup2Layout, buttonOk, CelestialBrowserBaseLayout, languageChange(), listStars, radioBrighter, radioBrightest, radioNearest, radioPlanets, refresh, slotBrighter(), slotBrightest(), slotNearest(), slotRefresh(), slotRightClickOnStar(), slotWithPlanets(), spacer2, and spacer3.

00032     : QMainWindow( parent, name, fl )
00033 {
00034     (void)statusBar();
00035     if ( !name )
00036         setName( "CelestialBrowserBase" );
00037     setCentralWidget( new QWidget( this, "qt_central_widget" ) );
00038     CelestialBrowserBaseLayout = new QGridLayout( centralWidget(), 1, 1, 11, 6, "CelestialBrowserBaseLayout"); 
00039 
00040     buttonGroup2 = new QButtonGroup( centralWidget(), "buttonGroup2" );
00041     buttonGroup2->setFrameShape( QButtonGroup::NoFrame );
00042     buttonGroup2->setFrameShadow( QButtonGroup::Plain );
00043     buttonGroup2->setLineWidth( 0 );
00044     buttonGroup2->setColumnLayout(0, Qt::Vertical );
00045     buttonGroup2->layout()->setSpacing( 6 );
00046     buttonGroup2->layout()->setMargin( 0 );
00047     buttonGroup2Layout = new QGridLayout( buttonGroup2->layout() );
00048     buttonGroup2Layout->setAlignment( Qt::AlignTop );
00049 
00050     listStars = new KListView( buttonGroup2, "listStars" );
00051     listStars->addColumn( tr( "Name" ) );
00052     listStars->addColumn( tr( "Dist." ) );
00053     listStars->addColumn( tr( "App. Mag." ) );
00054     listStars->addColumn( tr( "Abs. Mag." ) );
00055     listStars->addColumn( tr( "Type" ) );
00056     listStars->setResizeMode( KListView::LastColumn );
00057 
00058     buttonGroup2Layout->addMultiCellWidget( listStars, 0, 0, 0, 3 );
00059     spacer3 = new QSpacerItem( 140, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00060     buttonGroup2Layout->addItem( spacer3, 2, 2 );
00061     spacer2 = new QSpacerItem( 140, 31, QSizePolicy::Expanding, QSizePolicy::Minimum );
00062     buttonGroup2Layout->addItem( spacer2, 1, 2 );
00063 
00064     radioPlanets = new QRadioButton( buttonGroup2, "radioPlanets" );
00065 
00066     buttonGroup2Layout->addWidget( radioPlanets, 2, 0 );
00067 
00068     radioBrightest = new QRadioButton( buttonGroup2, "radioBrightest" );
00069 
00070     buttonGroup2Layout->addWidget( radioBrightest, 1, 1 );
00071 
00072     radioBrighter = new QRadioButton( buttonGroup2, "radioBrighter" );
00073 
00074     buttonGroup2Layout->addWidget( radioBrighter, 2, 1 );
00075 
00076     radioNearest = new QRadioButton( buttonGroup2, "radioNearest" );
00077 
00078     buttonGroup2Layout->addWidget( radioNearest, 1, 0 );
00079 
00080     buttonOk = new QPushButton( buttonGroup2, "buttonOk" );
00081     buttonOk->setAutoDefault( TRUE );
00082     buttonOk->setDefault( TRUE );
00083 
00084     buttonGroup2Layout->addWidget( buttonOk, 2, 3 );
00085 
00086     refresh = new QPushButton( buttonGroup2, "refresh" );
00087 
00088     buttonGroup2Layout->addWidget( refresh, 1, 3 );
00089 
00090     CelestialBrowserBaseLayout->addWidget( buttonGroup2, 0, 0 );
00091 
00092     // toolbars
00093 
00094     languageChange();
00095     resize( QSize(557, 521).expandedTo(minimumSizeHint()) );
00096     clearWState( WState_Polished );
00097 
00098     // signals and slots connections
00099     connect( radioNearest, SIGNAL( toggled(bool) ), this, SLOT( slotNearest(bool) ) );
00100     connect( radioBrightest, SIGNAL( toggled(bool) ), this, SLOT( slotBrightest(bool) ) );
00101     connect( radioBrighter, SIGNAL( toggled(bool) ), this, SLOT( slotBrighter(bool) ) );
00102     connect( radioPlanets, SIGNAL( toggled(bool) ), this, SLOT( slotWithPlanets(bool) ) );
00103     connect( listStars, SIGNAL( contextMenuRequested(QListViewItem*,const QPoint&,int) ), this, SLOT( slotRightClickOnStar(QListViewItem*,const QPoint&,int) ) );
00104     connect( refresh, SIGNAL( clicked() ), this, SLOT( slotRefresh() ) );
00105     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( close() ) );
00106 }

CelestialBrowserBase::~CelestialBrowserBase  ) 
 

Definition at line 111 of file celestialbrowserbase.uic.cpp.

00112 {
00113     // no need to delete child widgets, Qt does it all for us
00114 }


Member Function Documentation

void CelestialBrowserBase::languageChange  )  [protected, virtual, slot]
 

Definition at line 120 of file celestialbrowserbase.uic.cpp.

References buttonGroup2, buttonOk, listStars, radioBrighter, radioBrightest, radioNearest, radioPlanets, and refresh.

Referenced by CelestialBrowserBase().

00121 {
00122     setCaption( tr( "Celestial Browser" ) );
00123     buttonGroup2->setTitle( QString::null );
00124     listStars->header()->setLabel( 0, tr( "Name" ) );
00125     listStars->header()->setLabel( 1, tr( "Dist." ) );
00126     listStars->header()->setLabel( 2, tr( "App. Mag." ) );
00127     listStars->header()->setLabel( 3, tr( "Abs. Mag." ) );
00128     listStars->header()->setLabel( 4, tr( "Type" ) );
00129     radioPlanets->setText( tr( "With Planets" ) );
00130     radioBrightest->setText( tr( "Brightest (Abs.)" ) );
00131     radioBrighter->setText( tr( "Brightest (App.)" ) );
00132     radioNearest->setText( tr( "Nearest" ) );
00133     buttonOk->setText( tr( "&Close" ) );
00134     buttonOk->setAccel( QKeySequence( tr( "Alt+C" ) ) );
00135     refresh->setText( tr( "Refresh" ) );
00136 }

void CelestialBrowserBase::slotBrighter bool   )  [virtual, slot]
 

Reimplemented in CelestialBrowser.

Definition at line 163 of file celestialbrowserbase.uic.cpp.

Referenced by CelestialBrowserBase().

00164 {
00165     qWarning( "CelestialBrowserBase::slotBrighter(bool): Not implemented yet" );
00166 }

void CelestialBrowserBase::slotBrightest bool   )  [virtual, slot]
 

Reimplemented in CelestialBrowser.

Definition at line 143 of file celestialbrowserbase.uic.cpp.

Referenced by CelestialBrowserBase().

00144 {
00145     qWarning( "CelestialBrowserBase::slotBrightest(bool): Not implemented yet" );
00146 }

void CelestialBrowserBase::slotNearest bool   )  [virtual, slot]
 

Reimplemented in CelestialBrowser.

Definition at line 138 of file celestialbrowserbase.uic.cpp.

Referenced by CelestialBrowserBase().

00139 {
00140     qWarning( "CelestialBrowserBase::slotNearest(bool): Not implemented yet" );
00141 }

void CelestialBrowserBase::slotRefresh  )  [virtual, slot]
 

Reimplemented in CelestialBrowser.

Definition at line 153 of file celestialbrowserbase.uic.cpp.

Referenced by CelestialBrowserBase().

00154 {
00155     qWarning( "CelestialBrowserBase::slotRefresh(): Not implemented yet" );
00156 }

void CelestialBrowserBase::slotRightClickOnStar QListViewItem *  ,
const QPoint &  ,
int 
[virtual, slot]
 

Reimplemented in CelestialBrowser.

Definition at line 158 of file celestialbrowserbase.uic.cpp.

Referenced by CelestialBrowserBase().

00159 {
00160     qWarning( "CelestialBrowserBase::slotRightClickOnStar(QListViewItem*,const QPoint&,int): Not implemented yet" );
00161 }

void CelestialBrowserBase::slotWithPlanets bool   )  [virtual, slot]
 

Reimplemented in CelestialBrowser.

Definition at line 148 of file celestialbrowserbase.uic.cpp.

Referenced by CelestialBrowserBase().

00149 {
00150     qWarning( "CelestialBrowserBase::slotWithPlanets(bool): Not implemented yet" );
00151 }


Member Data Documentation

QButtonGroup* CelestialBrowserBase::buttonGroup2
 

Definition at line 38 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase(), and languageChange().

QGridLayout* CelestialBrowserBase::buttonGroup2Layout [protected]
 

Definition at line 57 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase().

QPushButton* CelestialBrowserBase::buttonOk
 

Definition at line 44 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase(), and languageChange().

QGridLayout* CelestialBrowserBase::CelestialBrowserBaseLayout [protected]
 

Definition at line 56 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase().

KListView* CelestialBrowserBase::listStars
 

Definition at line 39 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase(), and languageChange().

QRadioButton* CelestialBrowserBase::radioBrighter
 

Definition at line 42 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase(), and languageChange().

QRadioButton* CelestialBrowserBase::radioBrightest
 

Definition at line 41 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase(), and languageChange().

QRadioButton* CelestialBrowserBase::radioNearest
 

Definition at line 43 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase(), and languageChange().

QRadioButton* CelestialBrowserBase::radioPlanets
 

Definition at line 40 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase(), and languageChange().

QPushButton* CelestialBrowserBase::refresh
 

Definition at line 45 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase(), and languageChange().

QSpacerItem* CelestialBrowserBase::spacer2 [protected]
 

Definition at line 59 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase().

QSpacerItem* CelestialBrowserBase::spacer3 [protected]
 

Definition at line 58 of file celestialbrowserbase.uic.h.

Referenced by CelestialBrowserBase().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:10 2006 for Celestia by  doxygen 1.4.1