COIN-OR::LEMON - Graph Library

Changeset 102:25a4698cbe0c in glemon-0.x for graph-displayer.cc


Ignore:
Timestamp:
01/03/06 15:56:45 (14 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2444
Message:

Handling of tabs is rationalized a bit. More than one file can be given at startup in command prompt. If there is no file given in command prompt, an empty tab will be present at startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph-displayer.cc

    r96 r102  
    6464  MainWin mytab;
    6565
    66   if ((argc == 2) && (Glib::file_test(argv[1], Glib::FILE_TEST_IS_REGULAR)))
     66//   if ((argc == 2) && (Glib::file_test(argv[1], Glib::FILE_TEST_IS_REGULAR)))
     67//     {
     68//       mytab.readFile(argv[1]);
     69//     }
     70  if(argc>=2)
    6771    {
    68       mytab.readFile(argv[1]);
     72      for(int i=1;i<argc;i++)
     73        {
     74          if(Glib::file_test(argv[i], Glib::FILE_TEST_IS_REGULAR))
     75            {
     76              mytab.readFile(argv[i]);
     77            }
     78        }
     79    }
     80  else
     81    {
     82      mytab.newTab();
    6983    }
    7084 
Note: See TracChangeset for help on using the changeset viewer.