Пример #1
0
void mainframe()
{
char d;
textbackground(BLACK);
textcolor(RED);
_setcursortype(0);
clrscr();
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �                        Master COMMAND.COM ver 1.0                           �");
cprintf(" �                                                                             �");
cprintf(" �                            It's a KVSM Product                              �");
cprintf(" �                        -----------------------------                        �");
cprintf(" �����������������������������������������������������������������������������ͼ");
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �                                                                             �");
cprintf(" �                                                                             �");
cprintf(" �                 1. Change Commands                                          �");
cprintf(" �                                                                             �");
cprintf(" �                 2. Help                                                     �");
cprintf(" �                                                                             �");
cprintf(" �                 3. About                                                    �");
cprintf(" �                                                                             �");
cprintf(" �                 4. Exit                                                     �");
cprintf(" �                                                                             �");
cprintf(" �                                                 press any key(1,2,3,4)      �");
cprintf(" �����������������������������������������������������������������������������ͼ");
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �                               DEVELOPED BY                                  �");
cprintf(" �                                                                             �");
cprintf(" �                            MANOHAR SINGH NEGI                               �");
cprintf(" �����������������������������������������������������������������������������ͼ");
scanf("%c",&d);
switch(d)
{
case '1':
	mani();
	mainframe();
	break;
case '2':
	frame2();
	break;
case '3':
	frameabout();
	break;
case '4':
	exit(1);
default:
	clrscr();
	cprintf("Please enter the valid choice");
	delay(300);
	mainframe();
}
}
Пример #2
0
int main(int argc, char *argv[]) {

    // Application
    Application application(argc, argv);

    // Just to have the maps!
    Game::getInstance().NewGame();

    // Load css
    QFile File(":/PowerGrid/Resources/stylesheet.qss");
    File.open(QFile::ReadOnly);
    QString StyleSheet = QLatin1String(File.readAll());

    // Main frame
    MainFrame mainframe("Power Grid");

    // Attach observer
    Game::getInstance().Attach(&mainframe);

    // Apply css
    application.setStyleSheet(StyleSheet);

    // Return
    return application.exec();
}
Пример #3
0
void frame2()
{
int d;
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �                                                                             �");
cprintf(" �                            Master Command.com                               �");
cprintf(" �                                                         �");
cprintf(" �                                                                             �");
cprintf(" �                                                                             �");
cprintf(" �    This program can change your DOS commands, if you are interested in      �");
cprintf(" �    doing so please go through the following carefully.                      �");
cprintf(" �                                                                             �");
cprintf(" � 1 . As your DOS commands are part of commamd.com, in order to change these  �");
cprintf(" �     commands the entire command.com will be changed.                        �");
cprintf(" �                                                                             �");
cprintf(" � 2.  Make sure that you know DOS and type the valid command only.            �");
cprintf(" �                                                                             �");
cprintf(" � 3.  If you try to change any command that doesn't exist, make a point clear �");
cprintf(" �     that you are going to commit big mistake.                               �");
cprintf(" �                                                                             �");
cprintf(" � 4.  Before proceeding please be sure that you are having bootable floppy.   �");
cprintf(" �                                                                             �");
cprintf(" �                        Press any key to continue                            �");
cprintf(" �                                                                             �");
cprintf(" �                                                                             �");
cprintf(" �                                                                             �");
cprintf(" �����������������������������������������������������������������������������ͼ");
d=getch();
if(d!=27)
{
mainframe();
}
}
Пример #4
0
bool CFrameWndFactory::CreateFrameWnd(LPCWSTR factoryFile)
{
    CXTPWinDwmWrapper().SetProcessDPIAware();   // Support high DPI on Vista or above.

    std::wstring xtpfile(getTranslationsPath(L"ToolkitPro.Resource.xml"));
    if (PathFileExistsW(xtpfile.c_str()))
        XTPResourceManager()->SetResourceFile(xtpfile.c_str());
    else
        TRACE1("Warning: no translation file '%s'\n", xtpfile.c_str());

    Object<IConfigXml> xmlfile(x3::clsidXmlFile);
    ASSERT_MESSAGE(xmlfile, "Need the configxml plugin.");
    xmlfile->SetFileName((getConfigPath() + factoryFile).c_str());
    ASSERT_MESSAGE(xmlfile->Reload(), "No xml file or need to setup MSXML4.");

    ConfigSection root(xmlfile->GetData()->GetSection(L""));
    ConfigSection mainframe(root.GetSection(L"mainframe"));
    bool mdi = root->GetBool(L"mdi", false);

    g_factoryRoot = root;
    g_factoryRoot->SetString(L"_appid", m_appid.c_str());

    Object<IUIOptionsInit> initOptions(clsidUIOptions);
    initOptions->setFileName((getConfigPath() + 
        root->GetString(L"optionsFile", L"uioptions.xml")).c_str());

    RegisterDocTemplate(mdi, mainframe, root.GetSection(L"views"));
    if (mdi)
    {
        CMainMDIFrame* pFrame = new CMainMDIFrame;
        if (!pFrame->LoadFrame(0))
            return FALSE;

        std::vector<ViewItem>::const_iterator it = s_views.begin();
        for (; it != s_views.end(); ++it)
        {
            if (!it->caption.empty())
            {
                CDocument* pDoc = it->pTemplate->OpenDocumentFile(NULL);
                pDoc->SetTitle(it->caption.c_str());
            }
        }
    }

    return ProcessShellCommand();
}
Пример #5
0
void main()
{
int c;
clrscr();
frame1();
c=getch();
if(c==27)
{
	exit(1);
}
else
{
	clrscr();
	mainframe();
}
getche();
}
Пример #6
0
void frameabout()
{
int d;
textbackground(BLACK);
textcolor(RED);
_setcursortype(0);
clrscr();
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �      ****************************************************************       �");
cprintf(" �      *                                                              *       �");
cprintf(" �      *                  Master Your Command.com                     *       �");
cprintf(" �      *                                                              *       �");
cprintf(" �      ****************************************************************       �");
cprintf(" �                                                                             �");
cprintf(" �                                                                             �");
cprintf(" �      OS Platform        : windows 98/2000/xp                                �");
cprintf(" �                                                                             �");
cprintf(" �      Language Used      : C                                                 �");
cprintf(" �                                                                             �");
cprintf(" �      Ver                : 1.0                                               �");
cprintf(" �                                                                             �");
cprintf(" �      Dated              : 23-12-2003                                        �");
cprintf(" �����������������������������������������������������������������������������ͼ");
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �                               DEVELOPED BY                                  �");
cprintf(" �                                                                             �");
cprintf(" �                            MANOHAR SINGH NEGI                               �");
cprintf(" �                            Information Science Engg.                        �");
cprintf(" �                            R.V. College Of Engineering                      �");
cprintf(" �                            Bangalore-59                                     �");
cprintf(" �����������������������������������������������������������������������������ͼ");
d=getch();
if(d!=27)
{
mainframe();
}

}