本文整理汇总了C++中JXWindow::ReadGeometry方法的典型用法代码示例。如果您正苦于以下问题:C++ JXWindow::ReadGeometry方法的具体用法?C++ JXWindow::ReadGeometry怎么用?C++ JXWindow::ReadGeometry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JXWindow
的用法示例。
在下文中一共展示了JXWindow::ReadGeometry方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetWindow
THXBaseConvDirector::THXBaseConvDirector
(
istream& input,
const JFileVersion vers,
JXDirector* supervisor
)
:
JXWindowDirector(supervisor)
{
BuildWindow();
JSize fromBase, toBase;
input >> fromBase >> toBase;
itsFromBase->SetBase(fromBase);
itsToBase->SetBase(toBase);
JString fromValue;
input >> fromValue;
itsFromValue->SetText(fromValue);
JXWindow* window = GetWindow();
window->ReadGeometry(input);
JBoolean active;
input >> active;
if (active)
{
Activate();
}
}
示例2: GetWindow
void
SyGViewManPageDialog::ReadPrefs
(
istream& input
)
{
JFileVersion vers;
input >> vers;
if (vers > kCurrentSetupVersion)
{
return;
}
JXWindow* window = GetWindow();
window->ReadGeometry(input);
window->Deiconify();
itsFnHistoryMenu->ReadSetup(input);
if (vers >= 1)
{
JBoolean stayOpen;
input >> stayOpen;
itsStayOpenCB->SetState(stayOpen);
}
示例3: input
TestDirector::TestDirector
(
JXDirector* supervisor,
const JBoolean isMaster,
const JBoolean startIconic,
const JBoolean bufferTestWidget,
const JBoolean testWidgetIsImage,
const JBoolean snoopWindow
)
:
JXWindowDirector(supervisor)
{
itsIsMasterFlag = isMaster;
itsPSPrinter = NULL;
itsEPSPrinter = NULL;
itsCSF = new TestChooseSaveFile;
assert( itsCSF != NULL );
BuildWindow(isMaster, bufferTestWidget, testWidgetIsImage);
JXWindow* window = GetWindow();
if (snoopWindow)
{
itsWindowSnooper = new JBroadcastSnooper(window);
assert( itsWindowSnooper != NULL );
}
else
{
itsWindowSnooper = NULL;
}
if (isMaster && JFileExists(kWindowGeomFileName))
{
ifstream input(kWindowGeomFileName);
window->ReadGeometry(input);
}
if (startIconic)
{
window->Iconify();
}
// GetDisplay() only works after SetWindow()
itsPSPrinter = new JXPSPrinter(GetDisplay());
assert( itsPSPrinter != NULL );
ListenTo(itsPSPrinter);
itsEPSPrinter = new JXEPSPrinter(GetDisplay());
assert( itsEPSPrinter != NULL );
ListenTo(itsEPSPrinter);
}
示例4: GetWindow
void
CBEditSearchPathsDialog::ReadPrefs
(
std::istream& input
)
{
JFileVersion vers;
input >> vers;
if (vers <= kCurrentSetupVersion)
{
JXWindow* window = GetWindow();
window->ReadGeometry(input);
window->Deiconify();
}
}
示例5: GetWindow
void
CMEditCommandsDialog::ReadPrefs
(
istream& input
)
{
JFileVersion vers;
input >> vers;
if (vers <= kCurrentSetupVersion)
{
JXWindow* window = GetWindow();
window->ReadGeometry(input);
window->Deiconify();
}
}
示例6: CBEditStylerDialog
void
CBStylerBase::EditStyles()
{
assert( itsEditDialog == NULL );
JArray<WordStyle> wordList;
GetWordList(*itsWordStyles, &wordList, kJTrue);
itsEditDialog = new CBEditStylerDialog(itsDialogTitle, IsActive(),
itsTypeNames, *itsTypeStyles,
wordList, itsFileType);
assert( itsEditDialog != NULL );
JXWindow* window = itsEditDialog->GetWindow();
window->ReadGeometry(itsDialogGeom);
window->Deiconify();
itsEditDialog->BeginDialog();
ListenTo(itsEditDialog);
}
示例7: JXMenuBar
void
SyGTreeDir::BuildWindow
(
const JCharacter* startPath
)
{
JXCurrentPathMenu* pathMenu = NULL;
// begin JXLayout
JXWindow* window = new JXWindow(this, 420,500, "");
assert( window != NULL );
JXMenuBar* menuBar =
new JXMenuBar(window,
JXWidget::kHElastic, JXWidget::kFixedTop, 0,0, 420,30);
assert( menuBar != NULL );
itsToolBar =
new JXToolBar(SyGGetPrefsMgr(), kSMainToolBarID, menuBar, 200,200, window,
JXWidget::kHElastic, JXWidget::kVElastic, 0,30, 420,450);
assert( itsToolBar != NULL );
itsPathInput =
new SyGPathInput(window,
JXWidget::kHElastic, JXWidget::kFixedBottom, 20,480, 340,20);
assert( itsPathInput != NULL );
SyGTrashButton* trashButton =
new SyGTrashButton(window,
JXWidget::kFixedRight, JXWidget::kFixedBottom, 390,480, 30,20);
assert( trashButton != NULL );
itsDragSrc =
new SyGFolderDragSource(itsPathInput, &pathMenu, window,
JXWidget::kFixedLeft, JXWidget::kFixedBottom, 0,480, 20,20);
assert( itsDragSrc != NULL );
itsUpButton =
new JXTextButton(JGetString("itsUpButton::SyGTreeDir::JXLayout"), window,
JXWidget::kFixedRight, JXWidget::kFixedBottom, 360,480, 30,20);
assert( itsUpButton != NULL );
// end JXLayout
// folder setup
JString prefsFile = JCombinePathAndName(startPath, kDirPrefsName);
prefsFile += JGetUserName();
if (!JFileExists(prefsFile))
{
const JString origPrefsFile = JCombinePathAndName(startPath, kOrigDirPrefsName);
JRenameFile(origPrefsFile, prefsFile);
}
istream* input = NULL;
const JString* prefs = NULL;
std::string s;
if (!JFileReadable(prefsFile) &&
(SyGGetApplication())->GetMountPointPrefs(startPath, &prefs))
{
s.assign(prefs->GetCString(), prefs->GetLength());
input = new std::istringstream(s);
}
else
{
input = new ifstream(prefsFile);
}
assert( input != NULL );
JFileVersion vers = 0;
JSize w, h;
if (input->good())
{
*input >> vers;
if (vers <= kSyGCurrentDirSetupVersion)
{
window->ReadGeometry(*input);
}
else
{
delete input;
input = NULL;
}
}