LMMS
Loading...
Searching...
No Matches
swell-miscdlg-generic.cpp File Reference
#include "swell.h"
#include "swell-internal.h"
#include "swell-dlggen.h"
#include "../wdlcstring.h"
#include "../assocarray.h"
#include "../ptrlist.h"
#include <dirent.h>
#include <time.h>
#include "../lineparse.h"
#include "../has_strings.h"

Classes

class  BrowseFile_State
struct  BrowseFile_State::rec

Macros

#define WDL_HASSTRINGS_EXPORT   static
#define SWELL_BROWSE_RECENT_SIZE   12

Typedefs

typedef char assert_failed_stat_not_64[sizeof(stat_chk.st_size)!=8 ? -1 :1]

Functions

static int recent_size ()
static void recent_addtocb (HWND hwnd)
static void recent_write (const char *path)
static void recent_read ()
static void recent_add_tmp (const char *path)
void BrowseFile_SetTemplate (const char *dlgid, DLGPROC dlgProc, struct SWELL_DialogResourceIndex *reshead)
static void preprocess_user_path (char *buf, int bufsz)
static LRESULT WINAPI swellFileSelectProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
bool BrowseForSaveFile (const char *text, const char *initialdir, const char *initialfile, const char *extlist, char *fn, int fnsize)
bool BrowseForDirectory (const char *text, const char *initialdir, char *fn, int fnsize)
char * BrowseForFiles (const char *text, const char *initialdir, const char *initialfile, bool allowmul, const char *extlist)
static const char * mbidtostr (int idx)
static LRESULT WINAPI swellMessageBoxProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
int MessageBox (HWND hwndParent, const char *text, const char *caption, int type)
bool SWELL_ChooseColor (HWND h, COLORREF *val, int ncustom, COLORREF *custom)
bool SWELL_ChooseFont (HWND h, LOGFONT *lf)

Variables

static WDL_PtrList< char > s_browse_rcu
static WDL_PtrList< char > s_browse_rcu_tmp
static const char * BFSF_Templ_dlgid
static DLGPROC BFSF_Templ_dlgproc
static struct SWELL_DialogResourceIndexBFSF_Templ_reshead
struct stat stat_chk

Macro Definition Documentation

◆ SWELL_BROWSE_RECENT_SIZE

#define SWELL_BROWSE_RECENT_SIZE   12

◆ WDL_HASSTRINGS_EXPORT

#define WDL_HASSTRINGS_EXPORT   static

Typedef Documentation

◆ assert_failed_stat_not_64

typedef char assert_failed_stat_not_64[sizeof(stat_chk.st_size)!=8 ? -1 :1]

Function Documentation

◆ BrowseFile_SetTemplate()

void BrowseFile_SetTemplate ( const char * dlgid,
DLGPROC dlgProc,
struct SWELL_DialogResourceIndex * reshead )

◆ BrowseForDirectory()

bool BrowseForDirectory ( const char * text,
const char * initialdir,
char * fn,
int fnsize )

◆ BrowseForFiles()

char * BrowseForFiles ( const char * text,
const char * initialdir,
const char * initialfile,
bool allowmul,
const char * extlist )

◆ BrowseForSaveFile()

bool BrowseForSaveFile ( const char * text,
const char * initialdir,
const char * initialfile,
const char * extlist,
char * fn,
int fnsize )

◆ mbidtostr()

const char * mbidtostr ( int idx)
static

◆ MessageBox()

int MessageBox ( HWND hwndParent,
const char * text,
const char * caption,
int type )

◆ preprocess_user_path()

void preprocess_user_path ( char * buf,
int bufsz )
static

◆ recent_add_tmp()

void recent_add_tmp ( const char * path)
static

◆ recent_addtocb()

void recent_addtocb ( HWND hwnd)
static

◆ recent_read()

void recent_read ( )
static

◆ recent_size()

int recent_size ( )
static

◆ recent_write()

void recent_write ( const char * path)
static

◆ SWELL_ChooseColor()

bool SWELL_ChooseColor ( HWND h,
COLORREF * val,
int ncustom,
COLORREF * custom )

◆ SWELL_ChooseFont()

bool SWELL_ChooseFont ( HWND h,
LOGFONT * lf )

◆ swellFileSelectProc()

LRESULT WINAPI swellFileSelectProc ( HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam )
static

◆ swellMessageBoxProc()

LRESULT WINAPI swellMessageBoxProc ( HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam )
static

Variable Documentation

◆ BFSF_Templ_dlgid

const char* BFSF_Templ_dlgid
static

◆ BFSF_Templ_dlgproc

DLGPROC BFSF_Templ_dlgproc
static

◆ BFSF_Templ_reshead

struct SWELL_DialogResourceIndex* BFSF_Templ_reshead
static

◆ s_browse_rcu

WDL_PtrList<char> s_browse_rcu
static

◆ s_browse_rcu_tmp

WDL_PtrList<char> s_browse_rcu_tmp
static

◆ stat_chk

struct stat stat_chk
extern