~s-cecilio/lenmus/v5.1.x

« back to all changes in this revision

Viewing changes to langtool/src/langtool.cpp

  • Committer: cecilios
  • Date: 2011-06-12 17:25:18 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:branches/TRY-5.0:687
Initial update for v5.0 first working core using lomse

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
//    LenMus project: free software for music theory and language
3
3
//    Copyright (c) 2002-2009 Cecilio Salmeron
4
4
//
5
 
//    This program is free software; you can redistribute it and/or modify it under the 
 
5
//    This program is free software; you can redistribute it and/or modify it under the
6
6
//    terms of the GNU General Public License as published by the Free Software Foundation;
7
7
//    either version 3 of the License, or (at your option) any later version.
8
8
//
9
 
//    This program is distributed in the hope that it will be useful, but WITHOUT ANY 
10
 
//    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
 
9
//    This program is distributed in the hope that it will be useful, but WITHOUT ANY
 
10
//    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
11
//    PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12
12
//
13
 
//    You should have received a copy of the GNU General Public License along with this 
14
 
//    program. If not, see <http://www.gnu.org/licenses/>. 
15
 
//
16
 
//
17
 
//    For any comment, suggestion or feature request, please contact the manager of 
 
13
//    You should have received a copy of the GNU General Public License along with this
 
14
//    program. If not, see <http://www.gnu.org/licenses/>.
 
15
//
 
16
//
 
17
//    For any comment, suggestion or feature request, please contact the manager of
18
18
//    the project at cecilios@users.sourceforge.net
19
19
//
20
20
//-------------------------------------------------------------------------------------
46
46
 
47
47
// the application icon (under Windows and OS/2 it is in resources and even
48
48
// though we could still include the XPM here it would be unused)
49
 
#if !defined(__WXMSW__) && !defined(__WXPM__)
50
 
    #include "../sample.xpm"
51
 
#endif
 
49
//#if !defined(__WXMSW__) && !defined(__WXPM__)
 
50
//    #include "../sample.xpm"
 
51
//#endif
52
52
 
53
53
// ----------------------------------------------------------------------------
54
54
// private classes
59
59
{
60
60
public:
61
61
    virtual bool OnInit();
62
 
    virtual int MyApp::OnExit();
 
62
    virtual int OnExit();
63
63
 
64
64
    // command line
65
65
    wxArrayString *m_fnames;
109
109
    // contains the program.
110
110
    wxString sHomeDir = wxGetCwd();
111
111
    #endif
 
112
    #ifdef __WXGTK__
 
113
    // On Mac OS 9, the initial working directory is the one that
 
114
    // contains the program.
 
115
    wxString sHomeDir = wxGetCwd();
 
116
    #endif
112
117
    wxFileName oRootPath(sHomeDir);     //sHomeDir is 'build' folder
113
118
    //oRootPath.RemoveLastDir();          //now we are in the langtool root
114
119
    g_pPaths = new lmPaths(sHomeDir);
167
172
 
168
173
    // get and process command line
169
174
 
170
 
    // The structure wxCmdLineEntryDesc is used to describe the one command line switch, 
171
 
    // option or parameter. 
 
175
    // The structure wxCmdLineEntryDesc is used to describe the one command line switch,
 
176
    // option or parameter.
172
177
    static const wxCmdLineEntryDesc cmdLineDesc[] = {
173
178
        {wxCMD_LINE_SWITCH, _T("v"), _T("verbose"), _T("be verbose") },
174
179
        {wxCMD_LINE_SWITCH, _T("c"), NULL, _T("Command mode: GUI not activated") },
181
186
        // End of command list
182
187
        {wxCMD_LINE_NONE}
183
188
    };
184
 
    
 
189
 
185
190
    // default values for params
186
191
    wxString sBook = _T("nil");
187
192
    wxString sOut = _T("nil");