MCPcopy Create free account
hub / github.com/Qucs/qucs / getModuleName

Method getModuleName

qucs/textdoc.cpp:549–575  ·  view source on GitHub ↗

! * \brief TextDoc::getModuleName parse the module name ou of the text file contents * \return the module name */

Source from the content-addressed store, hash-verified

547 * \return the module name
548 */
549QString TextDoc::getModuleName (void)
550{
551 switch (language) {
552 case LANG_VHDL:
553 {
554 VHDL_File_Info VInfo (toPlainText());
555 return VInfo.EntityName;
556 }
557 case LANG_VERILOG:
558 {
559 Verilog_File_Info VInfo (toPlainText());
560 return VInfo.ModuleName;
561 }
562 case LANG_VERILOGA:
563 {
564 VerilogA_File_Info VInfo (toPlainText());
565 return VInfo.ModuleName;
566 }
567 case LANG_OCTAVE:
568 {
569 QFileInfo Info (DocName);
570 return Info.completeBaseName();
571 }
572 default:
573 return "";
574 }
575}
576
577/*!
578 * \brief TextDoc::highlightCurrentLine mark the current line

Callers 1

VASettingsDialogMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected