memory management debugging and error checking

Cross-Platform GUI Programming with wxWidgets docx

Cross-Platform GUI Programming with wxWidgets docx

Ngày tải lên : 17/03/2014, 13:20
... 411 15 Memory Management, Debugging, and Error Checking 413 Memory Management Basics 413 Creating and Deleting Window Objects ... streams; memory and string streams; data streams; socket streams; filter streams; zip streams; virtual file systems Chapter 15: Memory Management, Debugging, and Error Checking Creating and deleting ... outline of program flow Chapter 3: Event Handling Event tables and handlers; how a button click is processed; skipping events; pluggable and dynamic event handlers; defining custom events; window...
  • 744
  • 2K
  • 0
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P2

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P2

Ngày tải lên : 17/10/2013, 19:15
... appears You can have some script execute when you show and/ or hide the pop up by using the onpopupshowing and onpopuphiding methods, as when you show and hide items in a dynamic menu The second step ... items like menus and buttons 3.4 Tabular and Hierarchical Information Many options exist to display hierarchical information in your user interface The most common are tree-like and table-like ... boxes, trees, and grids With the exception of the tree, these elements are not limited in regard to the content they can contain Currently, the tree only holds text and image content and grids are...
  • 12
  • 381
  • 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P3

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P3

Ngày tải lên : 20/10/2013, 09:15
... when the view is expanded and collapsed setCellText (row, colID, value) Called when the contents of the cell have been edited performAction (action) An event from a set of commands can be invoked ... to be defined and placed in a set In Example 3-12, the first column holds the labels and the second contains the text boxes These two columns are horizontal to each other and in rows ... Text Display Three tags available in XUL handle basic text display in the UI, and each has its own context for use They include a , a , and a element The caption is...
  • 14
  • 378
  • 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P4

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P4

Ngày tải lên : 20/10/2013, 09:15
... ... has a command set that has its own commands and that pulls in a second set defined elsewhere (moreEditItems)
  • 16
  • 391
  • 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P5

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P5

Ngày tải lên : 24/10/2013, 08:15
... splitter changes when a user handles the and collapses the splitter, for example, and then quits the persist attribute preserves the splitter state and its visibility for the next ... and These two elements create space between widgets in a box and can be horizontal or vertical depending on the orientation of the box The separator is a visible divider and the ... flicker and UI wobbles when content is being shown and hidden intermittently 3.9.3.2 Overflow A value of scroll or auto for the CSS overflow property ensures that a scrollbar appears and that...
  • 15
  • 373
  • 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P6

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P6

Ngày tải lên : 24/10/2013, 08:15
... Print, and Open Notes [1] Chapter has more information on RDF datasources To delve deeper into the chrome layout and install issues, see Chapter 3.12 The Extras Certain lesser-known elements and ... simple, and the locator is href 3.13 Building the Application Shell Now that the main XUL widgets and some crucial concepts like the box model have been described, you can bring things together and ... abbreviated help and the display of values that are otherwise obscured in the UI In the Mozilla application, the most common places where they are used are on toolbar buttons and splitter grippies...
  • 19
  • 367
  • 1
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P1

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P1

Ngày tải lên : 28/10/2013, 15:15
... cannot be manipulated with a skin • The position and contents of menus and menu items and the functionality they trigger • The overall layout and functionality of buttons • The general layout ... files like xul.css describe the look and feel of common UI elements such as buttons and menus, and higher-level CSS files consistently describe the layout and stylistic details of a component ... sophisticated images and mock-ups) The creators of the Modern and Classic themes lots of visualization of the themes in image editing software and go through several iterations of testing and feedback...
  • 18
  • 337
  • 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P2

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P2

Ngày tải lên : 28/10/2013, 15:15
... border, padding, and margin Though they work together a lot and often affect or overlap one another, these properties specify different things, as Table 4-2 shows Table 4-2 CSS spacing and layout properties ... editor whose -moz-smiley attribute is set to s1 and styles them accordingly) Actually, you can use any value in that CSS keyword list Trial and error or a look in the C++ code will reveal what ... look as it is clicked to create dynamism and provide feedback to the user Example 4-4 shows the following two style statements handle the regular and active or depressed states, respectively...
  • 16
  • 334
  • 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P3

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P3

Ngày tải lên : 07/11/2013, 09:15
... package and the CSS that applies to it is another single package Unlike the Mozilla browser, your application will probably have a single manifest and content subdirectory and a single manifest and ... interface: bookmarks, help, search, sidebar, and so on Example 4-7 shows the Modern and Classically themed Navigation bars side by side Figure 4-7 Classic and Modern Navigation toolbars Both themes ... such as navigator (See Chapter for more information about this file and about how themes and other packages are registered and applied in Mozilla.) This situation does not apply to new applications...
  • 13
  • 333
  • 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P4

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P4

Ngày tải lên : 07/11/2013, 09:15
... and JS are stored) sometimes holds a file called xul.css This file defines style information that is so fundamental to the way widgets are rendered more fundamental, even, then global.css and ... CSS for the xFly application Any style rules you add here and associated with XUL elements in the xFly XUL code will affect the layout and presentation of that code on restart 4.4.1 Importing ... recreate so much of the basic presentation and behavior of the XUL widgets As much as possible, the global skin avoids providing theme-specific styles, and instead provides just enough information...
  • 10
  • 297
  • 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P5

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P5

