QyotoDevelop.QyotoForm.ParseFile C# (CSharp) Method

ParseFile() public method

public ParseFile ( ) : void
return void
        public void ParseFile()
        {
            if (m_Project == null)
                return;

            string fullPath = Path.Combine(QyotoDesignInfo.FromProject(m_Project).QtGuiFolder, m_UiFileName);

            if (!File.Exists(fullPath))
                return;

            using (FileStream stream = new FileStream(fullPath, FileMode.Open, FileAccess.Read)) {
                XmlDocument doc = new XmlDocument();
                doc.Load(stream);
                m_ClassName = doc.SelectSingleNode("/ui/widget").Attributes["name"].Value;
                m_BaseTypeName = doc.SelectSingleNode("/ui/widget").Attributes["class"].Value;
            }

            // XXX: Queue code generation?

            ProjectNodeBuilder.FilesChanged(m_Project);
        }