NCBI C++ ToolKit
Macros | Enumerations | Functions | Variables
submitblockdlg.cpp File Reference
#include <ncbi_pch.hpp>
#include <objects/biblio/Auth_list.hpp>
#include <objects/biblio/Author.hpp>
#include <objects/biblio/Affil.hpp>
#include <objects/biblio/Cit_sub.hpp>
#include <objects/general/Person_id.hpp>
#include <objects/general/Name_std.hpp>
#include <objects/general/Date.hpp>
#include <objects/general/Date_std.hpp>
#include <objects/submit/Contact_info.hpp>
#include <objects/seq/Pubdesc.hpp>
#include <objects/pub/Pub.hpp>
#include <objects/pub/Pub_equiv.hpp>
#include <wx/listctrl.h>
#include <wx/msgdlg.h>
#include <wx/filedlg.h>
#include <wx/stattext.h>
#include "wx/imaglist.h"
#include <gui/utils/object_loader.hpp>
#include <gui/utils/execute_unit.hpp>
#include <gui/widgets/loaders/open_objects_dlg.hpp>
#include <gui/widgets/loaders/file_load_wizard.hpp>
#include <gui/widgets/wx/file_extensions.hpp>
#include <gui/widgets/wx/async_call.hpp>
#include <gui/packages/pkg_sequence_edit/submitblockdlg.hpp>
#include <gui/packages/pkg_sequence_edit/subprep_util.hpp>
+ Include dependency graph for submitblockdlg.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define NCBI_AuthorCompareFields(Field, Obj1, Obj2)
 

Enumerations

enum  {
  ePageDate = 0 , ePageContact = 1 , ePageSequenceAuth = 2 , ePageAffil = 3 ,
  ePageTitle = 4 , ePageManAuth = 5
}
 

Functions

bool s_Name_stdsSame (const objects::CName_std &p1, const objects::CName_std &p2)
 
bool s_AffilSame (const objects::CAffil &a1, const objects::CAffil &a2)
 
bool s_AuthorsSame (const objects::CAuthor &a1, const objects::CAuthor &a2)
 
bool s_AuthorListsSame (const objects::CAuth_list &list1, const objects::CAuth_list &list2)
 
static bool s_NamesNotSet (const objects::CAuth_list::TNames &names)
 
bool s_AuthorNameBlank (const objects::CAuthor &auth)
 
bool s_AuthListEmpty (const objects::CAuth_list::TNames &names)
 

Variables

const string kAllSubmitMissing = "Sequence authors, affiliation, and contact information is missing!"
 
const string kSequenceAuthorsMissing = "You must provide sequence authors."
 
const string kAffilMissing = "You must provide an affiliation."
 
const string kContactMissing = "You must provide a contact name."
 
const string kEmailMissing = "You must provide an email address."
 
const string kCityMissing = "You must provide a city in affiliation."
 
const string kCountryMissing = "You must provide a country in affiliation."
 
const string kAllCitGenMissing = "Manuscript title, authors, and affiliation is missing!"
 
const string kTitleMissing = "You must provide a manuscript title."
 
const string kManuscriptAuthorsMissing = "You must provide authors."
 
const string kInvalidEmail = "Email address is invalid."
 

Macro Definition Documentation

◆ NCBI_AuthorCompareFields

#define NCBI_AuthorCompareFields (   Field,
  Obj1,
  Obj2 
)
Value:
if (##Obj1.IsSet##Field()) { \
if (##Obj2.IsSet##Field()) { \
if (!NStr::Equal(##Obj1.Get##Field(), ##Obj2.Get##Field())) { \
return false; \
} \
} else if (!NStr::IsBlank(##Obj1.Get##Field())) { \
return false; \
} \
} else { \
if (##Obj2.IsSet##Field() && !NStr::IsBlank(##Obj2.Get##Field())) { \
return false; \
} \
}
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
Definition: ncbistr.cpp:106
static bool Equal(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2, ECase use_case=eCase)
Test for equality of a substring with another string.
Definition: ncbistr.hpp:5378

Definition at line 178 of file submitblockdlg.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ePageDate 
ePageContact 
ePageSequenceAuth 
ePageAffil 
ePageTitle 
ePageManAuth 

Definition at line 788 of file submitblockdlg.cpp.

Function Documentation

◆ s_AffilSame()

bool s_AffilSame ( const objects::CAffil &  a1,
const objects::CAffil &  a2 
)

Definition at line 252 of file submitblockdlg.cpp.

References NStr::Equal().

◆ s_AuthListEmpty()

bool s_AuthListEmpty ( const objects::CAuth_list::TNames &  names)

◆ s_AuthorListsSame()

bool s_AuthorListsSame ( const objects::CAuth_list &  list1,
const objects::CAuth_list &  list2 
)

Definition at line 408 of file submitblockdlg.cpp.

References NStr::Equal(), and s_AuthorsSame().

Referenced by CSubmitBlockDlg::x_BuildPages().

◆ s_AuthorNameBlank()

bool s_AuthorNameBlank ( const objects::CAuthor &  auth)

◆ s_AuthorsSame()

bool s_AuthorsSame ( const objects::CAuthor &  a1,
const objects::CAuthor &  a2 
)

Definition at line 382 of file submitblockdlg.cpp.

References NStr::Equal(), and s_Name_stdsSame().

Referenced by s_AuthorListsSame().

◆ s_Name_stdsSame()

bool s_Name_stdsSame ( const objects::CName_std &  p1,
const objects::CName_std &  p2 
)

Definition at line 193 of file submitblockdlg.cpp.

References NStr::Equal(), and NStr::IsBlank().

Referenced by s_AuthorsSame().

◆ s_NamesNotSet()

static bool s_NamesNotSet ( const objects::CAuth_list::TNames &  names)
static

Variable Documentation

◆ kAffilMissing

const string kAffilMissing = "You must provide an affiliation."

◆ kAllCitGenMissing

const string kAllCitGenMissing = "Manuscript title, authors, and affiliation is missing!"

◆ kAllSubmitMissing

const string kAllSubmitMissing = "Sequence authors, affiliation, and contact information is missing!"

◆ kCityMissing

const string kCityMissing = "You must provide a city in affiliation."

◆ kContactMissing

const string kContactMissing = "You must provide a contact name."

◆ kCountryMissing

const string kCountryMissing = "You must provide a country in affiliation."

◆ kEmailMissing

const string kEmailMissing = "You must provide an email address."

◆ kInvalidEmail

const string kInvalidEmail = "Email address is invalid."

◆ kManuscriptAuthorsMissing

const string kManuscriptAuthorsMissing = "You must provide authors."

◆ kSequenceAuthorsMissing

const string kSequenceAuthorsMissing = "You must provide sequence authors."

◆ kTitleMissing

const string kTitleMissing = "You must provide a manuscript title."
Modified on Fri Sep 20 14:58:19 2024 by modify_doxy.py rev. 669887