Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
EditOutputIniDialog.cpp File Reference

implementation of dialog for editing user-defined output ini file More...

#include "EditOutputIniDialog.h"
#include "hugin_config.h"
#include "panoinc_WX.h"
#include "hugin/huginApp.h"
#include <wx/fileconf.h>
#include <wx/wfstream.h>
#include <wx/sstream.h>
#include <wx/propgrid/advprops.h>
Include dependency graph for EditOutputIniDialog.cpp:

Go to the source code of this file.

Macros

#define ADDKEYITEM(s)
 

Functions

void InitArrays ()
 
bool contains (const wxArrayString &stringArray, const wxString &string, bool caseInSensitive=true)
 check if given string is in wxArrayString, do comparison case insentive or case sensitive More...
 

Variables

static wxArrayString BlenderArray
 
static wxArrayString ProjectionArray
 
static wxArrayString OutputTypeArray
 
static wxArrayString LDRFileTypeArray
 
static wxArrayString HDRFileTypeArray
 
static const wxString defaultIni
 default ini, if no one exists load this one More...
 

Detailed Description

implementation of dialog for editing user-defined output ini file

Author
T. Modes

Definition in file EditOutputIniDialog.cpp.

Macro Definition Documentation

#define ADDKEYITEM (   s)
Value:
val=s;\
if (!contains(knownValues, val))\
{\
item = menu.Append(wxID_ANY, wxString::Format(_("Add %s"), val.c_str()));\
Bind(wxEVT_MENU, [this, category, val](wxCommandEvent&) { AddKey(category, val, wxEmptyString); m_grid->RefreshGrid(); }, item->GetId());\
};
bool contains(const wxArrayString &stringArray, const wxString &string, bool caseInSensitive=true)
check if given string is in wxArrayString, do comparison case insentive or case sensitive ...

Referenced by EditOutputIniDialog::BuildAddContextMenu().

Function Documentation

bool contains ( const wxArrayString &  stringArray,
const wxString &  string,
bool  caseInSensitive = true 
)

check if given string is in wxArrayString, do comparison case insentive or case sensitive

Definition at line 105 of file EditOutputIniDialog.cpp.

Referenced by vigra_ext::inspectImagesIf(), EditOutputIniDialog::OnAddSection(), and EditOutputIniDialog::OnRenameSection().

void InitArrays ( )

Variable Documentation

wxArrayString BlenderArray
static

Definition at line 36 of file EditOutputIniDialog.cpp.

Referenced by EditOutputIniDialog::AddKey(), and InitArrays().

const wxString defaultIni
static
Initial value:
{
"[Cylindrical]\n"
"Canvas=70%\n"
"Condition1=ImageCount>1\n"
"Condition2=PanoVFOV<100\n"
"Condition3=PanoHFOV>=100\n"
"Crop=auto\n"
"FOV=auto\n"
"Projection=Cylindrical\n"
"[Equirectangular]\n"
"Canvas=70%\n"
"Condition1=ImageCount>1\n"
"Condition2=PanoVFOV>=100\n"
"Crop=auto\n"
"FOV=auto\n"
"Projection=Equirectangular\n"
"[Rectilinear]\n"
"Canvas=70%\n"
"Condition1=ImageCount>1\n"
"Condition2=PanoHFOV<100\n"
"Condition3=PanoVFOV<100\n"
"Crop=auto\n"
"FOV=auto\n"
"Projection=Rectilinear"
}

default ini, if no one exists load this one

Definition at line 78 of file EditOutputIniDialog.cpp.

Referenced by EditOutputIniDialog::ReadIni().

wxArrayString HDRFileTypeArray
static

Definition at line 40 of file EditOutputIniDialog.cpp.

Referenced by EditOutputIniDialog::AddKey(), and InitArrays().

wxArrayString LDRFileTypeArray
static

Definition at line 39 of file EditOutputIniDialog.cpp.

Referenced by EditOutputIniDialog::AddKey(), and InitArrays().

wxArrayString OutputTypeArray
static

Definition at line 38 of file EditOutputIniDialog.cpp.

Referenced by EditOutputIniDialog::AddKey(), and InitArrays().

wxArrayString ProjectionArray
static

Definition at line 37 of file EditOutputIniDialog.cpp.

Referenced by EditOutputIniDialog::AddKey(), and InitArrays().