예제 #1
0
RVO_Buttons::RVO_Buttons() 
{
    // The menu descriptions of all buttons
    static const MFDBUTTONMENU mnu0[] =
    {
      {"Select Mode", 0, 'M'},
      {"Select Target", 0, 'T'},
      {"Next Dock Port", 0, 'P'},
      {"Select WP Dist", 0, 'D'},
      {"Select Units", 0, 'U'},
      {"HUD On/Off", 0, 'H'},
      {"AP Approach", 0, '1'},
      {"AP Rotate", 0, '2'},
      {"AP Translate", 0, '3'},
      {"AP Dump", 0, '4'},
      {"AP Calibrate", 0, '5'}
//      ,{"HUD Pers Params", 0, '6'}
    };

    RegisterPage(mnu0, sizeof(mnu0) / sizeof(MFDBUTTONMENU));

    RegisterFunction("MOD", OAPI_KEY_M, &RV_Orientation::Button_MOD);
    RegisterFunction("TGT", OAPI_KEY_T, &RV_Orientation::Button_TGT);
    RegisterFunction("PRT", OAPI_KEY_P, &RV_Orientation::Button_PRT);
    RegisterFunction("DST", OAPI_KEY_D, &RV_Orientation::Button_DST);
    RegisterFunction("UNT", OAPI_KEY_U, &RV_Orientation::Button_UNT);
    RegisterFunction("HUD", OAPI_KEY_H, &RV_Orientation::Button_HUD);
    RegisterFunction("APP", OAPI_KEY_1, &RV_Orientation::Button_APP);
    RegisterFunction("APR", OAPI_KEY_2, &RV_Orientation::Button_APR);
    RegisterFunction("APT", OAPI_KEY_3, &RV_Orientation::Button_APT);
    RegisterFunction("APD", OAPI_KEY_4, &RV_Orientation::Button_APD);
    RegisterFunction("APC", OAPI_KEY_5, &RV_Orientation::Button_APC);
//    RegisterFunction("HPP", OAPI_KEY_6, &RV_Orientation::Button_HPP);


    static const MFDBUTTONMENU mnu1[] =
    {
      {"Return", 0, 'K'}
    };

    RegisterPage(mnu1, sizeof(mnu1) / sizeof(MFDBUTTONMENU));

    RegisterFunction("OK", OAPI_KEY_K, &RV_Orientation::Button_OK);

    static const MFDBUTTONMENU mnu2[] = {{}};   // Used in Calibration Mode

    RegisterPage(mnu2, sizeof(mnu2) / sizeof(MFDBUTTONMENU));

    static const MFDBUTTONMENU mnu3[] =
    {
      {"Cancel", 0, 'C'},
      {"Override", 0, 'O'},
    };

    RegisterPage(mnu3, sizeof(mnu3) / sizeof(MFDBUTTONMENU));

    RegisterFunction("CAN", OAPI_KEY_C, &RV_Orientation::Button_CAN);
    RegisterFunction("OVR", OAPI_KEY_O, &RV_Orientation::Button_OVR);

    static const MFDBUTTONMENU mnu4[] =
    {
      {"Go", 0, 'G'},
    };

    RegisterPage(mnu4, sizeof(mnu4) / sizeof(MFDBUTTONMENU));

    RegisterFunction("GO", OAPI_KEY_G, &RV_Orientation::Button_GO);

    return;
}
** $QT_END_LICENSE$
**
****************************************************************************/

#include <QtGui>

#include "licensewizard.h"

//! [0] //! [1] //! [2]
# class LicenseWizard
def __init__(self, parent)
    QWizard(self, parent)
//! [0]
    self.setPage(self.Page_Intro, IntroPage())
    self.setPage(self.Page_Evaluate, EvaluatePage())
    self.setPage(self.Page_Register, RegisterPage())
    self.setPage(self.Page_Details, DetailsPage())
    self.setPage(self.Page_Conclusion, ConclusionPage())
//! [1]

    self.setStartId(self.Page_Intro);
//! [2]

//! [3]

//! [3] //! [4]
    self.setWizardStyle(QWizard.ModernStyle);

