Subversion Repositories spk

Rev

Rev 48 | Rev 50 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 48 Rev 49
Line 2236... Line 2236...
2236
 
2236
 
2237
				if ( this->extrasToolStripMenuItem->DropDownItems->Count )
2237
				if ( this->extrasToolStripMenuItem->DropDownItems->Count )
2238
					this->extrasToolStripMenuItem->Visible = true;
2238
					this->extrasToolStripMenuItem->Visible = true;
2239
 
2239
 
2240
				// email/website/forum
2240
				// email/website/forum
2241
				if ( !p->GetForumLink().Empty() )
2241
				if ( !p->forumLink().empty() ) {
2242
				{
-
 
2243
					CyString web = p->GetForumLink();
2242
					Utils::String web = p->forumLink();
2244
					if ( web.IsNumber() )
2243
					if ( web.isNumber() )
2245
						web = CyString("http://forum.egosoft.com/viewtopic.php?t=") + web; 
2244
						web = Utils::String("http://forum.egosoft.com/viewtopic.php?t=") + web; 
2246
 
2245
 
2247
					this->visitForumPageToolStripMenuItem->Visible = true;
2246
					this->visitForumPageToolStripMenuItem->Visible = true;
2248
					if ( !web.IsIn("http://") )
2247
					if ( !web.isin("http://") )
2249
						this->visitForumPageToolStripMenuItem->Tag = "http://" + SystemStringFromCyString(web);
2248
						this->visitForumPageToolStripMenuItem->Tag = "http://" + _US(web);
2250
					else
2249
					else
2251
						this->visitForumPageToolStripMenuItem->Tag = SystemStringFromCyString(web);
2250
						this->visitForumPageToolStripMenuItem->Tag = _US(web);
2252
					showSep2 = true;
2251
					showSep2 = true;
2253
				}
2252
				}
2254
				if ( !p->GetEmail().Empty() )
2253
				if ( !p->email().empty() )
2255
				{
2254
				{
2256
					this->emailAuthorToolStripMenuItem->Visible = true;
2255
					this->emailAuthorToolStripMenuItem->Visible = true;
2257
					this->emailAuthorToolStripMenuItem->Tag = "mailto://" + SystemStringFromCyString(p->GetEmail()) + "?subject=Re: " + SystemStringFromCyString(p->GetName().FindReplace(" ", "%20"));
2256
					this->emailAuthorToolStripMenuItem->Tag = "mailto://" + _US(p->email()) + "?subject=Re: " + SystemStringFromCyString(p->GetName().FindReplace(" ", "%20"));
2258
					showSep2 = true;
2257
					showSep2 = true;
2259
				}
2258
				}
2260
				if ( !p->GetWebSite().Empty() )
2259
				if ( !p->webSite().empty() ) {
2261
				{
-
 
2262
					this->visitWebSiteToolStripMenuItem->Visible = true;
2260
					this->visitWebSiteToolStripMenuItem->Visible = true;
2263
					if ( !p->GetWebSite().IsIn("http://") )
2261
					if ( !p->webSite().isin("http://") ) 
2264
						this->visitWebSiteToolStripMenuItem->Tag = "http://" + SystemStringFromCyString(p->GetWebSite());
2262
						this->visitWebSiteToolStripMenuItem->Tag = "http://" + _US(p->webSite());
2265
					else
2263
					else	
2266
						this->visitWebSiteToolStripMenuItem->Tag = SystemStringFromCyString(p->GetWebSite());
2264
						this->visitWebSiteToolStripMenuItem->Tag = _US(p->webSite());
2267
					showSep2 = true;
2265
					showSep2 = true;
2268
				}
2266
				}
2269
 
2267
 
2270
				if ( !p->GetWebAddress().Empty() )
2268
				if ( !p->webAddress().empty() )
2271
					this->checkForUpdatesToolStripMenuItem->Visible = true;
2269
					this->checkForUpdatesToolStripMenuItem->Visible = true;
2272
			}
2270
			}
2273
			else
2271
			else
2274
				m_pListItem = nullptr;
2272
				m_pListItem = nullptr;
2275
 
2273