source: smplayer/trunk/src/videopreview/async.diff

Last change on this file was 113, checked in by Silvan Scherrer, 15 years ago

Smplayer: eol-style 2nd part

  • Property svn:eol-style set to LF
File size: 7.6 KB
  • videopreview/main.cpp

     
    4747        */
    4848        //vp.setAspectRatio( 2.35 );
    4949
     50
     51
     52
     53
     54
     55
    5056        if ( (vp.showConfigDialog()) && (vp.createThumbnails()) ) {
    5157                vp.show();
    5258                vp.adjustWindowSize();
    5359                return a.exec();
    5460        }
    55 
     61#endif
    5662        return 0;
    5763}
  • videopreview/videopreview.cpp

     
    105105        my_layout->addWidget(button_box);
    106106        setLayout(my_layout);
    107107
     108
     109
     110
     111
    108112
     113
     114
     115
     116
    109117        QList<QByteArray> r_formats = QImageReader::supportedImageFormats();
    110118        QString read_formats;
    111119        for (int n=0; n < r_formats.count(); n++) {
     
    156164                return "00000005.jpg";
    157165}
    158166
     167
     168
     169
     170
     171
     172
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
     207
     208
     209
     210
     211
     212
     213
     214
     215
     216
     217
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
     228
     229
     230
     231
     232
     233
     234
     235
     236
     237
     238
     239
     240
     241
     242
     243
     244
     245
     246
     247
     248
     249
     250
     251
     252
     253
     254
     255
     256
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
     275
     276
     277
     278
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
    159293bool VideoPreview::createThumbnails() {
    160294        clearThumbnails();
    161295        error_message.clear();
     
    244378
    245379        return true;
    246380}
     381
    247382
    248383bool VideoPreview::runMplayer(int seek) {
    249384        QStringList args;
     
    283418        for (int n = 0; n < args.count(); n++) command = command + args[n] + " ";
    284419        qDebug("VideoPreview::runMplayer: command: %s", command.toUtf8().constData());
    285420
     421
     422
     423
     424
     425
     426
     427
     428
     429
     430
     431
     432
    286433        QProcess p;
    287434        #ifdef CD_TO_TEMP_DIR
    288435        p.setWorkingDirectory(full_output_dir);
     
    294441                error_message = tr("The mplayer process didn't run");
    295442                return false;
    296443        }
     444
    297445
    298446        return true;
    299447}
  • videopreview/videopreview.h

     
    1919#ifndef _VIDEOPREVIEW_H_
    2020#define _VIDEOPREVIEW_H_
    2121
     22
     23
    2224#include <QWidget>
    2325#include <QString>
    2426#include <QList>
    2527
     28
     29
     30
     31
    2632class QProgressDialog;
    2733class QGridLayout;
    2834class QLabel;
     
    9096        void setExtractFormat( ExtractFormat format ) { prop.extract_format = format; };
    9197        ExtractFormat extractFormat() { return prop.extract_format; };
    9298
     99
     100
     101
    93102        bool createThumbnails();
     103
    94104
    95105        bool showConfigDialog();
    96106
     
    106116        void cancelPressed();
    107117        void saveImage();
    108118
     119
     120
     121
     122
     123
    109124protected:
     125
     126
     127
     128
     129
     130
     131
     132
     133
    110134        bool extractImages();
     135
    111136        bool runMplayer(int seek);
    112137        bool addPicture(const QString & filename, int num, int time);
    113138        void displayVideoInfo(const VideoInfo & i);
     
    144169                ExtractFormat extract_format;
    145170        } prop;
    146171
     172
    147173        struct {
    148174                int thumbnail_width;
     175
     176
     177
     178
    149179        } run;
     180
     181
     182
     183
     184
    150185
    151186        QString last_directory;
    152187        QString error_message;
  • basegui.cpp

     
    40224022
    40234023        video_preview->setMplayerPath(pref->mplayer_bin);
    40244024
     4025
     4026
     4027
     4028
     4029
    40254030        if ( (video_preview->showConfigDialog()) && (video_preview->createThumbnails()) ) {
    40264031                video_preview->show();
    40274032                video_preview->adjustWindowSize();
    40284033        }
     4034
    40294035}
    40304036
    40314037QNetworkProxy BaseGui::userProxy() {
Note: See TracBrowser for help on using the repository browser.