Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/UtilityMain.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (hide annotations) (download) (as text)
Thu Dec 20 23:54:17 2012 UTC (11 years, 3 months ago) by haruneko24
File MIME type: text/x-c++src
File size: 810 byte(s)


1 haruneko24 91 #include <QtGui/QApplication>
2    
3     #include <QMainWindow>
4     #include <QTextCodec>
5     #include <stdio.h>
6    
7     #include <QFileDialog>
8     #include "dialog/PhraseSearchDialog.h"
9    
10     #include "dialog/PhraseView.h"
11    
12     // コンバータ
13     int main(int argc, char *argv[])
14     {
15     QApplication a(argc, argv);
16    
17     // ソースコードが UTF-8 なので内部は UTF-8 で統一.
18     QTextCodec *codec = QTextCodec::codecForName("UTF-8");
19     QTextCodec::setCodecForCStrings(codec);
20     QTextCodec::setCodecForTr(codec);
21    
22     // 実行
23     QString filename = "test/data/WaveCorpusTest/test2.styx";//QFileDialog::getOpenFileName(0, QWidget::tr("Select style"), "", QWidget::tr("cpsx file (*.styx)"));
24    
25     stand::echoes::dialog::PhraseSearchDialog dialog(filename);
26     dialog.show();
27    
28     return a.exec();
29     }
30    

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26