Skip to content

Hlmv port(2006) #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions sp/src/common/ifilesystemopendialog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//

#ifndef IFILESYSTEMOPENDIALOG_H
#define IFILESYSTEMOPENDIALOG_H
#ifdef _WIN32
#pragma once
#endif



#define FILESYSTEMOPENDIALOG_VERSION "FileSystemOpenDlg003"


class IFileSystem;


abstract_class IFileSystemOpenDialog
{
public:
// You must call this first to set the hwnd.
virtual void Init( CreateInterfaceFn factory, void *parentHwnd ) = 0;

// Call this to free the dialog.
virtual void Release() = 0;

// Use these to configure the dialog.
virtual void AddFileMask( const char *pMask ) = 0;
virtual void SetInitialDir( const char *pDir, const char *pPathID = NULL ) = 0;
virtual void SetFilterMdlAndJpgFiles( bool bFilter ) = 0;
virtual void GetFilename( char *pOut, int outLen ) const = 0; // Get the filename they chose.

// Call this to make the dialog itself. Returns true if they clicked OK and false
// if they canceled it.
virtual bool DoModal() = 0;

// This uses the standard windows file open dialog.
virtual bool DoModal_WindowsDialog() = 0;
};


#endif // IFILESYSTEMOPENDIALOG_H
Binary file removed sp/src/lib/public/mathlib.lib
Binary file not shown.
Binary file removed sp/src/lib/public/tier1.lib
Binary file not shown.
29 changes: 29 additions & 0 deletions sp/src/mxtklib/include/mx/gl.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// mxToolKit (c) 1999 by Mete Ciragan
//
// file: gl.h
// implementation: all
// last modified: Mar 14 1999, Mete Ciragan
// copyright: The programs and associated files contained in this
// distribution were developed by Mete Ciragan. The programs
// are not in the public domain, but they are freely
// distributable without licensing fees. These programs are
// provided without guarantee or warrantee expressed or
// implied.
//
#ifndef INCLUDED_MTKGL
#define INCLUDED_MTKGL



#ifdef WIN32
#include "windows.h"
#endif



#include "GL/gl.h"



#endif // INCLUDED_MTKGL
143 changes: 143 additions & 0 deletions sp/src/mxtklib/include/mx/mx.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
//
// mxToolKit (c) 1999 by Mete Ciragan
//
// file: mx.h
// implementation: all
// last modified: Apr 28 1999, Mete Ciragan
// copyright: The programs and associated files contained in this
// distribution were developed by Mete Ciragan. The programs
// are not in the public domain, but they are freely
// distributable without licensing fees. These programs are
// provided without guarantee or warrantee expressed or
// implied.
//
#ifndef INCLUDED_MX
#define INCLUDED_MX



#ifdef WIN32
#include <windows.h>
#endif



#ifndef INCLUDED_MXBUTTON
#include <mx/mxButton.h>
#endif

#ifndef INCLUDED_MXCHECKBOX
#include <mx/mxCheckBox.h>
#endif

#ifndef INCLUDED_MXCHOICE
#include <mx/mxChoice.h>
#endif

#ifndef INCLUDED_MXCHOOSECOLOR
#include <mx/mxChooseColor.h>
#endif

#ifndef INCLUDED_MXEVENT
#include <mx/mxEvent.h>
#endif

#ifndef INCLUDED_MXFILEDIALOG
#include <mx/mxFileDialog.h>
#endif

#ifndef INCLUDED_MXGLWINDOW
#include <mx/mxGlWindow.h>
#endif

#ifndef INCLUDED_MXGROUPBOX
#include <mx/mxGroupBox.h>
#endif

#ifndef INCLUDED_MXINIT
#include <mx/mxInit.h>
#endif

#ifndef INCLUDED_MXLABEL
#include <mx/mxLabel.h>
#endif

#ifndef INCLUDED_MXLINEEDIT
#include <mx/mxLineEdit.h>
#endif

#ifndef INCLUDED_MXLINKEDLIST
#include <mx/mxLinkedList.h>
#endif

#ifndef INCLUDED_MXLISTBOX
#include <mx/mxListBox.h>
#endif

#ifndef INCLUDED_MXMENU
#include <mx/mxMenu.h>
#endif

#ifndef INCLUDED_MXMENUBAR
#include <mx/mxMenuBar.h>
#endif

