~ubuntu-branches/ubuntu/raring/voxbo/raring

« back to all changes in this revision

Viewing changes to vbwidgets/fileviewmain.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2010-06-06 11:33:11 UTC
  • Revision ID: james.westby@ubuntu.com-20100606113311-v3c13imdkkd5n7ae
Tags: upstream-1.8.5~svn1172
ImportĀ upstreamĀ versionĀ 1.8.5~svn1172

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// fileviewmain.cpp
 
3
// Copyright (c) 1998-2010 by The VoxBo Development Team
 
4
 
 
5
// This file is part of VoxBo
 
6
// 
 
7
// VoxBo is free software: you can redistribute it and/or modify it
 
8
// under the terms of the GNU General Public License as published by
 
9
// the Free Software Foundation, either version 3 of the License, or
 
10
// (at your option) any later version.
 
11
// 
 
12
// VoxBo is distributed in the hope that it will be useful, but
 
13
// WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
// General Public License for more details.
 
16
// 
 
17
// You should have received a copy of the GNU General Public License
 
18
// along with VoxBo.  If not, see <http://www.gnu.org/licenses/>.
 
19
// 
 
20
// For general information on VoxBo, including the latest complete
 
21
// source code and binary distributions, manual, and associated files,
 
22
// see the VoxBo home page at: http://www.voxbo.org/
 
23
// 
 
24
// original version written by Tom King and Daniel Y. Kimberg
 
25
 
 
26
#include "fileview.h"
 
27
#include "vbprefs.h"
 
28
#include <qapplication.h>
 
29
#include <qvariant.h>
 
30
#include <qlineedit.h>
 
31
#include <qpushbutton.h>
 
32
#include <qlabel.h>
 
33
#include <q3listbox.h>
 
34
#include <q3groupbox.h>
 
35
#include <qlayout.h>
 
36
#include <qtooltip.h>
 
37
#include <q3whatsthis.h>
 
38
#include <qaction.h>
 
39
#include <qmenubar.h>
 
40
#include <q3popupmenu.h>
 
41
#include <q3toolbar.h>
 
42
 
 
43
VBPrefs vbp;
 
44
 
 
45
int main( int argc, char ** argv )
 
46
{
 
47
  QApplication a(argc,argv);
 
48
  vbp.init();
 
49
  fileview v;
 
50
  QFont font( "SansSerif", 10, 0 );
 
51
  font.setStyleHint( QFont::SansSerif );
 
52
  a.setFont( font );
 
53
  v.setFont( font );
 
54
  a.setMainWidget(&v);
 
55
  v.show();
 
56
  v.ShowDirectoriesAlso(1);
 
57
  v.ShowImageInformation(1);
 
58
 
 
59
  a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
 
60
  a.exec();
 
61
  tokenlist ff=v.ReturnFiles();
 
62
  for (int i=0; i<ff.size(); i++) {
 
63
    cout << ff[i] << endl;
 
64
  }
 
65
  exit(0);
 
66
}