Ngày tải lên : 07/11/2013, 09:15
... of packages and installations) When you install new themes, however, those themes not have "script access" and have limited access to XBL bindings Code in the and structures ... create a skin and then install it as a new package, your skin will not be as limited, and you will have full access to XBL, XPConnect, and the script To see how to install an evil skin and other ... XBL also provides structures (such as the and child elements) in which you can define new XUL content, new JavaScript, and new XPConnected interfaces CSS glues the XUL together...
  • 12
  • 311
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P1 doc

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P1 doc

Ngày tải lên : 14/12/2013, 12:15
... nodes, create new UI and content, and remove elements as needed Because it is designed to access arbitrary HTML and XML, the DOM applies not only to XUL, but also to MathML, SVG, and other XML markup ... upcoming DOM Level standard 5.2.2 The DOM Standards and Mozilla The DOM specifications are split into different levels overseen by the W3C Each level provides its own features and Mozilla has varying, ... be standards-compliant, but typically reaches full support only when those standards have become recommendations rather than working drafts Currently, Level and Level are recommendations and Level...
  • 21
  • 333
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2 ppt

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2 ppt

Ngày tải lên : 14/12/2013, 12:15
... While the window and button events ... label="oncommand" oncommand="listElementHandlers(this);" /> The function you added in Example 5-4 is also an example of event handler code in an application's interface 5.3.2 Events and the Mozilla ... when to start and stop When the user clicks a XUL button, for instance, the button "listens" for the click event, and may also handle that event If the button itself does not handle the event...
  • 12
  • 384
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P3 docx

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P3 docx

Ngày tải lên : 14/12/2013, 12:15
... development increases and your applications grow new windows and components, you may become interested in passing data around and ensuring that the data remains in scope Misunderstanding that scope ... the result in your application code and fork accordingly 5.4 XPConnect and Scriptable Components At the second level of scripting, XPConnect binds JavaScript and the user interface to the application ... application code and services (i.e., the application's actual functionality) to be more than just a visual interface This is where XPConnect and XPCOM come in Browsing the Web, reading email, and parsing...
  • 10
  • 283
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P4 docx

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P4 docx

Ngày tải lên : 14/12/2013, 12:15
... xpcshell is the command-line interpreter to JavaScript and XPConnect This shell that uses XPConnect to call and instantiate scriptable XPCOM interfaces It is used primarily for debugging and testing ... using the File and FileUtils interfaces is that methods and properties on the latter are singleton and require a path argument, while the FileUtils utilities are general purpose and not bound ... components and interfaces in Mozilla and seeing how they are used can be useful when writing your own application The Mozilla Component Viewer is a great tool for discovering components and provides...
  • 22
  • 336
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P1 docx

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P1 docx

Ngày tải lên : 14/12/2013, 12:15
... script(s), and updating the package information that it maintains internally (storing this information using RDF) The relationship of the packaging, installation, and registration and all pieces ... the manifests and other necessary files Then the Installation section shows how you can put your package in a XPI file and create installation script(s) so it can be distributed and installed ... later The package manifests for content and new applications which may include new content, skin, and locale information have an identical syntax and a very similar structure, as you will...
  • 24
  • 358
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P2 ppt

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P2 ppt

Ngày tải lên : 14/12/2013, 12:15
... complicated, install scripts may set up and arrange target directories in more specific ways, more error checking, and include variables to make the code more readable and reusable, as seen in the longer ... privileges and which is always installed in a particular location, you can leave out the XPI and its internal installation script altogether and use a trigger script like Example 6-13 and a regular ... error code to track down what is happening For example, if you declare a constant variable twice in your install script, you will receive notification of an script error in the UI, and this error...
  • 23
  • 354
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P3 pdf

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P3 pdf

Ngày tải lên : 14/12/2013, 12:15
... method and its improvement 6.4 Finishing Things Up We dealt with the xFly example earlier in this chapter and then discussed general information about file formats, installation scripts, and xpinstall ... and mozicon50.xpm Many utilities, such as the GIMP, PaintShopPro, and Xview, can transform images from other common formats 6.5.1.3 Macintosh The Macintosh BNDL resource (OS icons for files and ... splash.xpm and is located in mozilla/xpfe/bootstrap Note that the splash display is turned off by default on this platform and can be displayed by using the -splash switch in a command shell /mozilla...
  • 15
  • 413
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1 pptx

Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1 pptx

Ngày tải lên : 14/12/2013, 12:15
... interface 7.1.3 Namespaces and XBL Because XBL is a binding language for other markup, remember to distinguish between the XBL markup (such as and ) and markup from another language ... self-contained, reusable, and generally have no dependencies outside of the binding itself Although XUL is used most often as content in an XBL binding, XBL can also bind to and from HTML and XML If you ... contain content as other markup (such as XUL) behavior that is represented as methods and properties, and event-handling capabilities Bindings can be anything from small widget objects to large,...
  • 17
  • 367
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P2 pptx

Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P2 pptx

Ngày tải lên : 14/12/2013, 12:15
... onmousedown, and provide a means for trapping them within your binding and carrying out tasks associated with them this.input.focus( ); ... tag, and each method can have or more parameters, which gather the values passed into the method when called 7.2.4 Handlers Handlers in XBL mimic regular document events like onclick and onmousedown, ... this.input.focus( ); Each handler is contained in a tag and the event name is placed in the event attribute minus the "on" prefix The handler in the code shown above places...
  • 11
  • 390
  • 0

Xem thêm