|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Part of the MVS Application for TechView |
|
15 // |
|
16 |
|
17 #ifndef CMVSCROPDIALOG_H |
|
18 #define CMVSCROPDIALOG_H |
|
19 |
|
20 |
|
21 #include <techview/eikdialg.h> |
|
22 #include "MVSApp.h" |
|
23 |
|
24 class CMVSAppUi; |
|
25 |
|
26 class CMVSCropDialog : public CEikDialog |
|
27 { |
|
28 public: |
|
29 static void SetupDialogLD(TTimeIntervalMicroSeconds aPosition, |
|
30 TTimeIntervalMicroSeconds aClipLength, |
|
31 TTimeIntervalMicroSeconds aCropStart, |
|
32 TTimeIntervalMicroSeconds aCropEnd, |
|
33 CMVSAppUi* aAppUi); |
|
34 void PreLayoutDynInitL(); //seeds dialog controls |
|
35 void InitControl(const TInt aId, const TInt aPos, const TInt aStart, |
|
36 const TInt aFinish ); |
|
37 |
|
38 private: |
|
39 CMVSCropDialog(TTimeIntervalMicroSeconds aPosition, |
|
40 TTimeIntervalMicroSeconds aClipLength, |
|
41 TTimeIntervalMicroSeconds aCropStart, |
|
42 TTimeIntervalMicroSeconds aCropEnd, |
|
43 CMVSAppUi* aAppUi); |
|
44 TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog |
|
45 |
|
46 private: |
|
47 TTimeIntervalMicroSeconds iPosition; //final clipping position |
|
48 TTimeIntervalMicroSeconds iClipLength; //length of clip |
|
49 TTimeIntervalMicroSeconds iCropStart; //cropping start point |
|
50 TTimeIntervalMicroSeconds iCropEnd; //cropping end point |
|
51 |
|
52 TBool iCropFromBeginning; //Crop from beginning (vs. from end) flag |
|
53 CEikProgressInfo* iProgInfo; //Pointer to the progress bar for the dlg |
|
54 |
|
55 CMVSAppUi* iAppUi; |
|
56 }; |
|
57 |
|
58 #endif CMVSCROPDIALOG_H |