summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/aboutdialog.h
blob: 5837f355b2fb54be6bd32b1a92bff5514dba09fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//
// C++ Interface: aboutdialog
//
// Description: 
//
//
// Author: Andras Mantia <amantia@kdewebdev.org>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H

#include <tqlabel.h>
#include <kommanderwidget.h>

class KAboutApplication;
class KAboutData;

/**
	@author Andras Mantia <amantia@kdewebdev.org>
*/
class AboutDialog : public TQLabel, public KommanderWidget
{
  Q_OBJECT
  TQ_OBJECT
  TQ_PROPERTY(bool KommanderWidget READ isKommanderWidget)
  TQ_PROPERTY(TQString populationText READ populationText WRITE setPopulationText DESIGNABLE false)
  TQ_PROPERTY(TQStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false)
public:
    AboutDialog(TQWidget *tqparent = 0, const char *name = 0);

    ~AboutDialog();

  virtual bool isKommanderWidget() const;
  virtual TQString currentState() const;
  virtual bool isFunctionSupported(int function);
  virtual TQString handleDCOP(int function, const TQStringList& args);
  virtual TQString populationText() const;
  virtual void setPopulationText(const TQString&);
  virtual TQStringList associatedText() const;
  virtual void setAssociatedText(const TQStringList&);

public slots:
  virtual void populate();
  virtual void execute();

private:
  void initialize(const TQString& appName, const TQString &icon, const TQString& version, const TQString& copyright);  
  void addAuthor(const TQString& author, const TQString &task, const TQString& email, const TQString &webAddress);
  void addTranslator(const TQString& author, const TQString& email);
  void setDescription(const TQString& description);
  void setHomepage(const TQString &homepage);
  void setBugAddress(const TQString &bugAddress);
  void setLicense(const TQString &license);

  KAboutData *m_aboutData;
  TQString m_version;
  TQString m_appName;
  TQString m_copyright;
  TQString m_icon;
  TQString m_bugaddress;
  TQStringList m_authors;
  TQStringList m_emails;
  TQStringList m_tasks;
  TQStringList m_addresses;
  TQString m_description;
  TQString m_homepage;
  TQString m_license;
};

#endif