#ifndef INCLUDED_MXMESSAGEBOX
#include <mx/mxMessageBox.h>
#endif

#ifndef INCLUDED_MXPOPUPMENU
#include <mx/mxPopupMenu.h>
#endif

#ifndef INCLUDED_MXPROGRESSBAR
#include <mx/mxProgressBar.h>
#endif

#ifndef INCLUDED_MXRADIOBUTTON
#include <mx/mxRadioButton.h>
#endif

#ifndef INCLUDED_MXSLIDER
#include <mx/mxSlider.h>
#endif

#ifndef INCLUDED_MXSCROLLBAR
#include <mx/mxScrollbar.h>
#endif

#ifndef INCLUDED_MXTAB
#include <mx/mxTab.h>
#endif

#ifndef INCLUDED_MXTOGGLEBUTTON
#include <mx/mxToggleButton.h>
#endif

#ifndef INCLUDED_MXTOOLTIP
#include <mx/mxToolTip.h>
#endif

#ifndef INCLUDED_MXTREEVIEW
#include <mx/mxTreeView.h>
#endif

#ifndef INCLUDED_MXWIDGET
#include <mx/mxWidget.h>
#endif

#ifndef INCLUDED_MXWINDOW
#include <mx/mxWindow.h>
#endif

#ifndef INCLUDED_MXPATH
#include <mx/mxpath.h>
#endif

#ifndef INCLUDED_MXSTRING
#include <mx/mxstring.h>
#endif



#endif // INCLUDED_MX
79 changes: 79 additions & 0 deletions sp/src/mxtklib/include/mx/mxbmp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
//
// mxToolKit (c) 1999 by Mete Ciragan
//
// file: mxBmp.h
// implementation: all
// last modified: Apr 15 1999, Mete Ciragan
// copyright: The programs and associated files contained in this
// distribution were developed by Mete Ciragan. The programs
// are not in the public domain, but they are freely
// distributable without licensing fees. These programs are
// provided without guarantee or warrantee expressed or
// implied.
//
#ifndef INCLUDED_MXBMP
#define INCLUDED_MXBMP



#ifndef INCLUDED_MXIMAGE
#include <mx/mxImage.h>
#endif


#ifdef WIN32
#include <pshpack2.h>
#endif

typedef struct
{
word bfType;
int bfSize;
word bfReserved1;
word bfReserved2;
int bfOffBits;
} mxBitmapFileHeader;

typedef struct tagMxBitmapFileHeader
{
int biSize;
int biWidth;
int biHeight;
word biPlanes;
word biBitCount;
int biCompression;
int biSizeImage;
int biXPelsPerMeter;
int biYPelsPerMeter;
int biClrUsed;
int biClrImportant;
} mxBitmapInfoHeader;

typedef struct
{
byte rgbBlue;
byte rgbGreen;
byte rgbRed;
byte rgbReserved;
} mxBitmapRGBQuad;

#ifdef WIN32
#include <poppack.h>
#endif



#ifdef __cplusplus
extern "C" {
#endif

mxImage *mxBmpRead (const char *filename);
bool mxBmpWrite (const char *filename, mxImage *image);

#ifdef __cplusplus
}
#endif



#endif // INCLUDED_MXBMP
50 changes: 50 additions & 0 deletions sp/src/mxtklib/include/mx/mxbutton.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
//
// mxToolKit (c) 1999 by Mete Ciragan
//
// file: mxButton.h
// implementation: all
// last modified: Mar 14 1999, Mete Ciragan
// copyright: The programs and associated files contained in this
// distribution were developed by Mete Ciragan. The programs
// are not in the public domain, but they are freely
// distributable without licensing fees. These programs are
// provided without guarantee or warrantee expressed or
// implied.
//
#ifndef INCLUDED_MXBUTTON
#define INCLUDED_MXBUTTON



#ifndef INCLUDED_MXWIDGET
#include <mx/mxWidget.h>
#endif



class mxWindow;



class mxButton_i;
class mxButton : public mxWidget
{
mxButton_i *d_this;

public:
// CREATORS

mxButton (mxWindow *parent, int x, int y, int w, int h, const char *label = 0, int id = 0);

virtual ~mxButton ();

private:
// NOT IMPLEMENTED
mxButton (const mxButton&);
mxButton& operator= (const mxButton&);
};



#endif // INCLUDED_MXBUTTON

Loading
Loading