#include <layerprp.h>
Inheritance diagram for LayerPropertyTabs:
Public Member Functions | |
LayerPropertyTabs () | |
Constructor. | |
virtual BOOL | Init () |
Initialiser. | |
virtual BOOL | GetApplyNowState () |
Finds out the current state of the apply now button. | |
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 () |
Finds out whether we are sending/handling an init message or not. | |
virtual CDlgResID | GetPageID () |
Allows the options dialog code to determine the dialog ID of this section. Baseclass version, needs overriding by the tab handlers. | |
virtual BOOL | InitSection () |
Sets initial values for this tab on the layer properties dialog box. Baseclass version, needs overriding by the tab handlers. | |
virtual BOOL | CommitSection () |
Takes the values in this tab of the layer properties dialog box. Called when ok or apply now is pressed on the main dialog box. Baseclass version, needs overriding by the tab handlers. | |
virtual BOOL | HandleMsg (DialogMsg *Msg) |
Handles all the messages for this layer property tab Baseclass version, needs overriding by the tab handlers. | |
virtual DialogTabOp * | GetTabbedDlg () |
Let the base class know what/where the dialog box handling class is. | |
Static Public Member Functions | |
static BOOL | InitLayerPropertyTabs () |
Scans all LayerPropertyTabs to find out which LayerPropertyTabs are available for use, and instantiates one of each, and holds them in a list. | |
static BOOL | DeinitLayerPropertyTabs () |
Destroy all the LayerProperty objects. | |
static LayerPropertyTabs * | GetFirst () |
Iterating through the list of LayerPropertyTabs known to Camelot. This function returns the first LayerPropertyTabs. | |
static LayerPropertyTabs * | GetNext (LayerPropertyTabs *) |
Iterating through the list of LayerPropertyTabs known to Camelot. This function returns the next LayerPropertyTabs. | |
static BOOL | DeclareLayerProperty (LayerPropertyTabs *pLayerProperty) |
A function to declare a new tab to the system. | |
static BOOL | SetTabbedDlg (DialogTabOp *pDlg) |
Let the base class know what/where the dialog box handling class is. | |
Static Public Attributes | |
static UINT32 | LayersTabNumber = 0 |
static UINT32 | GuidesTabNumber = 0 |
Static Protected Attributes | |
static DialogTabOp * | pPropertiesDlg = NULL |
Private Member Functions | |
CC_DECLARE_DYNAMIC (LayerPropertyTabs) | |
Private Attributes | |
BOOL | InitMessage |
BOOL | ApplyNow |
Static Private Attributes | |
static List | LayerPropertyTabsList |
Definition at line 251 of file layerprp.h.
|
Constructor.
Definition at line 1234 of file layerprp.cpp. 01235 { 01236 // Ensure our link to the application options dialog box is set to a good default. 01237 pPropertiesDlg = NULL; 01238 01239 ApplyNow = FALSE; 01240 InitMessage = FALSE; 01241 }
|
|
|
|
Takes the values in this tab of the layer properties dialog box. Called when ok or apply now is pressed on the main dialog box. Baseclass version, needs overriding by the tab handlers.
Implements PropertyTabs. Reimplemented in GuidesPropertiesTab, and LayerPropertiesTab. Definition at line 1606 of file layerprp.cpp. 01607 { 01608 return TRUE; 01609 }
|
|
A function to declare a new tab to the system.
Definition at line 1378 of file layerprp.cpp. 01379 { 01380 // First check to see if somebody has actually declared the pointer to be non null. 01381 if (pLayerProperty == NULL) return FALSE; 01382 01383 if (!pLayerProperty->Init()) 01384 { 01385 /* Error occured - report it and stop trying to initialise the options tab. */ 01386 InformError(); 01387 return TRUE; 01388 } 01389 LayerPropertyTabsList.AddTail(pLayerProperty); 01390 01391 // All ok 01392 return TRUE; 01393 }
|
|
Destroy all the LayerProperty objects.
Definition at line 1354 of file layerprp.cpp. 01355 { 01356 // LayerPropertyTabs *pLayerProperty = NULL; 01357 01358 // Now, we can get rid of our LayerPropertyTabs 01359 LayerPropertyTabsList.DeleteAll(); 01360 01361 // All ok 01362 return TRUE; 01363 }
|
|
Finds out the current state of the apply now button.
Implements PropertyTabs. Definition at line 1492 of file layerprp.cpp. 01493 { 01494 return ApplyNow; 01495 }
|
|
Iterating through the list of LayerPropertyTabs known to Camelot. This function returns the first LayerPropertyTabs.
Definition at line 1451 of file layerprp.cpp. 01452 { 01453 return (LayerPropertyTabs *) LayerPropertyTabsList.GetHead(); 01454 }
|
|
Finds out whether we are sending/handling an init message or not.
Implements PropertyTabs. Definition at line 1540 of file layerprp.cpp. 01541 { 01542 return InitMessage; 01543 }
|
|
Iterating through the list of LayerPropertyTabs known to Camelot. This function returns the next LayerPropertyTabs.
Definition at line 1471 of file layerprp.cpp. 01472 { 01473 return (LayerPropertyTabs *) LayerPropertyTabsList.GetNext(pLayerPropertyTabs); 01474 }
|
|
Allows the options dialog code to determine the dialog ID of this section. Baseclass version, needs overriding by the tab handlers.
Implements PropertyTabs. Reimplemented in GuidesPropertiesTab, and LayerPropertiesTab. Definition at line 1584 of file layerprp.cpp.
|
|
Let the base class know what/where the dialog box handling class is.
Implements PropertyTabs. Definition at line 1409 of file layerprp.cpp. 01410 { 01411 // returns a pointer to the main dialog box used by this code 01412 return LayerPropertyTabs::pPropertiesDlg; 01413 }
|
|
Handles all the messages for this layer property tab Baseclass version, needs overriding by the tab handlers.
Implements PropertyTabs. Reimplemented in GuidesPropertiesTab, and LayerPropertiesTab. Definition at line 1627 of file layerprp.cpp. 01628 { 01629 return TRUE; 01630 }
|
|
Initialiser.
Reimplemented from PropertyTabs. Reimplemented in GuidesPropertiesTab, and LayerPropertiesTab. Definition at line 1256 of file layerprp.cpp. 01257 { 01258 // Do nothing for now. 01259 return TRUE; 01260 }
|
|
Scans all LayerPropertyTabs to find out which LayerPropertyTabs are available for use, and instantiates one of each, and holds them in a list.
Definition at line 1300 of file layerprp.cpp. 01301 { 01302 // Find the LayerPropertyTabs - the kernel ones are hard-wired. 01303 LayerPropertyTabs *pLayerProperty = NULL; 01304 01305 // Create, initialise and install the built in LayerPropertyTabs list 01306 ADD_LAYERPROPERTY(LayerPropertiesTab) // Layer 01307 #ifndef WEBSTER 01308 ADD_LAYERPROPERTY(GuidesPropertiesTab) // Guide lines 01309 #endif // WEBSTER 01310 01311 // We must work out what the units tab number is when used in document mode so 01312 // that we can skip to it directly when using the units button on the tool bar. 01313 INT32 i = 0; 01314 01315 // Now go through all the tabs declared to the system 01316 pLayerProperty = LayerPropertyTabs::GetFirst(); 01317 01318 while (pLayerProperty != NULL) 01319 { 01320 // Only include the tab if it is a document based option 01321 if ( pLayerProperty->IsPropertyRequired() ) 01322 { 01323 if (pLayerProperty->GetPageID() == _R(IDD_TAB_LAYER_PROPERTIES)) 01324 { 01325 LayersTabNumber = i; // note that tab number 01326 } 01327 else if (pLayerProperty->GetPageID() == _R(IDD_TAB_GUIDELINE_PROPERTIES)) 01328 { 01329 GuidesTabNumber = i; // note that tab number 01330 } 01331 01332 i += 1; // increment the counter 01333 } 01334 01335 // Get the next option's tab. 01336 pLayerProperty = LayerPropertyTabs::GetNext(pLayerProperty); 01337 } 01338 01339 // All ok 01340 return TRUE; 01341 }
|
|
Sets initial values for this tab on the layer properties dialog box. Baseclass version, needs overriding by the tab handlers.
Implements PropertyTabs. Reimplemented in GuidesPropertiesTab, and LayerPropertiesTab. Definition at line 1647 of file layerprp.cpp. 01648 { 01649 return TRUE; 01650 }
|
|
Allows the setting of a new ApplyNow state.
Implements PropertyTabs. Definition at line 1512 of file layerprp.cpp. 01513 { 01514 BOOL OldState = ApplyNow; // note current old state 01515 // Only make the change if we are not in an init message state. As otherwise, when we 01516 // do an init, we will be sent a message to say a control has been changed and then 01517 // try to set the ApplyNow TRUE and hence then try to ungrey the ApplyNow button when 01518 // we shouldn't. 01519 if (!InitMessage) 01520 ApplyNow = NewState; // Set up the required new state 01521 01522 return OldState; // return old state to the caller 01523 }
|
|
Allows the setting of a new InitMessage state.
Implements PropertyTabs. Definition at line 1560 of file layerprp.cpp. 01561 { 01562 BOOL OldState = InitMessage; // note current old state 01563 InitMessage = NewState; // Set up the required new state 01564 01565 return OldState; // return old state to the caller 01566 }
|
|
Let the base class know what/where the dialog box handling class is.
Definition at line 1429 of file layerprp.cpp. 01430 { 01431 // returns a pointer to the main dialog box used by this code 01432 pPropertiesDlg = pDlg; 01433 01434 return TRUE; 01435 }
|
|
Definition at line 296 of file layerprp.h. |
|
Definition at line 285 of file layerprp.h. |
|
Definition at line 295 of file layerprp.h. |
|
Definition at line 299 of file layerprp.h. |
|
Definition at line 284 of file layerprp.h. |
|
Definition at line 292 of file layerprp.h. |