Top Level Namespace

Includes:
ERB::Util

Defined Under Namespace

Modules: Amarok, EeePub, GTK, GUI, HTMLEntities, HTTP, I18n, ITRANS, KDE, MultipartFormData, OptionsParser, PluginAdapter, Plugins, QT3, QT4, Strings, TK, URLEncodedFormData, WikiPluginAdapter, XMLHash Classes: AZLyrics, Application, Cache2Html, CacheManager, DarkLyrics, Giitaayan, Jamendo, LeosLyrics, Logger, LoudSongs, Lyric, LyricDownload, LyricWiki, Lyrics, Lyrics2Html, LyricsDownload, LyricsEbook, LyricsMania, Lyriki, MediaWikiLyrics, MiniLyricsParser, Mp3Parser, PluginTests, PluginsTests, SeekLyrics, Sing365, TerraLetras

Constant Summary collapse

WIKILYRICS_VERSION =
"Wiki-Lyrics v#{MediaWikiLyrics.version()}"
TOOLKITS_DEFAULT =
["qt3", "qt4", "gtk", "tk"]

Instance Method Summary collapse

Instance Method Details

#debug(message) ⇒ Object



27
28
29
# File 'lib/wiki_lyrics/lyrics.rb', line 27

def debug( message )
	system( "kdialog", "--msgbox", "<qt>" + message.to_s().gsub( "\n", "<br />" ) + "</qt>" )
end

#get_gtk_dirObject



15
16
17
# File 'lib/wiki_lyrics/win/win_fix.rb', line 15

def get_gtk_dir()
	return ENV["GTK_BASEPATH"] ? ENV["GTK_BASEPATH"].gsub( "\\", "/" ) : nil
end

#get_ruby_dirObject



5
6
7
8
9
10
11
12
13
# File 'lib/wiki_lyrics/win/win_fix.rb', line 5

def get_ruby_dir()
	candidate_dirs = [ ENV["PROGRAMFILES"], ENV["SYSTEMDRIVE"], ENV["SYSTEMDRIVE"] ]
	candidate_dirs.each() do |dir|
		next if dir == nil
		dir = "#{dir.gsub( "\\", "/" )}/ruby"
		return dir if FileTest.exist?( dir )
	end
	return nil
end