Public Types | Public Member Functions | Protected Member Functions

SettingsMenu Struct Reference

Settings sub-startmenu. More...

#include <startmenu.h>

Inheritance diagram for SettingsMenu:
Inheritance graph
[legend]
Collaboration diagram for SettingsMenu:
Collaboration graph
[legend]

List of all members.

Public Types

typedef StartMenuHandler super

Public Member Functions

 SettingsMenu (HWND hwnd, const StartMenuCreateInfo &create_info)

Protected Member Functions

virtual void AddEntries ()

Detailed Description

Settings sub-startmenu.

Definition at line 393 of file startmenu.h.


Member Typedef Documentation

Reimplemented from StartMenuHandler.

Definition at line 395 of file startmenu.h.


Constructor & Destructor Documentation

SettingsMenu::SettingsMenu ( HWND  hwnd,
const StartMenuCreateInfo create_info 
) [inline]

Definition at line 397 of file startmenu.h.

     :  super(hwnd, create_info)
    {
    }

Member Function Documentation

void SettingsMenu::AddEntries (  ) [protected, virtual]

Reimplemented from StartMenu.

Definition at line 2160 of file startmenu.cpp.

References StartMenu::AddButton(), StartMenu::AddEntries(), g_Globals, ICID_ADMIN, ICID_CONFIG, ICID_CONTROLPAN, ICID_DESKSETTING, ICID_NETCONNS, ICID_NETWORK, ICID_PRINTER, ID_DESKTOPBAR_SETTINGS, IDC_ADMIN, IDC_CONNECTIONS, IDC_CONTROL_PANEL, IDC_PRINTERS, IDC_SETTINGS_MENU, IDS_ADMIN, IDS_CONNECTIONS, IDS_CONTROL_PANEL, IDS_DESKTOPBAR_SETTINGS, IDS_PRINTERS, and IDS_SETTINGS_MENU.

{
    super::AddEntries();

#if defined(ROSSHELL) || defined(__REACTOS__)   // __REACTOS__ to be removed when printer/network will be implemented
//TODO  AddButton(ResString(IDS_PRINTERS),          ICID_PRINTER, false, IDC_PRINTERS_MENU);
    AddButton(ResString(IDS_CONNECTIONS),       ICID_NETWORK, false, IDC_CONNECTIONS);
#else
//TODO  AddButton(ResString(IDS_PRINTERS),          ICID_PRINTER, true, IDC_PRINTERS_MENU);
    AddButton(ResString(IDS_CONNECTIONS),       ICID_NETCONNS, false, IDC_CONNECTIONS);
#endif
    AddButton(ResString(IDS_ADMIN),             ICID_ADMIN, true, IDC_ADMIN);

#ifndef __MINGW32__ // SHRestricted() missing in MinGW (as of 29.10.2003)
    if (!g_Globals._SHRestricted || !SHRestricted(REST_NOCONTROLPANEL))
#endif
    AddButton(ResString(IDS_SETTINGS_MENU), ICID_CONFIG, true, IDC_SETTINGS_MENU);

    AddButton(ResString(IDS_DESKTOPBAR_SETTINGS), ICID_DESKSETTING, false, ID_DESKTOPBAR_SETTINGS);

    AddButton(ResString(IDS_PRINTERS),          ICID_PRINTER, false, IDC_PRINTERS);

#ifndef __MINGW32__ // SHRestricted() missing in MinGW (as of 29.10.2003)
    if (!g_Globals._SHRestricted || !SHRestricted(REST_NOCONTROLPANEL))
#endif
        AddButton(ResString(IDS_CONTROL_PANEL), ICID_CONTROLPAN, false, IDC_CONTROL_PANEL);
}

Here is the call graph for this function:


The documentation for this struct was generated from the following files:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage