summaryrefslogtreecommitdiffstats
path: root/configdialog/kbfxconfigdlgabout.ui.h
blob: d85ce1a71453a9d6c7f06b3306f67230a42c9d27 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** TQt Designer to update this file, preserving your code.
**
** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy().
** These will automatically be called by the form's constructor and
** destructor.
*****************************************************************************/

void KbfxConfigDlgAbout::init()
{
	KbfxPixmapLabelNookie->installEventFilter ( this );
	KbfxPixmapLabelSiraj->installEventFilter ( this );
	KbfxPixmapLabelNathanael->installEventFilter ( this );
	KbfxPixmapLabelPhobosK->installEventFilter ( this );
	KbfxPixmapLabelEphracis->installEventFilter ( this );
	KbfxPixmapLabelJohnny->installEventFilter ( this );

	KbfxMemberTextNookie = tr2i18n (
	                           "<strong>Name:</strong> Mensur Zahirovic (Nookie)"
	                           "<br><br>"
	                           "<strong>Country:</strong> Sweden"
	                           "<br><br>"
	                           "<strong>KBFX:</strong> co-author, Q/A, system design, web designer, bug hunter, project administror"
	                           "<br><br>"
	                           "<strong>Email:</strong> nookie@mail.kbfx.net" );

	KbfxMemberTextSiraj = tr2i18n (
	                          "<strong>Name:</strong> Siraj Razick"
	                          "<br><br>"
	                          "<strong>Country:</strong> Sri Lanka"
	                          "<br><br>"
	                          "<strong>KBFX:</strong> author, maintainer, developer, project administror"
	                          "<br><br>"
	                          "<strong>Email:</strong> siraj@mail.kbfx.net" );

	KbfxMemberTextNathanael = tr2i18n (
	                              "<strong>Name:</strong> Nathanael Dracor Gogniat"
	                              "<br><br>"
	                              "<strong>Country:</strong> Switzerland"
	                              "<br><br>"
	                              "<strong>KBFX:</strong> project technical writer, documentation manager, co-author"
	                              "<br><br>"
	                              "<strong>Email:</strong> nathanael@mail.kbfx.net" );

	KbfxMemberTextPhobosK = tr2i18n (
	                            "<strong>Name:</strong> PhobosK"
	                            "<br><br>"
	                            "<strong>Country:</strong> Bulgaria"
	                            "<br><br>"
	                            "<strong>KBFX:</strong> package & release manager, Q/A, bug hunter, mandriva packages, project administrator, developer TQt/C++"
	                            "<br><br>"
	                            "<strong>Email:</strong> phobosk@mail.kbfx.net" );

	KbfxMemberTextJohnny = tr2i18n (
	                           "<strong>Name:</strong> Johnny Henry Saenz Acuna (scarebyte)"
	                           "<br><br>"
	                           "<strong>Country:</strong> Peru"
	                           "<br><br>"
	                           "<strong>KBFX:</strong> developer TQt4/C++"
	                           "<br><br>"
	                           "<strong>Email:</strong> saenzac@mail.kbfx.net" );

	KbfxMemberTextEphracis = tr2i18n (
	                          "<strong>Name:</strong> Christoffer Brodd-Reijer (Ephracis)"
	                          "<br><br>"
	                          "<strong>Country:</strong> Sweden"
	                          "<br><br>"
	                          "<strong>KBFX:</strong> library developer for Raptor"
	                          "<br><br>"
	                          "<strong>Email:</strong> ephracis@mail.kbfx.net" );
}

bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev )
{
	TQCursor kbfxCursor;
	kbfxCursor.setShape ( Qt::PointingHandCursor );
	this->setCursor ( ( const TQCursor ) kbfxCursor );

	if ( ev->type() == TQEvent::FocusIn || ev->type() == TQEvent::Enter )
	{
		if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelNookie) )
		{
			KbfxTeamInfo->setText ( KbfxMemberTextNookie );
			KbfxUnmarkAllPixmaps();
			KbfxPixmapLabelNookie->setFrameShape ( TQFrame::WinPanel );
			return TRUE;
		}
		else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelSiraj) )
		{
			KbfxTeamInfo->setText ( KbfxMemberTextSiraj );
			KbfxUnmarkAllPixmaps();
			KbfxPixmapLabelSiraj->setFrameShape ( TQFrame::WinPanel );
			return TRUE;
		}
		else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelNathanael) )
		{
			KbfxTeamInfo->setText ( KbfxMemberTextNathanael );
			KbfxUnmarkAllPixmaps();
			KbfxPixmapLabelNathanael->setFrameShape ( TQFrame::WinPanel );
			return TRUE;
		}
		else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelPhobosK) )
		{
			KbfxTeamInfo->setText ( KbfxMemberTextPhobosK );
			KbfxUnmarkAllPixmaps();
			KbfxPixmapLabelPhobosK->setFrameShape ( TQFrame::WinPanel );
			return TRUE;
		}
		else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelJohnny) )
		{
			KbfxTeamInfo->setText ( KbfxMemberTextJohnny );
			KbfxUnmarkAllPixmaps();
			KbfxPixmapLabelJohnny->setFrameShape ( TQFrame::WinPanel );
			return TRUE;
		}
		else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelEphracis) )
		{
			KbfxTeamInfo->setText ( KbfxMemberTextEphracis );
			KbfxUnmarkAllPixmaps();
			KbfxPixmapLabelEphracis->setFrameShape ( TQFrame::WinPanel );
			return TRUE;
		}
	}

/*
	if ( ev->type() == TQEvent::Leave )
	{
		if(
			obj == KbfxPixmapLabelNookie ||
			obj == KbfxPixmapLabelSiraj ||
			obj == KbfxPixmapLabelNathanael ||
			obj == KbfxPixmapLabelPhobosK ||
			obj == KbfxPixmapLabelEphracis ||
			obj == KbfxPixmapLabelJohnny )
		{
			KbfxTeamInfo->setText("");

			return TRUE;
		}
	}
*/

	return TQWidget::eventFilter ( obj, ev );
//	return FALSE;
}

void KbfxConfigDlgAbout::KbfxUnmarkAllPixmaps()
{
	KbfxPixmapLabelNookie->setFrameShape ( TQFrame::NoFrame );
	KbfxPixmapLabelSiraj->setFrameShape ( TQFrame::NoFrame );
	KbfxPixmapLabelNathanael->setFrameShape ( TQFrame::NoFrame );
	KbfxPixmapLabelPhobosK->setFrameShape ( TQFrame::NoFrame );
	KbfxPixmapLabelEphracis->setFrameShape ( TQFrame::NoFrame );
	KbfxPixmapLabelJohnny->setFrameShape ( TQFrame::NoFrame );
}