• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

skyobjectname.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           skyobjectname.h  -  description
00003                              -------------------
00004     begin                : Wed Aug 22 2001
00005     copyright            : (C) 2001 by Thomas Kabelmann
00006     email                : kstars@30doradus.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef SKYOBJECTNAME_H
00019 #define SKYOBJECTNAME_H
00020 
00021 #include <qstring.h>
00022 #include <klistbox.h>
00023 #include <klocale.h>
00024 
00034 class SkyObject;
00035 
00036 class SkyObjectName {
00037     
00038     public:
00040         SkyObjectName (const QString &str = QString::null, SkyObject *obj = 0);
00041 
00043         ~SkyObjectName() {}
00044 
00046         QString text() { return Text; }
00047 
00049         QString translatedText() { return i18n( Text.local8Bit().data()); }
00050 
00052         SkyObject *skyObject() { return skyobject; }
00053 
00056         bool operator < (SkyObjectName &o) { return Text < o.Text; }
00057 
00060         bool operator == (SkyObjectName &o) { return Text == o.Text; }
00061 
00062     private:
00063     
00064         SkyObject *skyobject;
00065         QString Text;
00066 };
00067 
00068 
00078 class SkyObjectNameListItem : public QListBoxText  {
00079     
00080     public:
00082         SkyObjectNameListItem (QListBox *parent, SkyObjectName *name );
00083 
00085         ~SkyObjectNameListItem() {}
00086 
00088         SkyObjectName * objName() { return object; }
00089         
00090     private:
00091         SkyObjectName *object;
00092 };
00093 
00094 #endif

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal