#include <aprps.h>
Inheritance diagram for GIFAnimationPropertyTabs:
Public Member Functions | |
GIFAnimationPropertyTabs () | |
Constructor. | |
virtual BOOL | Init () |
BOOL | SameflDelayValues () |
virtual BOOL | GetApplyNowState () |
virtual BOOL | SetApplyNowState (BOOL NewState) |
Allows the setting of a new ApplyNow state. | |
virtual BOOL | SetInitMessageState (BOOL NewState) |
Allows the setting of a new InitMessage state. | |
virtual BOOL | GetInitMessageState () |
virtual CDlgResID | GetPageID () |
virtual BOOL | InitSection () |
virtual BOOL | CommitSection () |
virtual BOOL | HandleMsg (DialogMsg *Msg) |
Handles all the messages for this property tab. | |
virtual DialogTabOp * | GetTabbedDlg () |
Let the base class know where the dialog box handling class is. | |
virtual BOOL | UpdateApplyState () |
void | SetIgnoreTextChangeMsg (BOOL Val) |
BOOL | GetIgnoreTextChangeMsg () |
Static Public Member Functions | |
static BOOL | InitGIFAnimationPropertyTabs () |
Scans all GIFAnimationPropertyTabs to find out which Tabs are available, creates and holds them in a list. | |
static void | DeinitGIFAnimationPropertyTabs () |
Destroy all the Tab objects. | |
static GIFAnimationPropertyTabs * | GetFirst () |
static GIFAnimationPropertyTabs * | GetNext (GIFAnimationPropertyTabs *) |
static BOOL | DeclareGIFAnimationProperty (GIFAnimationPropertyTabs *pGIFAnimationProperty) |
Function to declare a new tab. | |
static BOOL | SetTabbedDlg (DialogTabOp *pDlg) |
static void | IncCount (UINT32 Count) |
static void | DecCount (UINT32 Count) |
static UINT32 | GetCount () |
static void | SetIncludeFramePropertiesTab (BOOL Val) |
static BOOL | GetIncludeFramePropertiesTab () |
static void | SetBrowserPreviewTab (BOOL Val) |
static BOOL | GetBrowserPreviewTab () |
static void | SetCurrentApplyNow (BOOL Val) |
static BOOL | GetCurrentApplyNow () |
static BOOL | GetApplyNow () |
static void | SetFrameGalleryOpen (BOOL Val) |
static void | SetChangeLayerState (BOOL Val) |
static void | SetFrameDelayValueChanged (BOOL Val) |
static BOOL | GetFrameDelayValueChanged () |
Static Public Attributes | |
static UINT32 | FramePropertiesTabNumber = 0 |
static UINT32 | AnimationColoursTabNumber = 1 |
static UINT32 | AnimationPropertiesTabNumber = 2 |
static UINT32 | PreviewInBrowserTabNumber = 3 |
Protected Attributes | |
BOOL | m_NoFrameLayers |
BOOL | m_IgnoreTextChangeMsg |
Static Protected Attributes | |
static DialogTabOp * | pPropertiesDlg = NULL |
static UINT32 | m_Count = 0 |
static BOOL | m_IsManyDisplayed = FALSE |
static BOOL | m_IncludeFramePropertiesTab = TRUE |
static BOOL | m_BrowserPreviewTab = FALSE |
static BOOL | m_InitMessage = FALSE |
static BOOL | m_ApplyNow = FALSE |
static BOOL | m_CurrentApplyNow = FALSE |
static List | GIFAnimationPropertyTabsList |
static BOOL | m_FrameGalleryOpen = TRUE |
static BOOL | m_ChangeLayerState = FALSE |
static BOOL | m_FrameDelayValueChanged = FALSE |
Private Member Functions | |
CC_DECLARE_DYNCREATE (GIFAnimationPropertyTabs) |
Definition at line 180 of file aprps.h.
|
Constructor.
Definition at line 1025 of file aprps.cpp. 01026 { 01027 pPropertiesDlg = NULL; 01028 m_NoFrameLayers = FALSE; 01029 m_IgnoreTextChangeMsg = FALSE; 01030 }
|
|
|
|
Implements PropertyTabs. Reimplemented in FramePropertiesTab, AnimationPropertiesTab, AnimationColoursTab, and PreviewInBrowserTab. Definition at line 1350 of file aprps.cpp. 01351 { 01352 return TRUE; 01353 }
|
|
Definition at line 213 of file aprps.h. 00213 { m_Count -= Count; }
|
|
Function to declare a new tab.
Definition at line 1159 of file aprps.cpp. 01160 { 01161 if (pGIFAnimationProperty == NULL) return FALSE; 01162 01163 if (!pGIFAnimationProperty->Init()) 01164 { 01165 InformError(); 01166 return TRUE; 01167 } 01168 GIFAnimationPropertyTabsList.AddTail(pGIFAnimationProperty); 01169 01170 return TRUE; 01171 }
|
|
Destroy all the Tab objects.
Definition at line 1137 of file aprps.cpp. 01138 { 01139 // GIFAnimationPropertyTabs *pGIFAnimationProperty = NULL; 01140 01141 // Remove all the Tabs. 01142 GIFAnimationPropertyTabsList.DeleteAll(); 01143 01144 return; 01145 }
|
|
Definition at line 223 of file aprps.h. 00223 { return m_ApplyNow; }
|
|
Implements PropertyTabs. Definition at line 1253 of file aprps.cpp. 01254 { 01255 return m_ApplyNow; 01256 }
|
|
Definition at line 219 of file aprps.h. 00219 { return m_BrowserPreviewTab; }
|
|
Definition at line 214 of file aprps.h. 00214 { return m_Count; }
|
|
Definition at line 222 of file aprps.h. 00222 { return m_CurrentApplyNow; }
|
|
Definition at line 1218 of file aprps.cpp. 01219 { 01220 return (GIFAnimationPropertyTabs *) GIFAnimationPropertyTabsList.GetHead(); 01221 }
|
|
Definition at line 227 of file aprps.h. 00227 { return m_FrameDelayValueChanged; }
|
|
Definition at line 229 of file aprps.h. 00229 { return m_IgnoreTextChangeMsg; }
|
|
Definition at line 217 of file aprps.h. 00217 { return m_IncludeFramePropertiesTab; }
|
|
Implements PropertyTabs. Definition at line 1294 of file aprps.cpp. 01295 { 01296 return m_InitMessage; 01297 }
|
|
Definition at line 1235 of file aprps.cpp. 01236 { 01237 return (GIFAnimationPropertyTabs *) GIFAnimationPropertyTabsList.GetNext(pGIFAnimationPropertyTabs); 01238 }
|
|
Implements PropertyTabs. Reimplemented in FramePropertiesTab, AnimationPropertiesTab, AnimationColoursTab, and PreviewInBrowserTab. Definition at line 1333 of file aprps.cpp.
|
|
Let the base class know where the dialog box handling class is.
Implements PropertyTabs. Definition at line 1184 of file aprps.cpp. 01185 { 01186 // return a pointer to the main dialog box. 01187 return GIFAnimationPropertyTabs::pPropertiesDlg; 01188 }
|
|
Handles all the messages for this property tab.
Implements PropertyTabs. Reimplemented in FramePropertiesTab, AnimationPropertiesTab, AnimationColoursTab, and PreviewInBrowserTab. Definition at line 1368 of file aprps.cpp. 01369 { 01370 return TRUE; 01371 }
|
|
Definition at line 212 of file aprps.h. 00212 { m_Count += Count; }
|
|
Reimplemented from PropertyTabs. Reimplemented in FramePropertiesTab, AnimationPropertiesTab, AnimationColoursTab, and PreviewInBrowserTab. Definition at line 1042 of file aprps.cpp. 01043 { 01044 // Do nothing for now. 01045 return TRUE; 01046 }
|
|
Scans all GIFAnimationPropertyTabs to find out which Tabs are available, creates and holds them in a list.
Definition at line 1079 of file aprps.cpp. 01080 { 01081 //Find the Tabs. 01082 GIFAnimationPropertyTabs *pGIFAnimationProperty = NULL; 01083 01084 ADD_LAYERPROPERTY(FramePropertiesTab) // Frame Properties tab 01085 ADD_LAYERPROPERTY(AnimationColoursTab) // Animation colours tab. 01086 ADD_LAYERPROPERTY(AnimationPropertiesTab) // Animation properties tab 01087 ADD_LAYERPROPERTY(PreviewInBrowserTab) // Preview in Browser tab. 01088 /* 01089 // Loop variable. 01090 INT32 i = 0; 01091 01092 // Go through the tabs declared to the system 01093 pGIFAnimationProperty = GIFAnimationPropertyTabs::GetFirst(); 01094 01095 while (pGIFAnimationProperty != NULL) 01096 { 01097 // Include the tab only if it is a document based option. 01098 if ( pGIFAnimationProperty->IsPropertyRequired() ) 01099 { 01100 switch (pGIFAnimationProperty->GetPageID()) 01101 { 01102 case _R(IDD_TAB_FRAME_PROPERTIES): 01103 FramePropertiesTabNumber = i; 01104 break; 01105 01106 case _R(IDD_TAB_ANIMATION_PROPERTIES): 01107 AnimationPropertiesTabNumber = i; 01108 break; 01109 01110 case _R(IDD_TAB_ANIMATION_COLOURS): 01111 AnimationColoursTabNumber = i; 01112 break; 01113 01114 case _R(IDD_TAB_PREVIEW_IN_BROWSER): 01115 PreviewInBrowserTabNumber = i; 01116 break; 01117 } 01118 i++ ; 01119 } 01120 // Get the next tab. 01121 pGIFAnimationProperty = GIFAnimationPropertyTabs::GetNext(pGIFAnimationProperty); 01122 } 01123 */ 01124 return TRUE; 01125 }
|
|
Implements PropertyTabs. Reimplemented in FramePropertiesTab, AnimationPropertiesTab, AnimationColoursTab, and PreviewInBrowserTab. Definition at line 1385 of file aprps.cpp. 01386 { 01387 return TRUE; 01388 }
|
|
Definition at line 1403 of file aprps.cpp. 01404 { 01405 BOOL NumOfLayers = 0; // The number of frame layers in the current sperad. 01406 INT32 i = 0; // loop variable. 01407 BOOL SameDelayValues = TRUE; // Flag to indicate whether all the frame layer delay values are the same. 01408 Layer* pLayer = NULL; // Ptr to the frame/active layer. 01409 m_NoFrameLayers = FALSE; 01410 01411 // Get a ptr to the first frame layer. 01412 pLayer = pSpread->FindFirstFrameLayer(); 01413 01414 // Check for a NULL ptr. 01415 if(!pLayer) 01416 { 01417 // If this is a new default document, then a NULL frame layer will be returned. 01418 // In that case get a ptr to the first layer. 01419 pLayer = pSpread->FindFirstLayer(); 01420 01421 // Again, check for a NULL ptr. 01422 if(!pLayer) 01423 return FALSE; 01424 else 01425 m_NoFrameLayers = TRUE; // At this moment there are no frame layers. 01426 } 01427 01428 // How many frame layers do we have. 01429 while (pLayer) 01430 { 01431 // How many layers do we have? 01432 if(m_NoFrameLayers) 01433 { 01434 pLayer = pLayer->FindNextLayer(); 01435 NumOfLayers++; 01436 } 01437 else 01438 { 01439 // How many frame layers do we have? 01440 pLayer = pLayer->FindNextFrameLayer(); 01441 01442 NumOfLayers++; 01443 } 01444 } 01445 01446 // If there is a single layer, then return TRUE, since then there is only a single delay value. 01447 if(NumOfLayers == 1) 01448 return TRUE; 01449 01450 // Create a temporary buffer to store all the layer delay values. 01451 DWORD *pDelay = new DWORD[NumOfLayers]; 01452 01453 // Error check. 01454 if(!pDelay) 01455 return FALSE; // Failed to allocate the memory. 01456 01457 // If there are frame layers, get the first frame layer. 01458 if(!m_NoFrameLayers) 01459 pLayer = pSpread->FindFirstFrameLayer(); 01460 else 01461 pLayer = pSpread->FindFirstLayer(); 01462 01463 // Error check. 01464 if(!pLayer) 01465 return FALSE; // Failed to allocate the memory. 01466 01467 // In the buffer make a note of all the frame layer delay values. 01468 while (pLayer) 01469 { 01470 // Get the delay value for this layer. 01471 pDelay[i++] = pLayer->GetFrameDelay(); 01472 01473 // If there are frame layers, get the next frame layer. 01474 if(!m_NoFrameLayers) 01475 pLayer = pLayer->FindNextFrameLayer(); 01476 else 01477 pLayer = pLayer->FindNextLayer(); 01478 } 01479 01480 // Compare all the frame layer delay values. 01481 for(i=0; i<NumOfLayers; i++) 01482 { 01483 for(INT32 n=0; n<NumOfLayers; n++) 01484 { 01485 if (pDelay[i] != pDelay[n]) 01486 { 01487 // If the delay values differ, set this flag to false. 01488 SameDelayValues = FALSE; 01489 } 01490 } 01491 } 01492 // Delete the buffer. 01493 delete [] pDelay; 01494 01495 // Return the flag value. 01496 return SameDelayValues; 01497 }
|
|
Allows the setting of a new ApplyNow state.
Implements PropertyTabs. Definition at line 1271 of file aprps.cpp. 01272 { 01273 //BOOL OldState = m_ApplyNow; // Note current old state. 01274 01275 if (!m_InitMessage) 01276 m_ApplyNow = NewState; // Set up the required new state. 01277 01278 //return OldState; // return old state. 01279 return m_ApplyNow; 01280 }
|
|
Definition at line 218 of file aprps.h. 00218 { m_BrowserPreviewTab = Val; }
|
|
Definition at line 225 of file aprps.h. 00225 { m_ChangeLayerState = Val; }
|
|
Definition at line 221 of file aprps.h. 00221 { m_CurrentApplyNow = Val; }
|
|
Definition at line 226 of file aprps.h. 00226 { m_FrameDelayValueChanged = Val; }
|
|
Definition at line 224 of file aprps.h. 00224 { m_FrameGalleryOpen = Val; }
|
|
Definition at line 228 of file aprps.h. 00228 { m_IgnoreTextChangeMsg = Val; }
|
|
Definition at line 216 of file aprps.h. 00216 { m_IncludeFramePropertiesTab = Val; }
|
|
Allows the setting of a new InitMessage state.
Implements PropertyTabs. Definition at line 1312 of file aprps.cpp. 01313 { 01314 BOOL OldState = m_InitMessage; // Note current old state. 01315 01316 m_InitMessage = NewState; // Set up the required new state. 01317 01318 return OldState; // Return the old state. 01319 }
|
|
Definition at line 1200 of file aprps.cpp. 01201 { 01202 // Return a pointer to the main dialog box. 01203 pPropertiesDlg = pDlg; 01204 01205 return TRUE; 01206 }
|
|
Reimplemented in FramePropertiesTab, AnimationPropertiesTab, AnimationColoursTab, and PreviewInBrowserTab. Definition at line 220 of file aprps.h. 00220 { return TRUE; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|