Results 1 to 3 of 3

Thread: How to populate dialogbox when multiple help occurs for particular index!

  1. #1
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question How to populate dialogbox when multiple help occurs for particular index!

    Hi All!
    I am creating help for my application in this I am using QAssistantClient. I want to open a Dialog Box when index value have a more than one help for particular index value. What can I do for populating dialog box and linking its value to corresponding html files.
    Qt Code:
    1. QAssistantClient *assistantClient;
    2. QAction *assistantAct;
    3. QAction *exitAct;
    4. QAction *aboutQtAct;
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. void initializeAssistant()
    2. {
    3. assistantClient = new QAssistantClient(QLibraryInfo::location(QLibraryInfo::BinariesPath), this);
    4.  
    5. QStringList arguments;
    6. arguments << "-profile" << QString("Help") + QDir::separator() + QString("VistaHelp.adp");
    7. assistantClient->setArguments(arguments);
    8. }
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. void createActions()
    2. {
    3. assistantAct = new QAction(tr("Help Contents"), this);
    4. assistantAct->setShortcut(tr("F1"));
    5. connect(assistantAct, SIGNAL(triggered()), this, SLOT(assistant()));
    6. exitAct = new QAction(tr("E&xit"), this);
    7. exitAct->setShortcut(tr("Ctrl+Q"));
    8. connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
    9. aboutQtAct = new QAction(tr("About &Qt"), this);
    10. connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
    11. }
    To copy to clipboard, switch view to plain text mode 

    I am creating VistaHelp.adf file like this;
    Qt Code:
    1. <!DOCTYPE DCF>
    2.  
    3. <assistantconfig version="3.2.0">
    4.  
    5. <profile>
    6. <property name="name">vistaPenguinHelp</property>
    7. <property name="title">VistaPenguin Help</property>
    8. <property name="applicationicon">images/handbook.png</property>
    9. <property name="startpage">/root/Desktop/Help/Images/index.html</property>
    10. <property name="aboutmenutext">About Simple Text Viewer</property>
    11. <property name="abouturl">about.txt</property>
    12. <property name="assistantdocs">.</property>
    13. </profile>
    14.  
    15. <DCF ref="index.html" icon="images/handbook.png" title="Getting Started">
    16. <section ref="./findfile.html" title="Vista Home Page">
    17.  
    18. <keyword ref="../Help/help/createplaylist.html">Add</keyword>
    19. <keyword ref="/root/Desktop/Help/help/usermanager.html">Administrator</keyword>
    20. <keyword ref="/root/Desktop/Help/help/usermanager.html">Advance</keyword>
    21. <keyword ref="./findfile.html">Antena</keyword>
    22. <keyword ref="./filedialog.html">Browse</keyword>
    23. <keyword ref="./filedialog.html">Change Password</keyword>
    24. <keyword ref="./wildcardmatching.html">Composite</keyword>
    25. <keyword ref="/root/Desktop/Schedule/Help/help/createplaylist.html">Create Playlist</keyword>
    26. <keyword ref="./wildcardmatching.html">Delete</keyword>
    27. <keyword ref="./browse.html">Duplicate</keyword>
    28. <keyword ref="./browse.html">Editing</keyword>
    29. <keyword ref="./openfile.html">Hardware</keyword>
    30. <keyword ref="./openfile.html">HTML</keyword>
    31. <keyword ref="./index.html">Install</keyword>
    32. <keyword ref="/root/Desktop/Schedule/Help/help/layout.html">Layout Manager</keyword>
    33. <keyword ref="/root/Desktop/Schedule/Help/help/helpmanual/tv.html">Live Audio Video</keyword>
    34. <keyword ref="./index.html">Login Window</keyword>
    35. <keyword ref="./index.html">Main Window</keyword>
    36. <keyword ref="./index.html">Media</keyword>
    37. <keyword ref="./index.html">New</keyword>
    38. <keyword ref="./index.html">NTSE</keyword>
    39. <keyword ref="./index.html">PAL</keyword>
    40. <keyword ref="./index.html">Password</keyword>
    41. <keyword ref="./index.html">Play</keyword>
    42. <keyword ref="./index.html">Play time</keyword>
    43. <keyword ref="./index.html">Preview</keyword>
    44. <keyword ref="./index.html">Remove</keyword>
    45. <keyword ref="./index.html">Schedule Playlist</keyword>
    46. <keyword ref="./index.html">Scheduling</keyword>
    47. <keyword ref="./index.html">Screen</keyword>
    48. <keyword ref="./index.html">Search</keyword>
    49. <keyword ref="./index.html">Select All</keyword>
    50. <keyword ref="./index.html">Software</keyword>
    51. <keyword ref="./index.html">Sort</keyword>
    52. <keyword ref="./index.html">Standard</keyword>
    53. <keyword ref="./index.html">Template</keyword>
    54. <keyword ref="./index.html">TV-Tunner</keyword>
    55. <keyword ref="./index.html">Uninstall</keyword>
    56. <keyword ref="/root/Desktop/Help/help/upload.html">Upload Contents</keyword>
    57. <keyword ref="./index.html">URL</keyword>
    58. <keyword ref="./index.html">User Manager</keyword>
    59. </section>
    60. </DCF>
    61.  
    62. <DCF ref="index.html" icon="images/handbook.png" title="Installing VistaPenguing">
    63. <section ref="./findfile.html" title="Hardware and Software Requiremens">
    64. </section>
    65. <section ref="./findfile.html" title="Prepare and Installing Vista">
    66. </section>
    67. </DCF>
    68.  
    69. <DCF ref="index.html" icon="images/handbook.png" title="Using VistaPenguin SE-DSS">
    70. <section ref="./findfile.html" title="Starting VistaPenguin SE-DSS">
    71. </section>
    72. <section ref="./findfile.html" title="Step by Step guide">
    73. <section ref="./filedialog.html" title="Step 1 - Upload Contents" />
    74. <section ref="./wildcardmatching.html" title="Step 2 - Create Playlist" />
    75. <section ref="./browse.html" title="Step 3 - Schedule Playlist" />
    76. </section>
    77. </DCF>
    78.  
    79. <DCF ref="index.html" icon="images/handbook.png" title="Administration">
    80. <section ref="./findfile.html" title="UserManagement">
    81. <section ref="./wildcardmatching.html" title="Managing Users" />
    82. <section ref="./browse.html" title="Changing Password" />
    83. </section>
    84. <section ref="./findfile.html" title="Screen Layout Management">
    85. <section ref="./wildcardmatching.html" title="Managing Screen Templates" />
    86. </section>
    87.  
    88. </DCF>
    89.  
    90.  
    91. </assistantconfig>
    To copy to clipboard, switch view to plain text mode 
    Thanks in advance!
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to populate dialogbox when multiple help occurs for particular index!

    What is the contents of assistant() ?

  3. #3
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to populate dialogbox when multiple help occurs for particular index!

    Quote Originally Posted by wysota View Post
    What is the contents of assistant() ?
    Dear Sir!
    Like Qt Assistant when we look for hide help a choose a Topic dialog will be opened. How to acheive same thing in my help assistant.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.