~vcs-imports/sir/trunk

« back to all changes in this revision

Viewing changes to src/convertdialog.cpp

  • Committer: rsachetto
  • Date: 2010-04-11 00:27:46 UTC
  • Revision ID: svn-v4:bbf93b65-5a35-0410-9050-935aee3a46e1:trunk:82
* Corrected some name inconsistencies.
* Translation Update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * This file is part of Sir, an open-source cross-platform Image tool
 
2
 * This file is part of SIR, an open-source cross-platform Image tool
3
3
 * 2007  Rafael Sachetto
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
119
119
    if(alreadSent) {
120
120
        QMessageBox::information(this, tr("Let us know!"),
121
121
                                 tr("You alread sent information about your " \
122
 
                                    "Sir installation. Thank you very much!")
 
122
                                    "SIR installation. Thank you very much!")
123
123
                                 );
124
124
 
125
125
    }
127
127
        QMessageBox msgBox(QMessageBox::Question,
128
128
                           tr("Let us know!"),
129
129
                           tr("IMPORTANT: this action will not send any " \
130
 
                              "private data about you or your computer to Sir " \
 
130
                              "private data about you or your computer to SIR " \
131
131
                              "developers! It will only update a counter of " \
132
 
                              "unique installations of Sir.")
 
132
                              "unique installations of SIR.")
133
133
                           );
134
134
 
135
135
        QPushButton *connectButton = msgBox.addButton(tr("Go for it!"),
168
168
    else {
169
169
        QMessageBox::information(this, tr("Let us know!"),
170
170
                                 tr("Thank you for let us know that you are "\
171
 
                                    "using Sir! You are the user number %1 of "\
 
171
                                    "using SIR! You are the user number %1 of "\
172
172
                                    "this month!").arg(*result));
173
173
 
174
174
        QSettings settings("SIR");
192
192
 
193
193
    else if(*result == "no_new_version" ) {
194
194
        QMessageBox::information(this, tr("SIR Updates"),
195
 
                                 tr("You have the lastest version of SIR!\n"));
 
195
                                 tr("You have the lastest version of SIR!"));
196
196
    }
197
197
    else if(*result == "new_version" ) {
198
198
 
202
202
                              "download!")
203
203
                           );
204
204
 
205
 
        QPushButton *connectButton = msgBox.addButton(tr("Go to sir website!"),
 
205
        QPushButton *connectButton = msgBox.addButton(tr("Go to SIR website!"),
206
206
                                                      QMessageBox::ActionRole);
207
207
 
208
208
        QPushButton *abortButton = msgBox.addButton(tr("I will check later!"),
931
931
void ConvertDialog::setImageStatus(const QStringList& imageData,
932
932
                                   const QString& status, int statusNum) {
933
933
 
934
 
    convertProgressBar->setValue(convertProgressBar->value()+1);
935
 
    
 
934
 
 
935
    if(statusNum != CONVERTING) {
 
936
        //We don't want to update the status bar if the statusValue is
 
937
        //CONVERTING
 
938
        convertProgressBar->setValue(convertProgressBar->value()+1);
 
939
    }
936
940
    int count = filesTreeView->topLevelItemCount();
937
941
    QString fileName;
938
942
    
941
945
        QTreeWidgetItem *item = filesTreeView->topLevelItem(i);
942
946
        if(item->text(0) == imageData.at(0) && item->text(1) == imageData.at(1)
943
947
            && item->text(2) == imageData.at(2)) {
944
 
 
945
948
            item->setText(3, status);
946
949
            fileName = item->text(2) + QDir::separator() +item->text(0) + ".";
947
950
            fileName += item->text(1);
952
955
    
953
956
    if(convertProgressBar->value() == convertProgressBar->maximum()) {
954
957
        updateInterface();
955
 
 
956
958
    }
957
959
}
958
960