//! [4] //! [5]
    self.setOption(HaveHelpButton, True);
//! [5] //! [6]
예제 #3
0
OSO_Buttons::OSO_Buttons() 
{
    // Base menu descriptions
    static const MFDBUTTONMENU mnu0[] =
    {
      {"Tethered Tgt", 0, '1'},
      {"Free Tgt", 0, '2'},
      {"Set Units", 0, 'U'},
      {"Set Distance", 0, 'D'},
      {"Request PYR Ofs", 0, 'P'},
      {"Request XYZ Ofs", 0, 'X'},
      {"AutoPilot Rot", 0, 'R'},
      {"AutoPilot Trans", 0, 'T'},
      {"Zero Rel Rot", 0, 'Z'},
      {"Zero Rel Trans", 0, 'A'}
//      {"HUD On/Off", 0, 'H'},
    };
    RegisterPage(mnu0, sizeof(mnu0) / sizeof(MFDBUTTONMENU));
    RegisterFunction("TT", OAPI_KEY_1,  &OnStationOps::Button_TT);
    RegisterFunction("FT", OAPI_KEY_2,  &OnStationOps::Button_FT);
    RegisterFunction("UNT", OAPI_KEY_U, &OnStationOps::Button_UNT);
    RegisterFunction("DST", OAPI_KEY_D, &OnStationOps::Button_RNG);
    RegisterFunction("PYR", OAPI_KEY_P,  &OnStationOps::Button_PYR);
    RegisterFunction("XYZ", OAPI_KEY_X,  &OnStationOps::Button_XYZ);
    RegisterFunction("APR", OAPI_KEY_R, &OnStationOps::Button_APR);
    RegisterFunction("APT", OAPI_KEY_T, &OnStationOps::Button_APT);
    RegisterFunction("ZRR", OAPI_KEY_Z, &OnStationOps::Button_ZRR);
    RegisterFunction("ZRT", OAPI_KEY_A, &OnStationOps::Button_ZRT);
//   RegisterFunction("HUD", OAPI_KEY_H, &OnStationOps::Button_HUD);

    // Single page message page 
    static const MFDBUTTONMENU mnu1[] =
    {
      {"OK", 0, 'K'}
    };
    RegisterPage(mnu1, sizeof(mnu1) / sizeof(MFDBUTTONMENU));
    RegisterFunction("OK", OAPI_KEY_K,  &OnStationOps::Button_OK);

    // Page 1 of n message page
    static const MFDBUTTONMENU mnu2[] =
    {
      {"OK", 0, 'K'},
      {"NXT", 0, 'N'}
    };
    RegisterPage(mnu2, sizeof(mnu2) / sizeof(MFDBUTTONMENU));
    RegisterFunction("OK", OAPI_KEY_K,  &OnStationOps::Button_OK);
    RegisterFunction("NXT", OAPI_KEY_N,  &OnStationOps::Button_NXT);

    // Page n of m message page (1 < n < m)
    static const MFDBUTTONMENU mnu3[] =
    {
      {"OK", 0, 'K'},
      {"NXT", 0, 'N'},
      {"PRV", 0, 'P'}
    };
    RegisterPage(mnu3, sizeof(mnu3) / sizeof(MFDBUTTONMENU));
    RegisterFunction("OK", OAPI_KEY_K,  &OnStationOps::Button_OK);
    RegisterFunction("NXT", OAPI_KEY_N,  &OnStationOps::Button_NXT);
    RegisterFunction("PRV", OAPI_KEY_P,  &OnStationOps::Button_PRV);

    // Page n of n message page
    static const MFDBUTTONMENU mnu4[] =
    {
      {"OK", 0, 'K'},
      {"PRV", 0, 'P'}
    };
    RegisterPage(mnu4, sizeof(mnu4) / sizeof(MFDBUTTONMENU));
    RegisterFunction("OK", OAPI_KEY_K,  &OnStationOps::Button_OK);
    RegisterFunction("PRV", OAPI_KEY_P,  &OnStationOps::Button_PRV);
		
		return;
}