24 setProperty(
tipProperty, tr(
"Display all NPC dialogs."));
78 QStringList
messages = dir.entryList(QStringList(
"*.msg"), QDir::Files);
82 QString
path = directory + QDir::separator() +
message;
84 if (
file->parseFile())
90 qDebug() <<
"dialog parse error" <<
path;
96 QStringList subdirs = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
97 foreach(QString sub, subdirs)
114 if (!
file.open(QIODevice::ReadOnly))
117 QTextStream stream(&
file);
118 QStringList lines = stream.readAll().split(
"\n");
120 QString comment,
line;
123 for(
int i = 2; i < lines.size(); i++)
126 if (!
line.startsWith(
"# "))
128 comment +=
line.mid(2) +
"\n";
131 return comment.trimmed();
137 QFileInfoList files = dir.entryInfoList(QStringList(
"*.py"));
138 foreach(QFileInfo
file, files)